Files
Pokemon-Firered/data/maps/RockTunnel_1F/scripts.inc
T
2026-06-08 18:24:42 +09:30

97 lines
4.1 KiB
SQL

RockTunnel_1F_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, RockTunnel_1F_OnTransition
.byte 0
RockTunnel_1F_OnTransition::
setworldmapflag FLAG_WORLD_MAP_ROCK_TUNNEL_1F
end
RockTunnel_1F_EventScript_RouteSign::
msgbox RockTunnel_1F_Text_RouteSign, MSGBOX_SIGN
end
RockTunnel_1F_EventScript_Lenny::
trainerbattle_single TRAINER_HIKER_LENNY, RockTunnel_1F_Text_LennyIntro, RockTunnel_1F_Text_LennyDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, RockTunnel_1F_EventScript_LennyRematch
msgbox RockTunnel_1F_Text_LennyPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_LennyRematch::
trainerbattle_rematch TRAINER_HIKER_LENNY, RockTunnel_1F_Text_LennyIntro, RockTunnel_1F_Text_LennyDefeat
msgbox RockTunnel_1F_Text_LennyPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_Oliver::
trainerbattle_single TRAINER_HIKER_OLIVER, RockTunnel_1F_Text_OliverIntro, RockTunnel_1F_Text_OliverDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, RockTunnel_1F_EventScript_OliverRematch
msgbox RockTunnel_1F_Text_OliverPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_OliverRematch::
trainerbattle_rematch TRAINER_HIKER_OLIVER, RockTunnel_1F_Text_OliverIntro, RockTunnel_1F_Text_OliverDefeat
msgbox RockTunnel_1F_Text_OliverPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_Lucas::
trainerbattle_single TRAINER_HIKER_LUCAS, RockTunnel_1F_Text_LucasIntro, RockTunnel_1F_Text_LucasDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, RockTunnel_1F_EventScript_LucasRematch
msgbox RockTunnel_1F_Text_LucasPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_LucasRematch::
trainerbattle_rematch TRAINER_HIKER_LUCAS, RockTunnel_1F_Text_LucasIntro, RockTunnel_1F_Text_LucasDefeat
msgbox RockTunnel_1F_Text_LucasPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_Ashton::
trainerbattle_single TRAINER_POKEMANIAC_ASHTON, RockTunnel_1F_Text_AshtonIntro, RockTunnel_1F_Text_AshtonDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, RockTunnel_1F_EventScript_AshtonRematch
msgbox RockTunnel_1F_Text_AshtonPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_AshtonRematch::
trainerbattle_rematch TRAINER_POKEMANIAC_ASHTON, RockTunnel_1F_Text_AshtonIntro, RockTunnel_1F_Text_AshtonDefeat
msgbox RockTunnel_1F_Text_AshtonPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_Leah::
trainerbattle_single TRAINER_PICNICKER_LEAH, RockTunnel_1F_Text_LeahIntro, RockTunnel_1F_Text_LeahDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, RockTunnel_1F_EventScript_LeahRematch
msgbox RockTunnel_1F_Text_LeahPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_LeahRematch::
trainerbattle_rematch TRAINER_PICNICKER_LEAH, RockTunnel_1F_Text_LeahIntro, RockTunnel_1F_Text_LeahDefeat
msgbox RockTunnel_1F_Text_LeahPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_Ariana::
trainerbattle_single TRAINER_PICNICKER_ARIANA, RockTunnel_1F_Text_ArianaIntro, RockTunnel_1F_Text_ArianaDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, RockTunnel_1F_EventScript_ArianaRematch
msgbox RockTunnel_1F_Text_ArianaPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_ArianaRematch::
trainerbattle_rematch TRAINER_PICNICKER_ARIANA, RockTunnel_1F_Text_ArianaIntro, RockTunnel_1F_Text_ArianaDefeat
msgbox RockTunnel_1F_Text_ArianaPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_Dana::
trainerbattle_single TRAINER_PICNICKER_DANA, RockTunnel_1F_Text_DanaIntro, RockTunnel_1F_Text_DanaDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, RockTunnel_1F_EventScript_DanaRematch
msgbox RockTunnel_1F_Text_DanaPostBattle, MSGBOX_AUTOCLOSE
end
RockTunnel_1F_EventScript_DanaRematch::
trainerbattle_rematch TRAINER_PICNICKER_DANA, RockTunnel_1F_Text_DanaIntro, RockTunnel_1F_Text_DanaDefeat
msgbox RockTunnel_1F_Text_DanaPostBattle, MSGBOX_AUTOCLOSE
end