pokeemerald/data/maps/FortreeCity_Gym/scripts.inc

318 lines
10 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
FortreeCity_Gym_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, FortreeCity_Gym_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, FortreeCity_Gym_OnWarp
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_OnTransition:
special RotatingGate_InitPuzzle
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_OnWarp:
map_script_2 VAR_TEMP_0, VAR_TEMP_0, FortreeCity_Gym_EventScript_InitRotatingGates
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_InitRotatingGates::
2018-02-14 00:58:22 +01:00
special RotatingGate_InitPuzzleAndGraphics
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_Winona::
2020-01-08 21:12:10 +01:00
trainerbattle_single TRAINER_WINONA_1, FortreeCity_Gym_Text_WinonaIntro, FortreeCity_Gym_Text_WinonaDefeat, FortreeCity_Gym_EventScript_WinonaDefeated, NO_MUSIC
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, FortreeCity_Gym_EventScript_WinonaRematch
goto_if_unset FLAG_RECEIVED_TM40, FortreeCity_Gym_EventScript_GiveAerialAce2
msgbox FortreeCity_Gym_Text_WinonaPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_WinonaDefeated::
message FortreeCity_Gym_Text_ReceivedFeatherBadge
2017-11-10 02:21:31 +01:00
waitmessage
call Common_EventScript_PlayGymBadgeFanfare
msgbox FortreeCity_Gym_Text_ExplainFeatherBadgeTakeThis, MSGBOX_DEFAULT
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_FORTREE_GYM
2017-11-10 02:21:31 +01:00
setflag FLAG_BADGE06_GET
setvar VAR_0x8008, 6
2019-08-15 05:38:42 +02:00
call Common_EventScript_SetGymTrainers
call FortreeCity_Gym_EventScript_GiveAerialAce
2017-11-10 02:21:31 +01:00
closemessage
delay 30
2020-08-21 00:02:00 +02:00
playfanfare MUS_REGISTER_MATCH_CALL
msgbox FortreeCity_Gym_Text_RegisteredWinona, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitfanfare
closemessage
delay 30
2019-01-02 22:12:43 +01:00
setflag FLAG_ENABLE_WINONA_MATCH_CALL
setvar VAR_SCOTT_FORTREE_CALL_STEP_COUNTER, 0
setflag FLAG_SCOTT_CALL_FORTREE_GYM
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_GiveAerialAce2::
giveitem ITEM_TM40
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
msgbox FortreeCity_Gym_Text_ExplainAerialAce, MSGBOX_DEFAULT
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_TM40
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_GiveAerialAce::
giveitem ITEM_TM40
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_BagIsFull
msgbox FortreeCity_Gym_Text_ExplainAerialAce, MSGBOX_DEFAULT
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_TM40
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_WinonaRematch::
trainerbattle_rematch_double TRAINER_WINONA_1, FortreeCity_Gym_Text_WinonaPreRematch, FortreeCity_Gym_Text_WinonaRematchDefeat, FortreeCity_Gym_Text_WinonaRematchNeedTwoMons
msgbox FortreeCity_Gym_Text_WinonaPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_Jared::
2020-01-08 21:12:10 +01:00
trainerbattle_single TRAINER_JARED, FortreeCity_Gym_Text_JaredIntro, FortreeCity_Gym_Text_JaredDefeat
msgbox FortreeCity_Gym_Text_JaredPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_Edwardo::
2020-01-08 21:12:10 +01:00
trainerbattle_single TRAINER_EDWARDO, FortreeCity_Gym_Text_EdwardoIntro, FortreeCity_Gym_Text_EdwardoDefeat
msgbox FortreeCity_Gym_Text_EdwardoPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_Flint::
2020-01-08 21:12:10 +01:00
trainerbattle_single TRAINER_FLINT, FortreeCity_Gym_Text_FlintIntro, FortreeCity_Gym_Text_FlintDefeat
msgbox FortreeCity_Gym_Text_FlintPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_Ashley::
2020-01-08 21:12:10 +01:00
trainerbattle_single TRAINER_ASHLEY, FortreeCity_Gym_Text_AshleyIntro, FortreeCity_Gym_Text_AshleyDefeat
msgbox FortreeCity_Gym_Text_AshleyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_Humberto::
2020-01-08 21:12:10 +01:00
trainerbattle_single TRAINER_HUMBERTO, FortreeCity_Gym_Text_HumbertoIntro, FortreeCity_Gym_Text_HumbertoDefeat
msgbox FortreeCity_Gym_Text_HumbertoPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_Darius::
2020-01-08 21:12:10 +01:00
trainerbattle_single TRAINER_DARIUS, FortreeCity_Gym_Text_DariusIntro, FortreeCity_Gym_Text_DariusDefeat
msgbox FortreeCity_Gym_Text_DariusPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_GymGuide::
2017-11-10 02:21:31 +01:00
lock
faceplayer
goto_if_set FLAG_DEFEATED_FORTREE_GYM, FortreeCity_Gym_EventScript_GymGuidePostVictory
msgbox FortreeCity_Gym_Text_GymGuideAdvice, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_GymGuidePostVictory::
msgbox FortreeCity_Gym_Text_GymGuidePostVictory, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_LeftGymStatue::
2017-11-10 02:21:31 +01:00
lockall
goto_if_set FLAG_BADGE06_GET, FortreeCity_Gym_EventScript_GymStatueCertified
goto FortreeCity_Gym_EventScript_GymStatue
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_RightGymStatue::
2017-11-10 02:21:31 +01:00
lockall
goto_if_set FLAG_BADGE06_GET, FortreeCity_Gym_EventScript_GymStatueCertified
goto FortreeCity_Gym_EventScript_GymStatue
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_GymStatueCertified::
msgbox FortreeCity_Gym_Text_GymStatueCertified, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_EventScript_GymStatue::
msgbox FortreeCity_Gym_Text_GymStatue, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_GymGuideAdvice:
2018-12-07 16:41:08 +01:00
.string "Yo, how's it going, CHAMPION-\n"
2017-11-10 02:21:31 +01:00
.string "bound {PLAYER}?\p"
.string "FORTREE GYM LEADER WINONA is\n"
.string "a master of FLYING-type POKéMON.\p"
2018-12-07 16:41:08 +01:00
.string "She's waiting at the back of this GYM,\n"
2017-11-10 02:21:31 +01:00
.string "behind the rotating doors.\p"
2018-12-07 16:41:08 +01:00
.string "She's waiting for new challengers\n"
2017-11-10 02:21:31 +01:00
.string "who are trying to take wing!\p"
.string "Okay, go for it!$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_GymGuidePostVictory:
2017-11-10 02:21:31 +01:00
.string "You did it!\n"
2018-12-07 16:41:08 +01:00
.string "You've achieved liftoff!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_JaredIntro:
2017-11-10 02:21:31 +01:00
.string "Behold the elegant battle style of\n"
.string "BIRD POKéMON!$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_JaredDefeat:
2017-11-10 02:21:31 +01:00
.string "You…\n"
2018-12-07 16:41:08 +01:00
.string "You're strong…$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_JaredPostBattle:
2017-11-10 02:21:31 +01:00
.string "A TRAINER has to be smart to keep\n"
.string "up with unexpected turns of events.\p"
.string "Do you have the smarts to get to\n"
.string "our LEADER?$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_EdwardoIntro:
2017-11-10 02:21:31 +01:00
.string "The lovers of BIRD POKéMON aspire\n"
.string "to join this GYM.\p"
.string "As a member of the FORTREE GYM,\n"
2018-12-07 16:41:08 +01:00
.string "I'm not allowed to lose!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_EdwardoDefeat:
2017-11-10 02:21:31 +01:00
.string "It was too much of a load for me\n"
.string "to bear…$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_EdwardoPostBattle:
2017-11-10 02:21:31 +01:00
.string "The world is huge, and there are\n"
.string "countless tough TRAINERS.\p"
2018-12-07 16:41:08 +01:00
.string "I'm going to keep training and make\n"
2017-11-10 02:21:31 +01:00
.string "myself even stronger.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_FlintIntro:
2018-12-07 16:41:08 +01:00
.string "There's no need for WINONA, our GYM\n"
2017-11-10 02:21:31 +01:00
.string "LEADER, to deal with you!\p"
2018-12-07 16:41:08 +01:00
.string "I'm plenty good enough for you!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_FlintDefeat:
2017-11-10 02:21:31 +01:00
.string "WINONA, I…\n"
.string "I lost!$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_FlintPostBattle:
2018-12-07 16:41:08 +01:00
.string "WINONA is cute and she's strong.\n"
.string "She's the ultimate LEADER!\p"
2017-11-10 02:21:31 +01:00
.string "Blush…$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_AshleyIntro:
2017-11-10 02:21:31 +01:00
.string "WINONA taught me personally!\n"
2018-12-07 16:41:08 +01:00
.string "You can't beat me easily!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_AshleyDefeat:
2017-11-10 02:21:31 +01:00
.string "I was beaten…$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_AshleyPostBattle:
2017-11-10 02:21:31 +01:00
.string "Thanks to WINONA, the people of\n"
.string "FORTREE can live without fear.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_HumbertoIntro:
2017-11-10 02:21:31 +01:00
.string "When WINONA takes to battle, her face\n"
.string "shines with beautiful determination…\p"
2018-12-07 16:41:08 +01:00
.string "I'm not letting you witness that\n"
2017-11-10 02:21:31 +01:00
.string "lovely sight!$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_HumbertoDefeat:
2017-11-10 02:21:31 +01:00
.string "Urk!\n"
2018-12-07 16:41:08 +01:00
.string "I couldn't stop you.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_HumbertoPostBattle:
2018-12-07 16:41:08 +01:00
.string "You'd better watch it!\n"
.string "Don't get distracted staring at WINONA\l"
.string "or you'll go crashing down in a heap!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_DariusIntro:
2018-12-07 16:41:08 +01:00
.string "You'd better know that there are all\n"
2017-11-10 02:21:31 +01:00
.string "sorts of FLYING-type POKéMON.\p"
.string "You do know that, right?$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_DariusDefeat:
2017-11-10 02:21:31 +01:00
.string "You seem to know your stuff!$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_DariusPostBattle:
2017-11-10 02:21:31 +01:00
.string "Sure, you beat me all right.\n"
2018-12-07 16:41:08 +01:00
.string "But you'd better watch it! Our LEADER\l"
.string "WINONA's POKéMON are all business.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_WinonaIntro:
2017-11-10 02:21:31 +01:00
.string "I am WINONA. I am the LEADER of\n"
.string "the FORTREE POKéMON GYM.\p"
.string "I have become one with BIRD POKéMON\n"
.string "and have soared the skies…\p"
.string "However grueling the battle, we have\n"
.string "triumphed with grace…\p"
.string "Witness the elegant choreography\n"
.string "of BIRD POKéMON and I!$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_WinonaDefeat:
2017-11-10 02:21:31 +01:00
.string "Never before have I seen a TRAINER\n"
.string "command POKéMON with more grace\l"
.string "than I…\p"
.string "In recognition of your prowess,\n"
.string "I present to you this GYM BADGE.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_ReceivedFeatherBadge:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} received the FEATHER BADGE\n"
.string "from WINONA.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_ExplainFeatherBadgeTakeThis:
2017-11-10 02:21:31 +01:00
.string "With the FEATHER BADGE, all POKéMON up\n"
.string "to LV 70, even those received through\l"
.string "trades, will obey your every command.\p"
.string "You will also be able to use\n"
.string "the HM move FLY outside of battle.\p"
.string "And this…\n"
.string "This is a gift from me.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_ExplainAerialAce:
2017-11-10 02:21:31 +01:00
.string "TM40 contains AERIAL ACE.\p"
.string "Its speed…\n"
.string "No POKéMON should be able to avoid it.\p"
.string "… … … … … …$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_RegisteredWinona:
2017-11-10 02:21:31 +01:00
.string "Registered GYM LEADER WINONA\n"
.string "in the POKéNAV.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_WinonaPostBattle:
2017-11-10 02:21:31 +01:00
.string "Though I fell to you, I will remain\n"
.string "devoted to BIRD POKéMON.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_GymStatue:
2017-11-10 02:21:31 +01:00
.string "FORTREE CITY POKéMON GYM$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_GymStatueCertified:
2017-11-10 02:21:31 +01:00
.string "FORTREE CITY POKéMON GYM\p"
2018-12-07 16:41:08 +01:00
.string "WINONA'S CERTIFIED TRAINERS:\n"
2017-11-10 02:21:31 +01:00
.string "{PLAYER}$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_WinonaPreRematch:
2017-11-10 02:21:31 +01:00
.string "WINONA: We humans can never escape\n"
2018-12-07 16:41:08 +01:00
.string "gravity's pull on the ground.\p"
2017-11-10 02:21:31 +01:00
.string "But by striving for excellence,\n"
.string "we have the power to soar!\p"
.string "You have scaled the pinnacle as\n"
.string "the reigning CHAMPION.\p"
.string "Please, allow me to see your power\n"
.string "at full flight!$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_WinonaRematchDefeat:
2017-11-10 02:21:31 +01:00
.string "I failed to reach your height again…$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_WinonaPostRematch:
2017-11-10 02:21:31 +01:00
.string "WINONA: Even though I have lost,\n"
.string "the wings of my heart remain unbroken.\p"
.string "I can rise and soar again and\n"
.string "yet again.\p"
.string "I am convinced of it!$"
2021-07-20 21:18:31 +02:00
FortreeCity_Gym_Text_WinonaRematchNeedTwoMons:
2017-11-10 02:21:31 +01:00
.string "WINONA: We humans can never escape\n"
2018-12-07 16:41:08 +01:00
.string "gravity's pull on the ground.\p"
2017-11-10 02:21:31 +01:00
.string "But by striving for excellence,\n"
.string "we have the power to soar!\p"
.string "You have scaled the pinnacle as\n"
.string "the reigning CHAMPION.\p"
.string "Please, allow me to see your power\n"
.string "at full flight!\p"
.string "Oh, no… Do you have but one\n"
.string "POKéMON with you?\p"
.string "Please return with two POKéMON\n"
.string "at the very least.$"