2019-04-21 21:42:25 +00:00
|
|
|
object_const_def ; object_event constants
|
2015-11-27 05:22:14 +00:00
|
|
|
const ROUTE39BARN_TWIN1
|
|
|
|
const ROUTE39BARN_TWIN2
|
2016-04-07 10:13:59 +00:00
|
|
|
const ROUTE39BARN_MOOMOO
|
2015-11-27 05:22:14 +00:00
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
Route39Barn_MapScripts:
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; scene scripts
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; callbacks
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-02-28 22:47:31 +00:00
|
|
|
Route39BarnTwin1Script:
|
2013-02-17 06:54:07 +00:00
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_HEALED_MOOMOO
|
2015-11-01 01:05:02 +00:00
|
|
|
iftrue .FeedingMooMoo
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnTwinMoomooIsSickText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject ROUTE39BARN_TWIN1, RIGHT
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-11-01 01:05:02 +00:00
|
|
|
.FeedingMooMoo:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnTwinWereFeedingMoomooText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject ROUTE39BARN_TWIN1, RIGHT
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-02-28 22:47:31 +00:00
|
|
|
Route39BarnTwin2Script:
|
2013-02-17 06:54:07 +00:00
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_HEALED_MOOMOO
|
2015-11-01 01:05:02 +00:00
|
|
|
iftrue .FeedingMooMoo
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnTwinMoomooIsSickText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject ROUTE39BARN_TWIN2, LEFT
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-11-01 01:05:02 +00:00
|
|
|
.FeedingMooMoo:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnTwinWereFeedingMoomooText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject ROUTE39BARN_TWIN2, LEFT
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
MoomooScript:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_HEALED_MOOMOO
|
2015-11-01 01:05:02 +00:00
|
|
|
iftrue .HappyCow
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext MoomooWeakMooText
|
2019-03-10 19:31:59 +00:00
|
|
|
setval MILTANK
|
2018-01-24 16:17:05 +00:00
|
|
|
special PlaySlowCry
|
2015-11-30 03:29:45 +00:00
|
|
|
buttonsound
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnItsCryIsWeakText
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_TALKED_TO_FARMER_ABOUT_MOOMOO
|
2015-11-01 01:05:02 +00:00
|
|
|
iftrue .GiveBerry
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-11-01 01:05:02 +00:00
|
|
|
.GiveBerry:
|
2015-11-30 03:29:45 +00:00
|
|
|
buttonsound
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnAskGiveBerryText
|
2013-02-17 06:54:07 +00:00
|
|
|
yesorno
|
2015-11-01 01:05:02 +00:00
|
|
|
iffalse .Refused
|
2013-02-17 06:54:07 +00:00
|
|
|
checkitem BERRY
|
2015-11-01 01:05:02 +00:00
|
|
|
iffalse .NoBerriesInBag
|
2015-11-05 01:20:14 +00:00
|
|
|
takeitem BERRY
|
2019-03-10 19:31:59 +00:00
|
|
|
readmem wMooMooBerries
|
|
|
|
addval 1
|
|
|
|
writemem wMooMooBerries
|
2018-02-03 02:09:17 +00:00
|
|
|
ifequal 3, .ThreeBerries
|
|
|
|
ifequal 5, .FiveBerries
|
|
|
|
ifequal 7, .SevenBerries
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnGaveBerryText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-11-01 01:05:02 +00:00
|
|
|
.ThreeBerries:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnGaveBerryText
|
2015-11-30 03:29:45 +00:00
|
|
|
buttonsound
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnLittleHealthierText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-11-01 01:05:02 +00:00
|
|
|
.FiveBerries:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnGaveBerryText
|
2015-11-30 03:29:45 +00:00
|
|
|
buttonsound
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnQuiteHealthyText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-11-01 01:05:02 +00:00
|
|
|
.SevenBerries:
|
2014-04-30 10:04:35 +00:00
|
|
|
playmusic MUSIC_HEAL
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnGaveBerryText
|
2013-02-17 06:54:07 +00:00
|
|
|
pause 60
|
2015-11-30 03:29:45 +00:00
|
|
|
buttonsound
|
2015-02-11 23:03:42 +00:00
|
|
|
special RestartMapMusic
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnTotallyHealthyText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2013-09-24 07:48:58 +00:00
|
|
|
setevent EVENT_HEALED_MOOMOO
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-11-01 01:05:02 +00:00
|
|
|
.NoBerriesInBag:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnNoBerriesText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-11-01 01:05:02 +00:00
|
|
|
.Refused:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext Route39BarnRefusedBerryText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-11-01 01:05:02 +00:00
|
|
|
.HappyCow:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext MoomooHappyMooText
|
2013-02-17 06:54:07 +00:00
|
|
|
cry MILTANK
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnTwinMoomooIsSickText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "MOOMOO is sick…"
|
|
|
|
|
|
|
|
para "She needs lots of"
|
|
|
|
line "BERRIES."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnTwinWereFeedingMoomooText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "We're feeding"
|
|
|
|
line "MOOMOO!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
MoomooWeakMooText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "MILTANK: …Moo…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnItsCryIsWeakText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Its cry is weak…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
MoomooHappyMooText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "MILTANK: Mooo!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnAskGiveBerryText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Give a BERRY to"
|
|
|
|
line "MILTANK?"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnGaveBerryText:
|
2015-06-28 04:59:17 +00:00
|
|
|
text "<PLAYER> gave a"
|
2014-03-06 05:29:44 +00:00
|
|
|
line "BERRY to MILTANK."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnLittleHealthierText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "MILTANK became a"
|
|
|
|
line "little healthier!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnQuiteHealthyText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "MILTANK became"
|
|
|
|
line "quite healthy!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnTotallyHealthyText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "MILTANK became"
|
|
|
|
line "totally healthy!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnNoBerriesText:
|
2015-06-28 04:59:17 +00:00
|
|
|
text "<PLAYER> has no"
|
2014-03-06 05:29:44 +00:00
|
|
|
line "BERRIES…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
Route39BarnRefusedBerryText:
|
2015-06-28 04:59:17 +00:00
|
|
|
text "<PLAYER> wouldn't"
|
2014-03-06 05:29:44 +00:00
|
|
|
line "give a BERRY."
|
|
|
|
|
|
|
|
para "MILTANK looks sad."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
Route39Barn_MapEvents:
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0, 0 ; filler
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 2 ; warp events
|
2018-02-02 03:22:07 +00:00
|
|
|
warp_event 3, 7, ROUTE_39, 1
|
|
|
|
warp_event 4, 7, ROUTE_39, 1
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; coord events
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; bg events
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 3 ; object events
|
2018-02-28 22:47:31 +00:00
|
|
|
object_event 2, 3, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route39BarnTwin1Script, -1
|
|
|
|
object_event 4, 3, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, Route39BarnTwin2Script, -1
|
2018-08-19 17:56:41 +00:00
|
|
|
object_event 3, 3, SPRITE_TAUROS, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MoomooScript, -1
|