pokecrystal/maps/SeafoamGym.asm

171 lines
3.0 KiB
NASM
Raw Normal View History

2018-01-31 16:38:45 +00:00
const_def 2 ; object constants
2015-11-27 05:22:14 +00:00
const SEAFOAMGYM_BLAINE
const SEAFOAMGYM_GYM_GUY
SeafoamGym_MapScripts:
db 1 ; scene scripts
scene_script .DummyScene
db 0 ; callbacks
.DummyScene:
end
2018-02-28 21:50:43 +00:00
SeafoamGymBlaineScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 07:00:27 +00:00
checkflag ENGINE_VOLCANOBADGE
iftrue .FightDone
2018-08-19 17:56:41 +00:00
writetext BlaineIntroText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2018-08-19 17:56:41 +00:00
winlosstext BlaineWinLossText, 0
loadtrainer BLAINE, BLAINE1
startbattle
2015-07-10 07:00:27 +00:00
iftrue .ReturnAfterBattle
2015-11-27 05:22:14 +00:00
appear SEAFOAMGYM_GYM_GUY
.ReturnAfterBattle:
reloadmapafterbattle
2015-07-10 07:00:27 +00:00
setevent EVENT_BEAT_BLAINE
2015-12-09 23:25:44 +00:00
opentext
2018-08-19 17:56:41 +00:00
writetext ReceivedVolcanoBadgeText
playsound SFX_GET_BADGE
2015-11-25 15:16:29 +00:00
waitsfx
2015-07-10 07:00:27 +00:00
setflag ENGINE_VOLCANOBADGE
2018-08-19 17:56:41 +00:00
writetext BlaineAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.FightDone:
2018-08-19 17:56:41 +00:00
writetext BlaineFightDoneText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 07:00:27 +00:00
SeafoamGymGuyScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_TALKED_TO_SEAFOAM_GYM_GUY_ONCE
iftrue .TalkedToSeafoamGymGuyScript
2015-01-20 08:01:23 +00:00
writetext SeafoamGymGuyWinText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2013-09-24 07:48:58 +00:00
setevent EVENT_TALKED_TO_SEAFOAM_GYM_GUY_ONCE
end
.TalkedToSeafoamGymGuyScript:
2015-01-20 08:01:23 +00:00
writetext SeafoamGymGuyWinText2
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-08-19 17:56:41 +00:00
BlaineIntroText:
text "BLAINE: Waaah!"
para "My GYM in CINNABAR"
line "burned down."
para "My fire-breathing"
line "#MON and I are"
para "homeless because"
line "of the volcano."
para "Waaah!"
para "But I'm back in"
line "business as a GYM"
para "LEADER here in"
line "this cave."
para "If you can beat"
line "me, I'll give you"
cont "a BADGE."
para "Ha! You'd better"
line "have BURN HEAL!"
done
2018-08-19 17:56:41 +00:00
BlaineWinLossText:
text "BLAINE: Awesome."
line "I've burned out…"
para "You've earned"
line "VOLCANOBADGE!"
done
2018-08-19 17:56:41 +00:00
ReceivedVolcanoBadgeText:
text "<PLAYER> received"
line "VOLCANOBADGE."
done
2018-08-19 17:56:41 +00:00
BlaineAfterBattleText:
text "BLAINE: I did lose"
line "this time, but I'm"
para "going to win the"
line "next time."
para "When I rebuild my"
line "CINNABAR GYM,"
para "we'll have to have"
line "a rematch."
done
2018-08-19 17:56:41 +00:00
BlaineFightDoneText:
text "BLAINE: My fire"
line "#MON will be"
para "even stronger."
line "Just you watch!"
done
2015-07-10 07:00:27 +00:00
SeafoamGymGuyWinText:
text "Yo!"
para "… Huh? It's over"
line "already?"
para "Sorry, sorry!"
para "CINNABAR GYM was"
line "gone, so I didn't"
para "know where to find"
line "you."
para "But, hey, you're"
line "plenty strong even"
para "without my advice."
line "I knew you'd win!"
done
2015-07-10 07:00:27 +00:00
SeafoamGymGuyWinText2:
text "A #MON GYM can"
line "be anywhere as"
para "long as the GYM"
line "LEADER is there."
para "There's no need"
line "for a building."
done
SeafoamGym_MapEvents:
db 0, 0 ; filler
db 1 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 5, 5, ROUTE_20, 1
db 0 ; coord events
db 0 ; bg events
db 2 ; object events
2018-02-28 21:50:43 +00:00
object_event 5, 2, SPRITE_BLAINE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, SeafoamGymBlaineScript, -1
2018-02-02 03:22:07 +00:00
object_event 6, 5, SPRITE_GYM_GUY, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, SeafoamGymGuyScript, EVENT_SEAFOAM_GYM_GYM_GUY