Files
2026-06-08 18:24:42 +09:30

104 lines
4.5 KiB
SQL

VictoryRoad_3F_MapScripts::
map_script MAP_SCRIPT_ON_LOAD, VictoryRoad_3F_OnLoad
.byte 0
VictoryRoad_3F_OnLoad::
call_if_ne VAR_MAP_SCENE_VICTORY_ROAD_3F, 100, VictoryRoad_3F_EventScript_SetRockBarrier
end
VictoryRoad_3F_EventScript_SetRockBarrier::
setmetatile 12, 12, METATILE_Cave_RockBarrier_Top, 1
setmetatile 12, 13, METATILE_Cave_RockBarrier_Bottom, 1
return
VictoryRoad_3F_EventScript_FloorSwitch::
lockall
goto_if_eq VAR_MAP_SCENE_VICTORY_ROAD_3F, 100, VictoryRoad_3F_EventScript_FloorSwitchAlreadyPressed
setmetatile 12, 12, METATILE_Cave_Floor_Ledge_Top, 0
setmetatile 12, 13, METATILE_Cave_Floor_Ledge_Bottom, 0
playse SE_ICE_BREAK
special DrawWholeMapView
waitse
copyobjectxytoperm LOCALID_VICTORY_ROAD_3F_BOULDER1
copyobjectxytoperm LOCALID_VICTORY_ROAD_3F_BOULDER2
setvar VAR_MAP_SCENE_VICTORY_ROAD_3F, 100
releaseall
end
VictoryRoad_3F_EventScript_FloorSwitchAlreadyPressed::
releaseall
end
VictoryRoad_3F_EventScript_George::
trainerbattle_single TRAINER_COOLTRAINER_GEORGE, VictoryRoad_3F_Text_GeorgeIntro, VictoryRoad_3F_Text_GeorgeDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, VictoryRoad_3F_EventScript_GeorgeRematch
msgbox VictoryRoad_3F_Text_GeorgePostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_GeorgeRematch::
trainerbattle_rematch TRAINER_COOLTRAINER_GEORGE, VictoryRoad_3F_Text_GeorgeIntro, VictoryRoad_3F_Text_GeorgeDefeat
msgbox VictoryRoad_3F_Text_GeorgePostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_Colby::
trainerbattle_single TRAINER_COOLTRAINER_COLBY, VictoryRoad_3F_Text_ColbyIntro, VictoryRoad_3F_Text_ColbyDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, VictoryRoad_3F_EventScript_ColbyRematch
msgbox VictoryRoad_3F_Text_ColbyPostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_ColbyRematch::
trainerbattle_rematch TRAINER_COOLTRAINER_COLBY, VictoryRoad_3F_Text_ColbyIntro, VictoryRoad_3F_Text_ColbyDefeat
msgbox VictoryRoad_3F_Text_ColbyPostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_Caroline::
trainerbattle_single TRAINER_COOLTRAINER_CAROLINE, VictoryRoad_3F_Text_CarolineIntro, VictoryRoad_3F_Text_CarolineDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, VictoryRoad_3F_EventScript_CarolineRematch
msgbox VictoryRoad_3F_Text_CarolinePostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_CarolineRematch::
trainerbattle_rematch TRAINER_COOLTRAINER_CAROLINE, VictoryRoad_3F_Text_CarolineIntro, VictoryRoad_3F_Text_CarolineDefeat
msgbox VictoryRoad_3F_Text_CarolinePostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_Alexa::
trainerbattle_single TRAINER_COOLTRAINER_ALEXA, VictoryRoad_3F_Text_AlexaIntro, VictoryRoad_3F_Text_AlexaDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, VictoryRoad_3F_EventScript_AlexaRematch
msgbox VictoryRoad_3F_Text_AlexaPostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_AlexaRematch::
trainerbattle_rematch TRAINER_COOLTRAINER_ALEXA, VictoryRoad_3F_Text_AlexaIntro, VictoryRoad_3F_Text_AlexaDefeat
msgbox VictoryRoad_3F_Text_AlexaPostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_Ray::
trainerbattle_double TRAINER_COOL_COUPLE_RAY_TYRA, VictoryRoad_3F_Text_RayIntro, VictoryRoad_3F_Text_RayDefeat, VictoryRoad_3F_Text_RayNotEnoughMons
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, VictoryRoad_3F_EventScript_RayRematch
msgbox VictoryRoad_3F_Text_RayPostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_RayRematch::
trainerbattle_rematch_double TRAINER_COOL_COUPLE_RAY_TYRA, VictoryRoad_3F_Text_RayIntro, VictoryRoad_3F_Text_RayDefeat, VictoryRoad_3F_Text_RayNotEnoughMons
msgbox VictoryRoad_3F_Text_RayPostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_Tyra::
trainerbattle_double TRAINER_COOL_COUPLE_RAY_TYRA, VictoryRoad_3F_Text_TyraIntro, VictoryRoad_3F_Text_TyraDefeat, VictoryRoad_3F_Text_TyraNotEnoughMons
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, VictoryRoad_3F_EventScript_TyraRematch
msgbox VictoryRoad_3F_Text_TyraPostBattle, MSGBOX_AUTOCLOSE
end
VictoryRoad_3F_EventScript_TyraRematch::
trainerbattle_rematch_double TRAINER_COOL_COUPLE_RAY_TYRA, VictoryRoad_3F_Text_TyraIntro, VictoryRoad_3F_Text_TyraDefeat, VictoryRoad_3F_Text_TyraNotEnoughMons
msgbox VictoryRoad_3F_Text_TyraPostBattle, MSGBOX_AUTOCLOSE
end