pokecrystal-board/maps/Route39Barn.asm

204 lines
3.7 KiB
NASM
Raw Normal View History

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
Route39Barn_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2018-02-28 14:47:31 -08:00
Route39BarnTwin1Script:
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
closetext
turnobject ROUTE39BARN_TWIN1, RIGHT
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
closetext
turnobject ROUTE39BARN_TWIN1, RIGHT
end
2018-02-28 14:47:31 -08:00
Route39BarnTwin2Script:
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
closetext
turnobject ROUTE39BARN_TWIN2, LEFT
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
closetext
turnobject ROUTE39BARN_TWIN2, LEFT
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
setval MILTANK
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
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
yesorno
2015-10-31 18:05:02 -07:00
iffalse .Refused
checkitem BERRY
2015-10-31 18:05:02 -07:00
iffalse .NoBerriesInBag
2015-11-04 17:20:14 -08:00
takeitem BERRY
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
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
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
closetext
end
2015-10-31 18:05:02 -07:00
.SevenBerries:
playmusic MUSIC_HEAL
2018-08-19 10:56:41 -07:00
writetext Route39BarnGaveBerryText
pause 60
2015-11-29 19:29:45 -08:00
buttonsound
special RestartMapMusic
2018-08-19 10:56:41 -07:00
writetext Route39BarnTotallyHealthyText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2013-09-24 00:48:58 -07:00
setevent EVENT_HEALED_MOOMOO
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
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
closetext
end
2015-10-31 18:05:02 -07:00
.HappyCow:
2018-08-19 10:56:41 -07:00
writetext MoomooHappyMooText
cry MILTANK
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-08-19 10:56:41 -07:00
Route39BarnTwinMoomooIsSickText:
text "MOOMOO is sick…"
para "She needs lots of"
line "BERRIES."
done
2018-08-19 10:56:41 -07:00
Route39BarnTwinWereFeedingMoomooText:
text "We're feeding"
line "MOOMOO!"
done
2018-08-19 10:56:41 -07:00
MoomooWeakMooText:
text "MILTANK: …Moo…"
done
2018-08-19 10:56:41 -07:00
Route39BarnItsCryIsWeakText:
text "Its cry is weak…"
done
2018-08-19 10:56:41 -07:00
MoomooHappyMooText:
text "MILTANK: Mooo!"
done
2018-08-19 10:56:41 -07:00
Route39BarnAskGiveBerryText:
text "Give a BERRY to"
line "MILTANK?"
done
2018-08-19 10:56:41 -07:00
Route39BarnGaveBerryText:
text "<PLAYER> gave a"
line "BERRY to MILTANK."
done
2018-08-19 10:56:41 -07:00
Route39BarnLittleHealthierText:
text "MILTANK became a"
line "little healthier!"
done
2018-08-19 10:56:41 -07:00
Route39BarnQuiteHealthyText:
text "MILTANK became"
line "quite healthy!"
done
2018-08-19 10:56:41 -07:00
Route39BarnTotallyHealthyText:
text "MILTANK became"
line "totally healthy!"
done
2018-08-19 10:56:41 -07:00
Route39BarnNoBerriesText:
text "<PLAYER> has no"
line "BERRIES…"
done
2018-08-19 10:56:41 -07:00
Route39BarnRefusedBerryText:
text "<PLAYER> wouldn't"
line "give a BERRY."
para "MILTANK looks sad."
done
Route39Barn_MapEvents:
db 0, 0 ; filler
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
db 0 ; coord events
db 0 ; bg events
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