pokecrystal/maps/Route39Barn.asm

211 lines
3.4 KiB
NASM
Raw Normal View History

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