pokecrystal/maps/Route39Barn.asm

204 lines
3.7 KiB
NASM
Raw Permalink Normal View History

object_const_def
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
Route39Barn_MapScripts:
def_scene_scripts
def_callbacks
2018-02-28 22:47:31 +00:00
Route39BarnTwin1Script:
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
closetext
turnobject ROUTE39BARN_TWIN1, RIGHT
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
closetext
turnobject ROUTE39BARN_TWIN1, RIGHT
end
2018-02-28 22:47:31 +00:00
Route39BarnTwin2Script:
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
closetext
turnobject ROUTE39BARN_TWIN2, LEFT
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
closetext
turnobject ROUTE39BARN_TWIN2, LEFT
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
setval MILTANK
special PlaySlowCry
2019-11-03 17:48:54 +00:00
promptbutton
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
closetext
end
2015-11-01 01:05:02 +00:00
.GiveBerry:
2019-11-03 17:48:54 +00:00
promptbutton
2018-08-19 17:56:41 +00:00
writetext Route39BarnAskGiveBerryText
yesorno
2015-11-01 01:05:02 +00:00
iffalse .Refused
checkitem BERRY
2015-11-01 01:05:02 +00:00
iffalse .NoBerriesInBag
2015-11-05 01:20:14 +00:00
takeitem BERRY
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
closetext
end
2015-11-01 01:05:02 +00:00
.ThreeBerries:
2018-08-19 17:56:41 +00:00
writetext Route39BarnGaveBerryText
2019-11-03 17:48:54 +00:00
promptbutton
2018-08-19 17:56:41 +00:00
writetext Route39BarnLittleHealthierText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-11-01 01:05:02 +00:00
.FiveBerries:
2018-08-19 17:56:41 +00:00
writetext Route39BarnGaveBerryText
2019-11-03 17:48:54 +00:00
promptbutton
2018-08-19 17:56:41 +00:00
writetext Route39BarnQuiteHealthyText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-11-01 01:05:02 +00:00
.SevenBerries:
playmusic MUSIC_HEAL
2018-08-19 17:56:41 +00:00
writetext Route39BarnGaveBerryText
pause 60
2019-11-03 17:48:54 +00:00
promptbutton
special RestartMapMusic
2018-08-19 17:56:41 +00:00
writetext Route39BarnTotallyHealthyText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2013-09-24 07:48:58 +00:00
setevent EVENT_HEALED_MOOMOO
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
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
closetext
end
2015-11-01 01:05:02 +00:00
.HappyCow:
2018-08-19 17:56:41 +00:00
writetext MoomooHappyMooText
cry MILTANK
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-08-19 17:56:41 +00:00
Route39BarnTwinMoomooIsSickText:
text "MOOMOO is sick…"
para "She needs lots of"
line "BERRIES."
done
2018-08-19 17:56:41 +00:00
Route39BarnTwinWereFeedingMoomooText:
text "We're feeding"
line "MOOMOO!"
done
2018-08-19 17:56:41 +00:00
MoomooWeakMooText:
text "MILTANK: …Moo…"
done
2018-08-19 17:56:41 +00:00
Route39BarnItsCryIsWeakText:
text "Its cry is weak…"
done
2018-08-19 17:56:41 +00:00
MoomooHappyMooText:
text "MILTANK: Mooo!"
done
2018-08-19 17:56:41 +00:00
Route39BarnAskGiveBerryText:
text "Give a BERRY to"
line "MILTANK?"
done
2018-08-19 17:56:41 +00:00
Route39BarnGaveBerryText:
text "<PLAYER> gave a"
line "BERRY to MILTANK."
done
2018-08-19 17:56:41 +00:00
Route39BarnLittleHealthierText:
text "MILTANK became a"
line "little healthier!"
done
2018-08-19 17:56:41 +00:00
Route39BarnQuiteHealthyText:
text "MILTANK became"
line "quite healthy!"
done
2018-08-19 17:56:41 +00:00
Route39BarnTotallyHealthyText:
text "MILTANK became"
line "totally healthy!"
done
2018-08-19 17:56:41 +00:00
Route39BarnNoBerriesText:
text "<PLAYER> has no"
line "BERRIES…"
done
2018-08-19 17:56:41 +00:00
Route39BarnRefusedBerryText:
text "<PLAYER> wouldn't"
line "give a BERRY."
para "MILTANK looks sad."
done
Route39Barn_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-02 03:22:07 +00:00
warp_event 3, 7, ROUTE_39, 1
warp_event 4, 7, ROUTE_39, 1
def_coord_events
def_bg_events
def_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