Document Gym scripts first half

This commit is contained in:
GriffinR
2019-10-11 17:25:07 -04:00
committed by huderlem
parent a0b3f5d9e3
commit 348bb002a8
18 changed files with 554 additions and 561 deletions
+68 -69
View File
@@ -1,21 +1,21 @@
RustboroCity_Gym_MapScripts:: @ 8212F30
.byte 0
RustboroCity_Gym_EventScript_212F31:: @ 8212F31
trainerbattle_single TRAINER_ROXANNE_1, RustboroCity_Gym_Text_21362A, RustboroCity_Gym_Text_21370B, RustboroCity_Gym_EventScript_212F66, NO_MUSIC
RustboroCity_Gym_EventScript_Roxanne:: @ 8212F31
trainerbattle_single TRAINER_ROXANNE_1, RustboroCity_Gym_Text_RoxannePreBattle, RustboroCity_Gym_Text_RoxanneDefeat, RustboroCity_Gym_EventScript_RoxanneDefeated, NO_MUSIC
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
goto_if_eq RustboroCity_Gym_EventScript_212FC8
goto_if_unset FLAG_RECEIVED_TM39, RustboroCity_Gym_EventScript_212FA4
msgbox RustboroCity_Gym_Text_2139A7, MSGBOX_DEFAULT
compare VAR_RESULT, TRUE
goto_if_eq RustboroCity_Gym_EventScript_RoxanneRematch
goto_if_unset FLAG_RECEIVED_TM39, RustboroCity_Gym_EventScript_GiveRockTomb
msgbox RustboroCity_Gym_Text_RoxannePostBattle, MSGBOX_DEFAULT
release
end
RustboroCity_Gym_EventScript_212F66:: @ 8212F66
message RustboroCity_Gym_Text_2137EC
RustboroCity_Gym_EventScript_RoxanneDefeated:: @ 8212F66
message RustboroCity_Gym_Text_ReceivedStoneBadge
waitmessage
call Common_EventScript_PlayGymBadgeFanfare
msgbox RustboroCity_Gym_Text_213816, MSGBOX_DEFAULT
msgbox RustboroCity_Gym_Text_StoneBadgeInfoTakeThis, MSGBOX_DEFAULT
setflag FLAG_DEFEATED_RUSTBORO_GYM
setflag FLAG_BADGE01_GET
setvar VAR_RUSTBORO_CITY_STATE, 1
@@ -23,81 +23,81 @@ RustboroCity_Gym_EventScript_212F66:: @ 8212F66
setvar VAR_0x8008, 1
call Common_EventScript_SetGymTrainers
compare VAR_PETALBURG_GYM_STATE, 6
call_if_eq RustboroCity_Gym_EventScript_271E84
goto RustboroCity_Gym_EventScript_212FA4
call_if_eq Common_EventScript_ReadyPetalburgGymForBattle
goto RustboroCity_Gym_EventScript_GiveRockTomb
end
RustboroCity_Gym_EventScript_212FA4:: @ 8212FA4
RustboroCity_Gym_EventScript_GiveRockTomb:: @ 8212FA4
giveitem_std ITEM_TM39
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_TM39
msgbox RustboroCity_Gym_Text_2138B1, MSGBOX_DEFAULT
msgbox RustboroCity_Gym_Text_ExplainRockTomb, MSGBOX_DEFAULT
release
end
RustboroCity_Gym_EventScript_212FC8:: @ 8212FC8
trainerbattle_rematch_double TRAINER_ROXANNE_1, RustboroCity_Gym_Text_213C2F, RustboroCity_Gym_Text_213CF9, RustboroCity_Gym_Text_213D93
msgbox RustboroCity_Gym_Text_213D12, MSGBOX_AUTOCLOSE
RustboroCity_Gym_EventScript_RoxanneRematch:: @ 8212FC8
trainerbattle_rematch_double TRAINER_ROXANNE_1, RustboroCity_Gym_Text_RoxannePreRematch, RustboroCity_Gym_Text_RoxanneRematchDefeat, RustboroCity_Gym_Text_RoxanneRematchNeedTwoMons
msgbox RustboroCity_Gym_Text_RoxannePostRematch, MSGBOX_AUTOCLOSE
end
RustboroCity_Gym_EventScript_212FE3:: @ 8212FE3
trainerbattle_single TRAINER_JOSH, RustboroCity_Gym_Text_2133E9, RustboroCity_Gym_Text_21342D
msgbox RustboroCity_Gym_Text_213447, MSGBOX_AUTOCLOSE
RustboroCity_Gym_EventScript_Josh:: @ 8212FE3
trainerbattle_single TRAINER_JOSH, RustboroCity_Gym_Text_JoshPreBattle, RustboroCity_Gym_Text_JoshDefeat
msgbox RustboroCity_Gym_Text_JoshPostBattle, MSGBOX_AUTOCLOSE
end
RustboroCity_Gym_EventScript_212FFA:: @ 8212FFA
trainerbattle_single TRAINER_TOMMY, RustboroCity_Gym_Text_213486, RustboroCity_Gym_Text_2134C6
msgbox RustboroCity_Gym_Text_2134E6, MSGBOX_AUTOCLOSE
RustboroCity_Gym_EventScript_Tommy:: @ 8212FFA
trainerbattle_single TRAINER_TOMMY, RustboroCity_Gym_Text_TommyPreBattle, RustboroCity_Gym_Text_TommyDefeat
msgbox RustboroCity_Gym_Text_TommyPostBattle, MSGBOX_AUTOCLOSE
end
RustboroCity_Gym_EventScript_213011:: @ 8213011
trainerbattle_single TRAINER_MARC, RustboroCity_Gym_Text_213533, RustboroCity_Gym_Text_213589
msgbox RustboroCity_Gym_Text_2135C0, MSGBOX_AUTOCLOSE
RustboroCity_Gym_EventScript_Marc:: @ 8213011
trainerbattle_single TRAINER_MARC, RustboroCity_Gym_Text_MarcPreBattle, RustboroCity_Gym_Text_MarcDefeat
msgbox RustboroCity_Gym_Text_MarcPostBattle, MSGBOX_AUTOCLOSE
end
RustboroCity_Gym_EventScript_213028:: @ 8213028
RustboroCity_Gym_EventScript_GymGuide:: @ 8213028
lock
faceplayer
goto_if_set FLAG_DEFEATED_RUSTBORO_GYM, RustboroCity_Gym_EventScript_21303D
msgbox RustboroCity_Gym_Text_21309D, MSGBOX_DEFAULT
goto_if_set FLAG_DEFEATED_RUSTBORO_GYM, RustboroCity_Gym_EventScript_GymGuidePostVictory
msgbox RustboroCity_Gym_Text_GymGuideAdvice, MSGBOX_DEFAULT
release
end
RustboroCity_Gym_EventScript_21303D:: @ 821303D
msgbox RustboroCity_Gym_Text_2132E2, MSGBOX_DEFAULT
RustboroCity_Gym_EventScript_GymGuidePostVictory:: @ 821303D
msgbox RustboroCity_Gym_Text_GymGuidePostVictory, MSGBOX_DEFAULT
release
end
RustboroCity_Gym_EventScript_213047:: @ 8213047
RustboroCity_Gym_EventScript_LeftGymStatue:: @ 8213047
lockall
goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_213067
goto RustboroCity_Gym_EventScript_213071
goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_GymStatueCertified
goto RustboroCity_Gym_EventScript_GymStatue
end
RustboroCity_Gym_EventScript_213057:: @ 8213057
RustboroCity_Gym_EventScript_RightGymStatue:: @ 8213057
lockall
goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_213067
goto RustboroCity_Gym_EventScript_213071
goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_GymStatueCertified
goto RustboroCity_Gym_EventScript_GymStatue
end
RustboroCity_Gym_EventScript_213067:: @ 8213067
msgbox RustboroCity_Gym_Text_213A3B, MSGBOX_DEFAULT
RustboroCity_Gym_EventScript_GymStatueCertified:: @ 8213067
msgbox RustboroCity_Gym_Text_GymStatueCertified, MSGBOX_DEFAULT
releaseall
end
RustboroCity_Gym_EventScript_213071:: @ 8213071
msgbox RustboroCity_Gym_Text_213A21, MSGBOX_DEFAULT
RustboroCity_Gym_EventScript_GymStatue:: @ 8213071
msgbox RustboroCity_Gym_Text_GymStatue, MSGBOX_DEFAULT
releaseall
end
RustboroCity_Gym_EventScript_21307B:: @ 821307B
RustboroCity_Gym_EventScript_RegisterRoxanne:: @ 821307B
lockall
pokenavcall RustboroCity_Gym_Text_213A76
pokenavcall RustboroCity_Gym_Text_RoxanneRegisterCall
waitmessage
delay 30
playfanfare MUS_ME_TORE_EYE
msgbox RustboroCity_Gym_Text_213C01, MSGBOX_DEFAULT
msgbox RustboroCity_Gym_Text_RegisteredRoxanne, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
@@ -106,7 +106,7 @@ RustboroCity_Gym_EventScript_21307B:: @ 821307B
releaseall
end
RustboroCity_Gym_Text_21309D: @ 821309D
RustboroCity_Gym_Text_GymGuideAdvice: @ 821309D
.string "Yo, how's it going?\p"
.string "Listen, my friend!\n"
.string "Would you like to become the CHAMPION?\p"
@@ -128,7 +128,7 @@ RustboroCity_Gym_Text_21309D: @ 821309D
.string "the GYM LEADER.\p"
.string "Well, go for it!$"
RustboroCity_Gym_Text_2132E2: @ 82132E2
RustboroCity_Gym_Text_GymGuidePostVictory: @ 82132E2
.string "Whoa! What a breathtaking victory!\n"
.string "My cheering must've worked!\p"
.string "Great!\n"
@@ -140,45 +140,45 @@ RustboroCity_Gym_Text_2132E2: @ 82132E2
.string "the stairs to the CHAMPIONSHIP!\p"
.string "That's got to feel awesome!$"
RustboroCity_Gym_Text_2133E9: @ 82133E9
RustboroCity_Gym_Text_JoshPreBattle: @ 82133E9
.string "Don't take us GYM TRAINERS lightly!\n"
.string "I'll show you why we're better!$"
RustboroCity_Gym_Text_21342D: @ 821342D
RustboroCity_Gym_Text_JoshDefeat: @ 821342D
.string "You were too good for me…$"
RustboroCity_Gym_Text_213447: @ 8213447
RustboroCity_Gym_Text_JoshPostBattle: @ 8213447
.string "You haven't seen anything of the ROCK\n"
.string "type's terrifying power!$"
RustboroCity_Gym_Text_213486: @ 8213486
RustboroCity_Gym_Text_TommyPreBattle: @ 8213486
.string "If you can't beat me, you won't stand\n"
.string "a chance against ROXANNE!$"
RustboroCity_Gym_Text_2134C6: @ 82134C6
RustboroCity_Gym_Text_TommyDefeat: @ 82134C6
.string "Wow! You've got some potential!$"
RustboroCity_Gym_Text_2134E6: @ 82134E6
RustboroCity_Gym_Text_TommyPostBattle: @ 82134E6
.string "ROXANNE is stronger than me by\n"
.string "several times.\p"
.string "You'd better be on your guard!$"
RustboroCity_Gym_Text_213533: @ 8213533
RustboroCity_Gym_Text_MarcPreBattle: @ 8213533
.string "We might be in the middle of town,\n"
.string "but so what?\p"
.string "My ROCK POKéMON need room to\n"
.string "rampage!$"
RustboroCity_Gym_Text_213589: @ 8213589
RustboroCity_Gym_Text_MarcDefeat: @ 8213589
.string "Oh, man oh man!\n"
.string "Our challenger is one feisty customer!$"
RustboroCity_Gym_Text_2135C0: @ 82135C0
RustboroCity_Gym_Text_MarcPostBattle: @ 82135C0
.string "I have to hand it to our LEADER.\p"
.string "It took smarts and sense for her to\n"
.string "pick the ROCK type at her young age.$"
RustboroCity_Gym_Text_21362A: @ 821362A
RustboroCity_Gym_Text_RoxannePreBattle: @ 821362A
.string "Hello, I am ROXANNE, the RUSTBORO\n"
.string "POKéMON GYM LEADER.\p"
.string "I became a GYM LEADER so that I might\n"
@@ -187,7 +187,7 @@ RustboroCity_Gym_Text_21362A: @ 821362A
.string "Would you kindly demonstrate how you\n"
.string "battle, and with which POKéMON?$"
RustboroCity_Gym_Text_21370B: @ 821370B
RustboroCity_Gym_Text_RoxanneDefeat: @ 821370B
.string "So…\n"
.string "I lost…\p"
.string "It seems that I still have much more\n"
@@ -199,18 +199,18 @@ RustboroCity_Gym_Text_21370B: @ 821370B
.string "Please accept the official POKéMON\n"
.string "LEAGUE STONE BADGE.$"
RustboroCity_Gym_Text_2137EC: @ 82137EC
RustboroCity_Gym_Text_ReceivedStoneBadge: @ 82137EC
.string "{PLAYER} received the STONE BADGE\n"
.string "from ROXANNE.$"
RustboroCity_Gym_Text_213816: @ 8213816
RustboroCity_Gym_Text_StoneBadgeInfoTakeThis: @ 8213816
.string "The STONE BADGE heightens the ATTACK\n"
.string "power of your POKéMON.\p"
.string "It also enables them to use the HM move\n"
.string "CUT outside of battle.\p"
.string "Please take this with you, too.$"
RustboroCity_Gym_Text_2138B1: @ 82138B1
RustboroCity_Gym_Text_ExplainRockTomb: @ 82138B1
.string "That TECHNICAL MACHINE, TM39,\n"
.string "contains ROCK TOMB.\p"
.string "It not only inflicts damage by dropping\n"
@@ -220,22 +220,21 @@ RustboroCity_Gym_Text_2138B1: @ 82138B1
.string "Remember, a TM can be used only once,\n"
.string "so think before you use it.$"
RustboroCity_Gym_Text_2139A7: @ 82139A7
RustboroCity_Gym_Text_RoxannePostBattle: @ 82139A7
.string "Since you are so strong, you should\n"
.string "challenge other GYM LEADERS.\p"
.string "By battling many TRAINERS, you should\n"
.string "learn many things.$"
RustboroCity_Gym_Text_213A21: @ 8213A21
RustboroCity_Gym_Text_GymStatue: @ 8213A21
.string "RUSTBORO CITY POKéMON GYM$"
RustboroCity_Gym_Text_213A3B: @ 8213A3B
RustboroCity_Gym_Text_GymStatueCertified: @ 8213A3B
.string "RUSTBORO CITY POKéMON GYM\p"
.string "ROXANNE'S CERTIFIED TRAINERS:\n"
.string "{PLAYER}$"
RustboroCity_Gym_Text_213A76: @ 8213A76
RustboroCity_Gym_Text_RoxanneRegisterCall: @ 8213A76
.string "… … … … … …\n"
.string "… … … … … Beep!\p"
.string "ROXANNE: Oh, hello, {PLAYER}?\n"
@@ -252,11 +251,11 @@ RustboroCity_Gym_Text_213A76: @ 8213A76
.string "… … … … … …\n"
.string "… … … … … Click!$"
RustboroCity_Gym_Text_213C01: @ 8213C01
RustboroCity_Gym_Text_RegisteredRoxanne: @ 8213C01
.string "Registered GYM LEADER ROXANNE\n"
.string "in the POKéNAV.$"
RustboroCity_Gym_Text_213C2F: @ 8213C2F
RustboroCity_Gym_Text_RoxannePreRematch: @ 8213C2F
.string "ROXANNE: I'm so glad to see you again.\n"
.string "I'm ROXANNE, the GYM LEADER here.\p"
.string "I'm sure we've both experienced many\n"
@@ -264,17 +263,17 @@ RustboroCity_Gym_Text_213C2F: @ 8213C2F
.string "I would like to see how much better\n"
.string "we've become. Let us battle!$"
RustboroCity_Gym_Text_213CF9: @ 8213CF9
RustboroCity_Gym_Text_RoxanneRematchDefeat: @ 8213CF9
.string "Grr…\n"
.string "Again, I have lost…$"
RustboroCity_Gym_Text_213D12: @ 8213D12
RustboroCity_Gym_Text_RoxannePostRematch: @ 8213D12
.string "ROXANNE: I still have much to learn\n"
.string "when it comes to battling POKéMON.\p"
.string "That awareness makes me love battling\n"
.string "all that much more!$"
RustboroCity_Gym_Text_213D93: @ 8213D93
RustboroCity_Gym_Text_RoxanneRematchNeedTwoMons: @ 8213D93
.string "ROXANNE: I'm so glad to see you again.\n"
.string "I'm ROXANNE, the GYM LEADER here.\p"
.string "I'm sure we've both experienced many\n"