pokecrystal-board/maps/Route39Barn.asm

204 lines
3.4 KiB
NASM
Raw Normal View History

const_value set 2 ; person 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
2015-07-10 01:45:35 -07:00
TwinScript_0x9cc76:
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
writetext Text_MoomooIsSick
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface ROUTE39BARN_TWIN1, RIGHT
end
2015-10-31 18:05:02 -07:00
.FeedingMooMoo:
writetext Text_WereFeedingMoomoo
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface ROUTE39BARN_TWIN1, RIGHT
end
2015-07-10 01:45:35 -07:00
TwinScript_0x9cc90:
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
writetext Text_MoomooIsSick
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface ROUTE39BARN_TWIN2, LEFT
end
2015-10-31 18:05:02 -07:00
.FeedingMooMoo:
writetext Text_WereFeedingMoomoo
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface ROUTE39BARN_TWIN2, LEFT
end
2016-04-07 03:13:59 -07:00
MooMoo:
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
writetext Text_WeakMoo
writebyte MILTANK
special PlaySlowCry
2015-11-29 19:29:45 -08:00
buttonsound
2015-10-31 18:05:02 -07:00
writetext Text_ItsCryIsWeak
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
2015-10-31 18:05:02 -07:00
writetext Text_AskGiveBerry
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
copybytetovar MooMooBerries
2015-10-31 18:05:02 -07:00
addvar 1
copyvartobyte MooMooBerries
2015-10-31 18:05:02 -07:00
if_equal 3, .ThreeBerries
if_equal 5, .FiveBerries
if_equal 7, .SevenBerries
writetext Text_GaveBerry
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-10-31 18:05:02 -07:00
.ThreeBerries:
writetext Text_GaveBerry
2015-11-29 19:29:45 -08:00
buttonsound
2015-10-31 18:05:02 -07:00
writetext Text_LittleHealthier
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-10-31 18:05:02 -07:00
.FiveBerries:
writetext Text_GaveBerry
2015-11-29 19:29:45 -08:00
buttonsound
2015-10-31 18:05:02 -07:00
writetext Text_QuiteHealthy
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-10-31 18:05:02 -07:00
.SevenBerries:
playmusic MUSIC_HEAL
2015-10-31 18:05:02 -07:00
writetext Text_GaveBerry
pause 60
2015-11-29 19:29:45 -08:00
buttonsound
special RestartMapMusic
2015-10-31 18:05:02 -07:00
writetext Text_TotallyHealthy
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:
writetext Text_NoBerries
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-10-31 18:05:02 -07:00
.Refused:
writetext Text_RefusedToGiveBerry
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-10-31 18:05:02 -07:00
.HappyCow:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x9cd92
cry MILTANK
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-10-31 18:05:02 -07:00
Text_MoomooIsSick:
text "MOOMOO is sick…"
para "She needs lots of"
line "BERRIES."
done
2015-10-31 18:05:02 -07:00
Text_WereFeedingMoomoo:
text "We're feeding"
line "MOOMOO!"
done
2015-10-31 18:05:02 -07:00
Text_WeakMoo:
text "MILTANK: …Moo…"
done
2015-10-31 18:05:02 -07:00
Text_ItsCryIsWeak:
text "Its cry is weak…"
done
2015-07-10 01:45:35 -07:00
UnknownText_0x9cd92:
text "MILTANK: Mooo!"
done
2015-10-31 18:05:02 -07:00
Text_AskGiveBerry:
text "Give a BERRY to"
line "MILTANK?"
done
2015-10-31 18:05:02 -07:00
Text_GaveBerry:
text "<PLAYER> gave a"
line "BERRY to MILTANK."
done
2015-10-31 18:05:02 -07:00
Text_LittleHealthier:
text "MILTANK became a"
line "little healthier!"
done
2015-10-31 18:05:02 -07:00
Text_QuiteHealthy:
text "MILTANK became"
line "quite healthy!"
done
2015-10-31 18:05:02 -07:00
Text_TotallyHealthy:
text "MILTANK became"
line "totally healthy!"
done
2015-10-31 18:05:02 -07:00
Text_NoBerries:
text "<PLAYER> has no"
line "BERRIES…"
done
2015-10-31 18:05:02 -07:00
Text_RefusedToGiveBerry:
text "<PLAYER> wouldn't"
line "give a BERRY."
para "MILTANK looks sad."
done
Route39Barn_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
warp_event 3, 7, 1, ROUTE_39
warp_event 4, 7, 1, ROUTE_39
db 0 ; coord events
db 0 ; bg events
db 3 ; object events
object_event 2, 3, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, TwinScript_0x9cc76, -1
object_event 4, 3, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, TwinScript_0x9cc90, -1
object_event 3, 3, SPRITE_TAUROS, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MooMoo, -1