pokeemerald/data/maps/Route102/scripts.inc

110 lines
3.2 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
Route102_MapScripts::
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route102_EventScript_LittleBoy::
2019-10-22 22:53:49 +02:00
msgbox Route102_Text_ImNotVeryTall, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_RouteSignOldale::
2019-10-22 22:53:49 +02:00
msgbox Route102_Text_RouteSignOldale, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_RouteSignPetalburg::
2019-10-22 22:53:49 +02:00
msgbox Route102_Text_RouteSignPetalburg, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_Boy::
2019-10-22 22:53:49 +02:00
msgbox Route102_Text_CatchWholeBunchOfPokemon, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_Calvin::
2019-10-22 22:53:49 +02:00
trainerbattle_single TRAINER_CALVIN_1, Route102_Text_CalvinIntro, Route102_Text_CalvinDefeated, Route102_EventScript_CalvinRegisterMatchCallAfterBattle
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route102_EventScript_CalvinRematch
2019-09-30 07:42:52 +02:00
setvar VAR_0x8004, TRAINER_CALVIN_1
specialvar VAR_RESULT, IsTrainerRegistered
goto_if_eq VAR_RESULT, FALSE, Route102_EventScript_CalvinTryRegister
2019-10-22 22:53:49 +02:00
msgbox Route102_Text_CalvinPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_CalvinRegisterMatchCallAfterBattle::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-22 22:53:49 +02:00
goto_if_set FLAG_HAS_MATCH_CALL, Route102_EventScript_CalvinRegisterMatchCall
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_CalvinRegisterMatchCall::
2019-10-22 22:53:49 +02:00
msgbox Route102_Text_CalvinRegisterShort, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_CALVIN_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_CalvinTryRegister::
2019-10-22 22:53:49 +02:00
goto_if_set FLAG_HAS_MATCH_CALL, Route102_EventScript_CalvinRegister
msgbox Route102_Text_CalvinPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_CalvinRegister::
2019-10-22 22:53:49 +02:00
msgbox Route102_Text_CalvinRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_CALVIN_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_CalvinRematch::
2019-10-22 22:53:49 +02:00
trainerbattle_rematch TRAINER_CALVIN_1, Route102_Text_CalvinRematchIntro, Route102_Text_CalvinRematchDefeated
msgbox Route102_Text_CalvinRematchPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_Rick::
2019-10-22 22:53:49 +02:00
trainerbattle_single TRAINER_RICK, Route102_Text_RickIntro, Route102_Text_RickDefeated
msgbox Route102_Text_RickPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_Tiana::
2019-10-22 22:53:49 +02:00
trainerbattle_single TRAINER_TIANA, Route102_Text_TianaIntro, Route102_Text_TianaDefeated
msgbox Route102_Text_TianaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route102_EventScript_Allen::
2019-10-22 22:53:49 +02:00
trainerbattle_single TRAINER_ALLEN, Route102_Text_AllenIntro, Route102_Text_AllenDefeated
msgbox Route102_Text_AllenPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route102_Text_WatchMeCatchPokemon:
.string "WALLY: {PLAYER}…\n"
.string "POKéMON hide in tall grass like this,\l"
2018-12-07 16:41:08 +01:00
.string "don't they?\p"
.string "Please watch me and see if I can\n"
.string "catch one properly.\p"
.string "…Whoa!$"
2021-07-20 21:18:31 +02:00
Route102_Text_WallyIDidIt:
2018-12-07 16:41:08 +01:00
.string "WALLY: I did it… It's my…\n"
.string "My POKéMON!$"
2021-07-20 21:18:31 +02:00
Route102_Text_LetsGoBack:
.string "{PLAYER}, thank you!\n"
2018-12-07 16:41:08 +01:00
.string "Let's go back to the GYM!$"
2021-07-20 21:18:31 +02:00
Route102_Text_ImNotVeryTall:
2018-12-07 16:41:08 +01:00
.string "I'm…not very tall, so I sink right\n"
.string "into tall grass.\p"
.string "The grass goes up my nose and…\n"
.string "Fwafwafwafwafwa…\p"
.string "Fwatchoo!$"
2021-07-20 21:18:31 +02:00
Route102_Text_CatchWholeBunchOfPokemon:
2018-12-07 16:41:08 +01:00
.string "I'm going to catch a whole bunch of\n"
.string "POKéMON!$"
2021-07-20 21:18:31 +02:00
Route102_Text_RouteSignOldale:
.string "ROUTE 102\n"
.string "{RIGHT_ARROW} OLDALE TOWN$"
2021-07-20 21:18:31 +02:00
Route102_Text_RouteSignPetalburg:
.string "ROUTE 102\n"
.string "{LEFT_ARROW} PETALBURG CITY$"