pokeemerald/data/maps/RustboroCity_Gym/scripts.inc

287 lines
10 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
RustboroCity_Gym_MapScripts:: @ 8212F30
.byte 0
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_Roxanne:: @ 8212F31
trainerbattle_single TRAINER_ROXANNE_1, RustboroCity_Gym_Text_RoxannePreBattle, RustboroCity_Gym_Text_RoxanneDefeat, RustboroCity_Gym_EventScript_RoxanneDefeated, NO_MUSIC
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
2019-10-11 23:25:07 +02:00
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
2017-11-10 02:21:31 +01:00
release
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_RoxanneDefeated:: @ 8212F66
message RustboroCity_Gym_Text_ReceivedStoneBadge
2017-11-10 02:21:31 +01:00
waitmessage
call Common_EventScript_PlayGymBadgeFanfare
2019-10-11 23:25:07 +02:00
msgbox RustboroCity_Gym_Text_StoneBadgeInfoTakeThis, MSGBOX_DEFAULT
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_RUSTBORO_GYM
2017-11-10 02:21:31 +01:00
setflag FLAG_BADGE01_GET
2019-08-05 17:23:45 +02:00
setvar VAR_RUSTBORO_CITY_STATE, 1
addvar VAR_PETALBURG_GYM_STATE, 1
2017-11-10 02:21:31 +01:00
setvar VAR_0x8008, 1
2019-08-15 05:38:42 +02:00
call Common_EventScript_SetGymTrainers
compare VAR_PETALBURG_GYM_STATE, 6
2019-10-11 23:25:07 +02:00
call_if_eq Common_EventScript_ReadyPetalburgGymForBattle
goto RustboroCity_Gym_EventScript_GiveRockTomb
2017-11-10 02:21:31 +01:00
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_GiveRockTomb:: @ 8212FA4
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_TM39
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_TM39
2019-10-11 23:25:07 +02:00
msgbox RustboroCity_Gym_Text_ExplainRockTomb, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-10-11 23:25:07 +02:00
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
2017-11-10 02:21:31 +01:00
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_Josh:: @ 8212FE3
trainerbattle_single TRAINER_JOSH, RustboroCity_Gym_Text_JoshPreBattle, RustboroCity_Gym_Text_JoshDefeat
msgbox RustboroCity_Gym_Text_JoshPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_Tommy:: @ 8212FFA
trainerbattle_single TRAINER_TOMMY, RustboroCity_Gym_Text_TommyPreBattle, RustboroCity_Gym_Text_TommyDefeat
msgbox RustboroCity_Gym_Text_TommyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_Marc:: @ 8213011
trainerbattle_single TRAINER_MARC, RustboroCity_Gym_Text_MarcPreBattle, RustboroCity_Gym_Text_MarcDefeat
msgbox RustboroCity_Gym_Text_MarcPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_GymGuide:: @ 8213028
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-10-11 23:25:07 +02:00
goto_if_set FLAG_DEFEATED_RUSTBORO_GYM, RustboroCity_Gym_EventScript_GymGuidePostVictory
msgbox RustboroCity_Gym_Text_GymGuideAdvice, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_GymGuidePostVictory:: @ 821303D
msgbox RustboroCity_Gym_Text_GymGuidePostVictory, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_LeftGymStatue:: @ 8213047
2017-11-10 02:21:31 +01:00
lockall
2019-10-11 23:25:07 +02:00
goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_GymStatueCertified
goto RustboroCity_Gym_EventScript_GymStatue
2017-11-10 02:21:31 +01:00
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_RightGymStatue:: @ 8213057
2017-11-10 02:21:31 +01:00
lockall
2019-10-11 23:25:07 +02:00
goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_GymStatueCertified
goto RustboroCity_Gym_EventScript_GymStatue
2017-11-10 02:21:31 +01:00
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_GymStatueCertified:: @ 8213067
msgbox RustboroCity_Gym_Text_GymStatueCertified, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_GymStatue:: @ 8213071
msgbox RustboroCity_Gym_Text_GymStatue, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_EventScript_RegisterRoxanne:: @ 821307B
2017-11-10 09:24:21 +01:00
lockall
2019-10-11 23:25:07 +02:00
pokenavcall RustboroCity_Gym_Text_RoxanneRegisterCall
2017-11-10 09:24:21 +01:00
waitmessage
delay 30
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_TORE_EYE
2019-10-11 23:25:07 +02:00
msgbox RustboroCity_Gym_Text_RegisteredRoxanne, MSGBOX_DEFAULT
2017-11-10 09:24:21 +01:00
waitfanfare
closemessage
delay 30
2019-01-02 22:12:43 +01:00
setflag FLAG_ENABLE_ROXANNE_MATCH_CALL
clearflag FLAG_ENABLE_ROXANNE_FIRST_CALL
2017-11-10 09:24:21 +01:00
releaseall
end
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_GymGuideAdvice: @ 821309D
2018-12-07 16:41:08 +01:00
.string "Yo, how's it going?\p"
.string "Listen, my friend!\n"
.string "Would you like to become the CHAMPION?\p"
2018-12-07 16:41:08 +01:00
.string "I'm no TRAINER, not me, but I can\n"
.string "sure give you winning advice.\p"
2018-12-07 16:41:08 +01:00
.string "That's settled, then! We'll aim for the\n"
.string "POKéMON CHAMPIONSHIP together!\p"
2018-12-07 16:41:08 +01:00
.string "It's your job as a TRAINER to collect\n"
.string "GYM BADGES, am I right?\p"
2018-12-07 16:41:08 +01:00
.string "But GYM LEADERS aren't pushovers!\p"
.string "And that's where I come in!\n"
.string "I'm here to provide expert advice!\p"
.string "ROXANNE, the GYM LEADER, is a user\n"
.string "of ROCK-type POKéMON.\p"
.string "The ROCK type is very durable, but\n"
2018-12-07 16:41:08 +01:00
.string "it can't stand WATER-type and\l"
.string "GRASS-type moves.\p"
.string "Come see me afterwards, if you beat\n"
.string "the GYM LEADER.\p"
.string "Well, go for it!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_GymGuidePostVictory: @ 82132E2
.string "Whoa! What a breathtaking victory!\n"
2018-12-07 16:41:08 +01:00
.string "My cheering must've worked!\p"
.string "Great!\n"
.string "Check your TRAINER CARD.\p"
.string "The STONE BADGE you got should be\n"
.string "properly recorded on it.\p"
.string "In other words…\p"
2018-12-07 16:41:08 +01:00
.string "You've climbed the first step on\n"
.string "the stairs to the CHAMPIONSHIP!\p"
2018-12-07 16:41:08 +01:00
.string "That's got to feel awesome!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_JoshPreBattle: @ 82133E9
2018-12-07 16:41:08 +01:00
.string "Don't take us GYM TRAINERS lightly!\n"
.string "I'll show you why we're better!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_JoshDefeat: @ 821342D
.string "You were too good for me…$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_JoshPostBattle: @ 8213447
2018-12-07 16:41:08 +01:00
.string "You haven't seen anything of the ROCK\n"
.string "type's terrifying power!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_TommyPreBattle: @ 8213486
2018-12-07 16:41:08 +01:00
.string "If you can't beat me, you won't stand\n"
.string "a chance against ROXANNE!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_TommyDefeat: @ 82134C6
2018-12-07 16:41:08 +01:00
.string "Wow! You've got some potential!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_TommyPostBattle: @ 82134E6
.string "ROXANNE is stronger than me by\n"
.string "several times.\p"
2018-12-07 16:41:08 +01:00
.string "You'd better be on your guard!$"
2019-10-11 23:25:07 +02:00
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!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_MarcDefeat: @ 8213589
.string "Oh, man oh man!\n"
.string "Our challenger is one feisty customer!$"
2019-10-11 23:25:07 +02:00
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.$"
2019-10-11 23:25:07 +02:00
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"
.string "apply what I learned at the POKéMON\l"
2018-12-07 16:41:08 +01:00
.string "TRAINER'S SCHOOL in battle.\p"
.string "Would you kindly demonstrate how you\n"
.string "battle, and with which POKéMON?$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_RoxanneDefeat: @ 821370B
.string "So…\n"
.string "I lost…\p"
.string "It seems that I still have much more\n"
.string "to learn…\p"
.string "I understand.\p"
2018-12-07 16:41:08 +01:00
.string "The POKéMON LEAGUE's rules state\n"
.string "that TRAINERS are to be given this\l"
.string "if they defeat a GYM LEADER.\p"
.string "Please accept the official POKéMON\n"
.string "LEAGUE STONE BADGE.$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_ReceivedStoneBadge: @ 82137EC
.string "{PLAYER} received the STONE BADGE\n"
.string "from ROXANNE.$"
2019-10-11 23:25:07 +02:00
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.$"
2019-10-11 23:25:07 +02:00
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"
.string "rocks, it also lowers SPEED.\p"
.string "If you use a TM, it instantly teaches\n"
.string "the move to a POKéMON.\p"
.string "Remember, a TM can be used only once,\n"
.string "so think before you use it.$"
2019-10-11 23:25:07 +02:00
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.$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_GymStatue: @ 8213A21
.string "RUSTBORO CITY POKéMON GYM$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_GymStatueCertified: @ 8213A3B
.string "RUSTBORO CITY POKéMON GYM\p"
2018-12-07 16:41:08 +01:00
.string "ROXANNE'S CERTIFIED TRAINERS:\n"
.string "{PLAYER}$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_RoxanneRegisterCall: @ 8213A76
2017-11-10 09:24:21 +01:00
.string "… … … … … …\n"
.string "… … … … … Beep!\p"
.string "ROXANNE: Oh, hello, {PLAYER}?\n"
.string "This is ROXANNE of RUSTBORO CITY.\p"
2018-12-07 16:41:08 +01:00
.string "I heard from BRAWLY that you're\n"
2017-11-10 09:24:21 +01:00
.string "moving up through the ranks of\l"
.string "TRAINERS at an incredible clip.\p"
2018-12-07 16:41:08 +01:00
.string "Well, I'd rather not think that\n"
.string "I can't beat you.\p"
2017-11-10 09:24:21 +01:00
.string "I promise, I will shape up my GYM\n"
.string "so that you may challenge us again.\p"
2018-12-07 16:41:08 +01:00
.string "I hope you'll be looking forward to\n"
2017-11-10 09:24:21 +01:00
.string "that occasion as much as me!\p"
.string "… … … … … …\n"
.string "… … … … … Click!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_RegisteredRoxanne: @ 8213C01
2017-11-10 09:24:21 +01:00
.string "Registered GYM LEADER ROXANNE\n"
.string "in the POKéNAV.$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_RoxannePreRematch: @ 8213C2F
2018-12-07 16:41:08 +01:00
.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"
.string "battles since we last met.\p"
.string "I would like to see how much better\n"
2018-12-07 16:41:08 +01:00
.string "we've become. Let us battle!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_RoxanneRematchDefeat: @ 8213CF9
.string "Grr…\n"
.string "Again, I have lost…$"
2019-10-11 23:25:07 +02:00
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!$"
2019-10-11 23:25:07 +02:00
RustboroCity_Gym_Text_RoxanneRematchNeedTwoMons: @ 8213D93
2018-12-07 16:41:08 +01:00
.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"
.string "battles since we last met.\p"
.string "I would like to see how much better\n"
2018-12-07 16:41:08 +01:00
.string "we've become…\p"
.string "Oh, no…\n"
.string "You only have one POKéMON with you?\p"
.string "Please return with at least one more\n"
.string "POKéMON.$"