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