pokecrystal/maps/FuchsiaGym.asm

408 lines
8.3 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const FUCHSIAGYM_JANINE
const FUCHSIAGYM_FUCHSIA_GYM_1
const FUCHSIAGYM_FUCHSIA_GYM_2
const FUCHSIAGYM_FUCHSIA_GYM_3
const FUCHSIAGYM_FUCHSIA_GYM_4
const FUCHSIAGYM_GYM_GUY
2015-07-10 07:00:27 +00:00
FuchsiaGym_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 0
2017-10-26 23:38:58 +00:00
FuchsiaGymJanineScript:
2015-07-10 07:00:27 +00:00
checkflag ENGINE_SOULBADGE
iftrue .FightDone
2017-10-26 06:14:05 +00:00
applymovement FUCHSIAGYM_JANINE, Movement_NinjaSpin
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2017-10-26 06:14:05 +00:00
writetext JanineText_DisappointYou
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2017-10-26 06:14:05 +00:00
winlosstext JanineText_ToughOne, 0
loadtrainer JANINE, 1
startbattle
reloadmapafterbattle
2013-09-24 07:48:58 +00:00
setevent EVENT_BEAT_JANINE
2015-07-10 07:00:27 +00:00
setevent EVENT_BEAT_LASS_ALICE
setevent EVENT_BEAT_LASS_LINDA
setevent EVENT_BEAT_PICNICKER_CINDY
setevent EVENT_BEAT_CAMPER_BARRY
variablesprite SPRITE_FUCHSIA_GYM_1, SPRITE_LASS
variablesprite SPRITE_FUCHSIA_GYM_2, SPRITE_LASS
variablesprite SPRITE_FUCHSIA_GYM_3, SPRITE_LASS
variablesprite SPRITE_FUCHSIA_GYM_4, SPRITE_YOUNGSTER
special MapCallbackSprites_LoadUsedSpritesGFX
2015-12-09 23:25:44 +00:00
opentext
2017-10-26 06:14:05 +00:00
writetext Text_ReceivedSoulBadge
playsound SFX_GET_BADGE
2015-11-25 15:16:29 +00:00
waitsfx
2015-07-10 07:00:27 +00:00
setflag ENGINE_SOULBADGE
2017-10-26 06:14:05 +00:00
jump .AfterBattle
.FightDone:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2017-10-26 06:14:05 +00:00
.AfterBattle:
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_TM06_TOXIC
2017-10-26 06:14:05 +00:00
iftrue .AfterTM
writetext JanineText_ToxicSpeech
2015-11-30 03:29:45 +00:00
buttonsound
2015-11-05 01:20:14 +00:00
verbosegiveitem TM_TOXIC
2017-10-26 06:14:05 +00:00
iffalse .AfterTM
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_TM06_TOXIC
2017-10-26 06:14:05 +00:00
.AfterTM:
writetext JanineText_ApplyMyself
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-10-26 06:14:05 +00:00
LassAliceScript:
2015-07-10 07:00:27 +00:00
checkevent EVENT_BEAT_LASS_ALICE
2017-10-26 23:38:58 +00:00
iftrue .AliceUnmasked
2017-10-26 06:14:05 +00:00
applymovement FUCHSIAGYM_FUCHSIA_GYM_1, Movement_NinjaSpin
faceplayer
variablesprite SPRITE_FUCHSIA_GYM_1, SPRITE_LASS
special MapCallbackSprites_LoadUsedSpritesGFX
2017-10-26 23:38:58 +00:00
.AliceUnmasked:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 07:00:27 +00:00
checkevent EVENT_BEAT_LASS_ALICE
2017-10-26 23:38:58 +00:00
iftrue .AliceAfterScript
2017-10-26 06:14:05 +00:00
writetext LassAliceBeforeText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2017-10-26 06:14:05 +00:00
winlosstext LassAliceBeatenText, 0
loadtrainer LASS, ALICE
startbattle
2017-10-26 23:38:58 +00:00
iftrue .AliceBecomesJanine
reloadmapafterbattle
2015-07-10 07:00:27 +00:00
setevent EVENT_BEAT_LASS_ALICE
end
2017-10-26 23:38:58 +00:00
.AliceBecomesJanine:
variablesprite SPRITE_FUCHSIA_GYM_1, SPRITE_JANINE
reloadmapafterbattle
end
2017-10-26 23:38:58 +00:00
.AliceAfterScript:
writetext LassAliceAfterText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-10-26 06:14:05 +00:00
LassLindaScript:
2015-07-10 07:00:27 +00:00
checkevent EVENT_BEAT_LASS_LINDA
2017-10-26 23:38:58 +00:00
iftrue .LindaUnmasked
2017-10-26 06:14:05 +00:00
applymovement FUCHSIAGYM_FUCHSIA_GYM_2, Movement_NinjaSpin
faceplayer
variablesprite SPRITE_FUCHSIA_GYM_2, SPRITE_LASS
special MapCallbackSprites_LoadUsedSpritesGFX
2017-10-26 23:38:58 +00:00
.LindaUnmasked:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 07:00:27 +00:00
checkevent EVENT_BEAT_LASS_LINDA
2017-10-26 23:38:58 +00:00
iftrue .LindaAfterScript
writetext LassLindaBeforeText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2017-10-26 23:38:58 +00:00
winlosstext LassLindaBeatenText, 0
loadtrainer LASS, LINDA
startbattle
2017-10-26 23:38:58 +00:00
iftrue .LindaBecomesJanine
reloadmapafterbattle
2015-07-10 07:00:27 +00:00
setevent EVENT_BEAT_LASS_LINDA
end
2017-10-26 23:38:58 +00:00
.LindaBecomesJanine:
variablesprite SPRITE_FUCHSIA_GYM_2, SPRITE_JANINE
reloadmapafterbattle
end
2017-10-26 23:38:58 +00:00
.LindaAfterScript:
writetext LassLindaAfterText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-10-26 06:14:05 +00:00
PicnickerCindyScript:
2015-07-10 07:00:27 +00:00
checkevent EVENT_BEAT_PICNICKER_CINDY
2017-10-26 23:38:58 +00:00
iftrue .CindyUnmasked
2017-10-26 06:14:05 +00:00
applymovement FUCHSIAGYM_FUCHSIA_GYM_3, Movement_NinjaSpin
faceplayer
variablesprite SPRITE_FUCHSIA_GYM_3, SPRITE_LASS
special MapCallbackSprites_LoadUsedSpritesGFX
2017-10-26 23:38:58 +00:00
.CindyUnmasked:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 07:00:27 +00:00
checkevent EVENT_BEAT_PICNICKER_CINDY
2017-10-26 23:38:58 +00:00
iftrue .CindyAfterScript
writetext PicnickerCindyBeforeText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2017-10-26 23:38:58 +00:00
winlosstext PicnickerCindyBeatenText, 0
loadtrainer PICNICKER, CINDY
startbattle
2017-10-26 23:38:58 +00:00
iftrue .CindyBecomesJanine
reloadmapafterbattle
2015-07-10 07:00:27 +00:00
setevent EVENT_BEAT_PICNICKER_CINDY
end
2017-10-26 23:38:58 +00:00
.CindyBecomesJanine:
variablesprite SPRITE_FUCHSIA_GYM_3, SPRITE_JANINE
reloadmapafterbattle
end
2017-10-26 23:38:58 +00:00
.CindyAfterScript:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x19620c
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-10-26 06:14:05 +00:00
CamperBarryScript:
2015-07-10 07:00:27 +00:00
checkevent EVENT_BEAT_CAMPER_BARRY
2017-10-26 23:38:58 +00:00
iftrue .BarryUnmasked
2017-10-26 06:14:05 +00:00
applymovement FUCHSIAGYM_FUCHSIA_GYM_4, Movement_NinjaSpin
faceplayer
variablesprite SPRITE_FUCHSIA_GYM_4, SPRITE_YOUNGSTER
special MapCallbackSprites_LoadUsedSpritesGFX
2017-10-26 23:38:58 +00:00
.BarryUnmasked:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 07:00:27 +00:00
checkevent EVENT_BEAT_CAMPER_BARRY
2017-10-26 23:38:58 +00:00
iftrue .BarryAfterScript
writetext CamperBarryBeforeText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2017-10-26 23:38:58 +00:00
winlosstext CamperBarryBeatenText, 0
loadtrainer CAMPER, BARRY
startbattle
2017-10-26 23:38:58 +00:00
iftrue .BarryBecomesJanine
reloadmapafterbattle
2015-07-10 07:00:27 +00:00
setevent EVENT_BEAT_CAMPER_BARRY
end
2017-10-26 23:38:58 +00:00
.BarryBecomesJanine:
variablesprite SPRITE_FUCHSIA_GYM_4, SPRITE_JANINE
reloadmapafterbattle
end
2017-10-26 23:38:58 +00:00
.BarryAfterScript:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x19626b
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 07:00:27 +00:00
FuchsiaGymGuyScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_BEAT_JANINE
iftrue .FuchsiaGymGuyWinScript
2015-01-20 08:01:23 +00:00
writetext FuchsiaGymGuyText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.FuchsiaGymGuyWinScript:
2015-01-20 08:01:23 +00:00
writetext FuchsiaGymGuyWinText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-06-25 03:51:36 +00:00
FuchsiaGymStatue:
checkflag ENGINE_SOULBADGE
iftrue .Beaten
2015-06-25 01:26:24 +00:00
jumpstd gymstatue1
.Beaten:
trainertotext JANINE, 1, $1
2015-06-25 01:26:24 +00:00
jumpstd gymstatue2
2017-10-26 06:14:05 +00:00
Movement_NinjaSpin:
2016-05-14 17:46:14 +00:00
turn_head DOWN
turn_head LEFT
turn_head UP
turn_head RIGHT
turn_head DOWN
turn_head LEFT
turn_head UP
turn_head RIGHT
turn_head DOWN
turn_head LEFT
turn_head UP
turn_head RIGHT
turn_head DOWN
step_end
2017-10-26 06:14:05 +00:00
JanineText_DisappointYou:
text "Fufufufu…"
para "I'm sorry to dis-"
line "appoint you…"
para "I'm only joking!"
para "I'm the real deal!"
para "JANINE of FUCHSIA"
line "GYM, that's me!"
done
2017-10-26 06:14:05 +00:00
JanineText_ToughOne:
text "JANINE: You're a"
line "tough one. You"
cont "definitely won…"
para "Here's SOULBADGE."
line "Take it."
done
2017-10-26 06:14:05 +00:00
Text_ReceivedSoulBadge:
text "<PLAYER> received"
line "SOULBADGE."
done
2017-10-26 06:14:05 +00:00
JanineText_ToxicSpeech:
text "JANINE: You're so"
line "tough! I have a"
cont "special gift!"
para "It's TOXIC, a pow-"
line "erful poison that"
para "steadily saps the"
line "victim's HP."
done
2017-10-26 06:14:05 +00:00
JanineText_ApplyMyself:
text "JANINE: I'm going"
line "to really apply"
para "myself and improve"
line "my skills."
para "I want to become"
line "better than both"
cont "Father and you!"
done
2017-10-26 06:14:05 +00:00
LassAliceBeforeText:
text "Fufufu!"
para "I'm JANINE, the"
line "GYM LEADER!"
para "No, I'm not!"
line "Gotcha, sucker!"
done
2017-10-26 06:14:05 +00:00
LassAliceBeatenText:
text "I had you fooled…"
done
2017-10-26 23:38:58 +00:00
LassAliceAfterText:
text "How will you dis-"
line "tinguish our real"
cont "LEADER?"
done
2017-10-26 23:38:58 +00:00
LassLindaBeforeText:
text "Fooled you!"
line "Hahaha!"
done
2017-10-26 23:38:58 +00:00
LassLindaBeatenText:
text "Ooh… I lost…"
line "You're not weak…"
done
2017-10-26 23:38:58 +00:00
LassLindaAfterText:
text "Well? Wasn't my"
line "disguise perfect?"
done
2017-10-26 23:38:58 +00:00
PicnickerCindyBeforeText:
text "I'm JANINE!"
para "How did you know I"
line "was real?"
para "Let's battle!"
done
2017-10-26 23:38:58 +00:00
PicnickerCindyBeatenText:
text "Darn it!"
line "I wanted to win!"
done
2015-07-10 07:00:27 +00:00
UnknownText_0x19620c:
text "You must be"
line "getting tired."
done
2017-10-26 23:38:58 +00:00
CamperBarryBeforeText:
text "Wahahaha!"
para "You betcha!"
line "I'm JANINE!"
done
2017-10-26 23:38:58 +00:00
CamperBarryBeatenText:
text "My disguise was"
line "right on! Dang!"
done
2015-07-10 07:00:27 +00:00
UnknownText_0x19626b:
text "Hey, you. Was my"
line "disguise cute or"
cont "what, huh?"
done
2015-07-10 07:00:27 +00:00
FuchsiaGymGuyText:
text "Yo, CHAMP in"
line "making!"
para "Whoops! Take a"
line "good look around"
para "you. The trainers"
line "all look like the"
cont "LEADER, JANINE."
para "Which of them is"
line "the real JANINE?"
done
2015-07-10 07:00:27 +00:00
FuchsiaGymGuyWinText:
text "That was a great"
line "battle, trainer"
cont "from JOHTO!"
done
2015-07-10 07:00:27 +00:00
FuchsiaGym_MapEventHeader:
; filler
db 0, 0
.Warps:
db 2
warp_def $11, $4, 3, FUCHSIA_CITY
warp_def $11, $5, 3, FUCHSIA_CITY
.XYTriggers:
db 0
.Signposts:
db 2
signpost 15, 3, SIGNPOST_READ, FuchsiaGymStatue
signpost 15, 6, SIGNPOST_READ, FuchsiaGymStatue
.PersonEvents:
db 6
2017-10-26 23:38:58 +00:00
person_event SPRITE_JANINE, 10, 1, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, FuchsiaGymJanineScript, -1
2017-10-26 06:14:05 +00:00
person_event SPRITE_FUCHSIA_GYM_1, 7, 5, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, LassAliceScript, -1
person_event SPRITE_FUCHSIA_GYM_2, 11, 5, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, LassLindaScript, -1
person_event SPRITE_FUCHSIA_GYM_3, 4, 9, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, PicnickerCindyScript, -1
person_event SPRITE_FUCHSIA_GYM_4, 2, 4, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, CamperBarryScript, -1
person_event SPRITE_GYM_GUY, 15, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, FuchsiaGymGuyScript, -1