pokeemmo/data/maps/Route121/scripts.inc
2025-06-02 14:17:22 +08:00

183 lines
5.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Route121_MapScripts::
.byte 0
Route121_EventScript_Woman::
msgbox Route121_Text_AheadLoomsMtPyre, MSGBOX_NPC
end
Route121_EventScript_MtPyrePierSign::
msgbox Route121_Text_MtPyrePierSign, MSGBOX_SIGN
end
Route121_EventScript_SafariZoneSign::
msgbox Route121_Text_SafariZoneSign, MSGBOX_SIGN
end
Route121_EventScript_AquaGruntsMoveOut::
lockall
playbgm MUS_ENCOUNTER_AQUA, FALSE
applymovement LOCALID_ROUTE121_GRUNT_2, Common_Movement_WalkInPlaceRight
waitmovement 0
msgbox Route121_Text_OkayMoveOutToMtPyre, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_ROUTE121_GRUNT_1, Route121_Movement_Grunt1Exit
applymovement LOCALID_ROUTE121_GRUNT_2, Route121_Movement_Grunt2Exit
applymovement LOCALID_ROUTE121_GRUNT_3, Route121_Movement_Grunt3Exit
waitmovement 0
fadedefaultbgm
removeobject LOCALID_ROUTE121_GRUNT_1
removeobject LOCALID_ROUTE121_GRUNT_2
removeobject LOCALID_ROUTE121_GRUNT_3
setvar VAR_ROUTE121_STATE, 1
releaseall
end
Route121_Movement_Grunt1Exit:
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
step_end
Route121_Movement_Grunt2Exit:
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
step_end
Route121_Movement_Grunt3Exit:
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
step_end
Route121_EventScript_Vanessa::
trainerbattle_single TRAINER_VANESSA, Route121_Text_VanessaIntro, Route121_Text_VanessaDefeat
msgbox Route121_Text_VanessaPostBattle, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Walter::
trainerbattle_single TRAINER_WALTER_1, Route121_Text_WalterIntro, Route121_Text_WalterDefeat, Route121_EventScript_RegisterWalter
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route121_EventScript_RematchWalter
msgbox Route121_Text_WalterPostBattle, MSGBOX_DEFAULT
release
end
Route121_EventScript_RegisterWalter::
special PlayerFaceTrainerAfterBattle
waitmovement 0
msgbox Route121_Text_WalterRegister, MSGBOX_DEFAULT
register_matchcall TRAINER_WALTER_1
release
end
Route121_EventScript_RematchWalter::
trainerbattle_rematch TRAINER_WALTER_1, Route121_Text_WalterRematchIntro, Route121_Text_WalterRematchDefeat
msgbox Route121_Text_WalterPostRematch, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Tammy::
trainerbattle_single TRAINER_TAMMY, Route121_Text_TammyIntro, Route121_Text_TammyDefeat
msgbox Route121_Text_TammyPostBattle, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Kate::
trainerbattle_double TRAINER_KATE_AND_JOY, Route121_Text_KateIntro, Route121_Text_KateDefeat, Route121_Text_KateNotEnoughMons
msgbox Route121_Text_KatePostBattle, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Joy::
trainerbattle_double TRAINER_KATE_AND_JOY, Route121_Text_JoyIntro, Route121_Text_JoyDefeat, Route121_Text_JoyNotEnoughMons
msgbox Route121_Text_JoyPostBattle, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Jessica::
trainerbattle_single TRAINER_JESSICA_1, Route121_Text_JessicaIntro, Route121_Text_JessicaDefeat, Route121_EventScript_RegisterJessica
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route121_EventScript_RematchJessica
msgbox Route121_Text_JessicaPostBattle, MSGBOX_DEFAULT
release
end
Route121_EventScript_RegisterJessica::
special PlayerFaceTrainerAfterBattle
waitmovement 0
msgbox Route121_Text_JessicaRegister, MSGBOX_DEFAULT
register_matchcall TRAINER_JESSICA_1
release
end
Route121_EventScript_RematchJessica::
trainerbattle_rematch TRAINER_JESSICA_1, Route121_Text_JessicaRematchIntro, Route121_Text_JessicaRematchDefeat
msgbox Route121_Text_JessicaPostRematch, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Cale::
trainerbattle_single TRAINER_CALE, Route121_Text_CaleIntro, Route121_Text_CaleDefeat
msgbox Route121_Text_CalePostBattle, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Myles::
trainerbattle_single TRAINER_MYLES, Route121_Text_MylesIntro, Route121_Text_MylesDefeat
msgbox Route121_Text_MylesPostBattle, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Pat::
trainerbattle_single TRAINER_PAT, Route121_Text_PatIntro, Route121_Text_PatDefeat
msgbox Route121_Text_PatPostBattle, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Marcel::
trainerbattle_single TRAINER_MARCEL, Route121_Text_MarcelIntro, Route121_Text_MarcelDefeat
msgbox Route121_Text_MarcelPostBattle, MSGBOX_AUTOCLOSE
end
Route121_EventScript_Cristin::
trainerbattle_single TRAINER_CRISTIN_1, Route121_Text_CristinIntro, Route121_Text_CristinDefeat, Route121_EventScript_RegisterCristin
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route121_EventScript_RematchCristin
msgbox Route121_Text_CristinPostBattle, MSGBOX_DEFAULT
release
end
Route121_EventScript_RegisterCristin::
special PlayerFaceTrainerAfterBattle
waitmovement 0
msgbox Route121_Text_CristinRegister, MSGBOX_DEFAULT
register_matchcall TRAINER_CRISTIN_1
release
end
Route121_EventScript_RematchCristin::
trainerbattle_rematch TRAINER_CRISTIN_1, Route121_Text_CristinRematchIntro, Route121_Text_CristinRematchDefeat
msgbox Route121_Text_CristinPostRematch, MSGBOX_AUTOCLOSE
end
Route121_Text_OkayMoveOutToMtPyre:
.string "好!\n向送神山出发!$"
Route121_Text_AheadLoomsMtPyre:
.string "前方隐约可以看到送神山……\p那是自然为故去宝可梦的\n灵魂建立的坟墓……$"
Route121_Text_MtPyrePierSign:
.string "送神山码头\p……牌子老旧得快要坏掉了\n上面的字迹几乎看不清楚……$"
Route121_Text_SafariZoneSign:
.string "“稀有宝可梦的家园!”\n狩猎地带$"