pokeemerald/data/maps/Route121/scripts.inc

193 lines
5.5 KiB
PHP
Raw Permalink Normal View History

.set LOCALID_GRUNT_1, 12
.set LOCALID_GRUNT_2, 13
.set LOCALID_GRUNT_3, 14
2021-07-20 21:18:31 +02:00
Route121_MapScripts::
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route121_EventScript_Woman::
msgbox Route121_Text_AheadLoomsMtPyre, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_MtPyrePierSign::
msgbox Route121_Text_MtPyrePierSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_SafariZoneSign::
msgbox Route121_Text_SafariZoneSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_AquaGruntsMoveOut::
2017-11-10 02:21:31 +01:00
lockall
2021-05-21 22:08:00 +02:00
playbgm MUS_ENCOUNTER_AQUA, FALSE
applymovement LOCALID_GRUNT_2, Common_Movement_WalkInPlaceRight
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox Route121_Text_OkayMoveOutToMtPyre, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_GRUNT_1, Route121_Movement_Grunt1Exit
applymovement LOCALID_GRUNT_2, Route121_Movement_Grunt2Exit
applymovement LOCALID_GRUNT_3, Route121_Movement_Grunt3Exit
2017-11-10 02:21:31 +01:00
waitmovement 0
fadedefaultbgm
removeobject LOCALID_GRUNT_1
removeobject LOCALID_GRUNT_2
removeobject LOCALID_GRUNT_3
setvar VAR_ROUTE121_STATE, 1
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
Route121_Movement_Grunt1Exit:
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route121_Movement_Grunt2Exit:
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route121_Movement_Grunt3Exit:
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Vanessa::
trainerbattle_single TRAINER_VANESSA, Route121_Text_VanessaIntro, Route121_Text_VanessaDefeat
msgbox Route121_Text_VanessaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Walter::
trainerbattle_single TRAINER_WALTER_1, Route121_Text_WalterIntro, Route121_Text_WalterDefeat, Route121_EventScript_RegisterWalter
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route121_EventScript_RematchWalter
msgbox Route121_Text_WalterPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_RegisterWalter::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox Route121_Text_WalterRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_WALTER_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_RematchWalter::
trainerbattle_rematch TRAINER_WALTER_1, Route121_Text_WalterRematchIntro, Route121_Text_WalterRematchDefeat
msgbox Route121_Text_WalterPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Tammy::
trainerbattle_single TRAINER_TAMMY, Route121_Text_TammyIntro, Route121_Text_TammyDefeat
msgbox Route121_Text_TammyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Kate::
trainerbattle_double TRAINER_KATE_AND_JOY, Route121_Text_KateIntro, Route121_Text_KateDefeat, Route121_Text_KateNotEnoughMons
msgbox Route121_Text_KatePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Joy::
trainerbattle_double TRAINER_KATE_AND_JOY, Route121_Text_JoyIntro, Route121_Text_JoyDefeat, Route121_Text_JoyNotEnoughMons
msgbox Route121_Text_JoyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Jessica::
trainerbattle_single TRAINER_JESSICA_1, Route121_Text_JessicaIntro, Route121_Text_JessicaDefeat, Route121_EventScript_RegisterJessica
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route121_EventScript_RematchJessica
msgbox Route121_Text_JessicaPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_RegisterJessica::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox Route121_Text_JessicaRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_JESSICA_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_RematchJessica::
trainerbattle_rematch TRAINER_JESSICA_1, Route121_Text_JessicaRematchIntro, Route121_Text_JessicaRematchDefeat
msgbox Route121_Text_JessicaPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Cale::
trainerbattle_single TRAINER_CALE, Route121_Text_CaleIntro, Route121_Text_CaleDefeat
msgbox Route121_Text_CalePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Myles::
trainerbattle_single TRAINER_MYLES, Route121_Text_MylesIntro, Route121_Text_MylesDefeat
msgbox Route121_Text_MylesPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Pat::
trainerbattle_single TRAINER_PAT, Route121_Text_PatIntro, Route121_Text_PatDefeat
msgbox Route121_Text_PatPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Marcel::
trainerbattle_single TRAINER_MARCEL, Route121_Text_MarcelIntro, Route121_Text_MarcelDefeat
msgbox Route121_Text_MarcelPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_Cristin::
trainerbattle_single TRAINER_CRISTIN_1, Route121_Text_CristinIntro, Route121_Text_CristinDefeat, Route121_EventScript_RegisterCristin
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route121_EventScript_RematchCristin
msgbox Route121_Text_CristinPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_RegisterCristin::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox Route121_Text_CristinRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_CRISTIN_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route121_EventScript_RematchCristin::
trainerbattle_rematch TRAINER_CRISTIN_1, Route121_Text_CristinRematchIntro, Route121_Text_CristinRematchDefeat
msgbox Route121_Text_CristinPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route121_Text_OkayMoveOutToMtPyre:
2017-11-10 02:21:31 +01:00
.string "Okay!\n"
2018-12-07 16:41:08 +01:00
.string "We're to move out to MT. PYRE!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route121_Text_AheadLoomsMtPyre:
2017-11-10 02:21:31 +01:00
.string "Ahead looms MT. PYRE…\p"
.string "It is a natural monument to the spirits \n"
.string "of departed POKéMON…$"
2021-07-20 21:18:31 +02:00
Route121_Text_MtPyrePierSign:
2017-11-10 02:21:31 +01:00
.string "MT. PYRE PIER\p"
.string "…The sign is old and worn out.\n"
.string "The words are barely legible…$"
2021-07-20 21:18:31 +02:00
Route121_Text_SafariZoneSign:
2017-11-10 02:21:31 +01:00
.string "“Filled with rare POKéMON!”\n"
.string "SAFARI ZONE$"