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

164 lines
8.2 KiB
SQL

SixIsland_PatternBush_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, SixIsland_PatternBush_OnTransition
.byte 0
SixIsland_PatternBush_OnTransition::
setworldmapflag FLAG_WORLD_MAP_SIX_ISLAND_PATTERN_BUSH
getplayerxy VAR_TEMP_1, VAR_TEMP_2
call_if_ge VAR_TEMP_1, 50, SixIsland_PatternBush_EventScript_SetEscapeRightExit
call_if_le VAR_TEMP_1, 49, SixIsland_PatternBush_EventScript_SetEscapeLeftExit
end
SixIsland_PatternBush_EventScript_SetEscapeRightExit::
setescapewarp MAP_SIX_ISLAND_GREEN_PATH, 255, 64, 10
return
SixIsland_PatternBush_EventScript_SetEscapeLeftExit::
setescapewarp MAP_SIX_ISLAND_GREEN_PATH, 255, 45, 10
return
SixIsland_PatternBush_EventScript_Bethany::
trainerbattle_single TRAINER_PKMN_BREEDER_BETHANY, SixIsland_PatternBush_Text_BethanyIntro, SixIsland_PatternBush_Text_BethanyDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_BethanyRematch
msgbox SixIsland_PatternBush_Text_BethanyPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_BethanyRematch::
trainerbattle_rematch TRAINER_PKMN_BREEDER_BETHANY, SixIsland_PatternBush_Text_BethanyIntro, SixIsland_PatternBush_Text_BethanyDefeat
msgbox SixIsland_PatternBush_Text_BethanyPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Allison::
trainerbattle_single TRAINER_PKMN_BREEDER_ALLISON, SixIsland_PatternBush_Text_AllisonIntro, SixIsland_PatternBush_Text_AllisonDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_AllisonRematch
msgbox SixIsland_PatternBush_Text_AllisonPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_AllisonRematch::
trainerbattle_rematch TRAINER_PKMN_BREEDER_ALLISON, SixIsland_PatternBush_Text_AllisonIntro, SixIsland_PatternBush_Text_AllisonDefeat
msgbox SixIsland_PatternBush_Text_AllisonPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Garret::
trainerbattle_single TRAINER_BUG_CATCHER_GARRET, SixIsland_PatternBush_Text_GarretIntro, SixIsland_PatternBush_Text_GarretDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_GarretRematch
msgbox SixIsland_PatternBush_Text_GarretPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_GarretRematch::
trainerbattle_rematch TRAINER_BUG_CATCHER_GARRET, SixIsland_PatternBush_Text_GarretIntro, SixIsland_PatternBush_Text_GarretDefeat
msgbox SixIsland_PatternBush_Text_GarretPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Jonah::
trainerbattle_single TRAINER_BUG_CATCHER_JONAH, SixIsland_PatternBush_Text_JonahIntro, SixIsland_PatternBush_Text_JonahDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_JonahRematch
msgbox SixIsland_PatternBush_Text_JonahPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_JonahRematch::
trainerbattle_rematch TRAINER_BUG_CATCHER_JONAH, SixIsland_PatternBush_Text_JonahIntro, SixIsland_PatternBush_Text_JonahDefeat
msgbox SixIsland_PatternBush_Text_JonahPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Vance::
trainerbattle_single TRAINER_BUG_CATCHER_VANCE, SixIsland_PatternBush_Text_VanceIntro, SixIsland_PatternBush_Text_VanceDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_VanceRematch
msgbox SixIsland_PatternBush_Text_VancePostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_VanceRematch::
trainerbattle_rematch TRAINER_BUG_CATCHER_VANCE, SixIsland_PatternBush_Text_VanceIntro, SixIsland_PatternBush_Text_VanceDefeat
msgbox SixIsland_PatternBush_Text_VancePostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Nash::
trainerbattle_single TRAINER_YOUNGSTER_NASH, SixIsland_PatternBush_Text_NashIntro, SixIsland_PatternBush_Text_NashDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_NashRematch
msgbox SixIsland_PatternBush_Text_NashPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_NashRematch::
trainerbattle_rematch TRAINER_YOUNGSTER_NASH, SixIsland_PatternBush_Text_NashIntro, SixIsland_PatternBush_Text_NashDefeat
msgbox SixIsland_PatternBush_Text_NashPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Cordell::
trainerbattle_single TRAINER_YOUNGSTER_CORDELL, SixIsland_PatternBush_Text_CordellIntro, SixIsland_PatternBush_Text_CordellDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_CordellRematch
msgbox SixIsland_PatternBush_Text_CordellPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_CordellRematch::
trainerbattle_rematch TRAINER_YOUNGSTER_CORDELL, SixIsland_PatternBush_Text_CordellIntro, SixIsland_PatternBush_Text_CordellDefeat
msgbox SixIsland_PatternBush_Text_CordellPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Dalia::
trainerbattle_single TRAINER_LASS_DALIA, SixIsland_PatternBush_Text_DaliaIntro, SixIsland_PatternBush_Text_DaliaDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_DaliaRematch
msgbox SixIsland_PatternBush_Text_DaliaPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_DaliaRematch::
trainerbattle_rematch TRAINER_LASS_DALIA, SixIsland_PatternBush_Text_DaliaIntro, SixIsland_PatternBush_Text_DaliaDefeat
msgbox SixIsland_PatternBush_Text_DaliaPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Joana::
trainerbattle_single TRAINER_LASS_JOANA, SixIsland_PatternBush_Text_JoanaIntro, SixIsland_PatternBush_Text_JoanaDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_JoanaRematch
msgbox SixIsland_PatternBush_Text_JoanaPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_JoanaRematch::
trainerbattle_rematch TRAINER_LASS_JOANA, SixIsland_PatternBush_Text_JoanaIntro, SixIsland_PatternBush_Text_JoanaDefeat
msgbox SixIsland_PatternBush_Text_JoanaPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Riley::
trainerbattle_single TRAINER_CAMPER_RILEY, SixIsland_PatternBush_Text_RileyIntro, SixIsland_PatternBush_Text_RileyDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_RileyRematch
msgbox SixIsland_PatternBush_Text_RileyPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_RileyRematch::
trainerbattle_rematch TRAINER_CAMPER_RILEY, SixIsland_PatternBush_Text_RileyIntro, SixIsland_PatternBush_Text_RileyDefeat
msgbox SixIsland_PatternBush_Text_RileyPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Marcy::
trainerbattle_single TRAINER_PICNICKER_MARCY, SixIsland_PatternBush_Text_MarcyIntro, SixIsland_PatternBush_Text_MarcyDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_MarcyRematch
msgbox SixIsland_PatternBush_Text_MarcyPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_MarcyRematch::
trainerbattle_rematch TRAINER_PICNICKER_MARCY, SixIsland_PatternBush_Text_MarcyIntro, SixIsland_PatternBush_Text_MarcyDefeat
msgbox SixIsland_PatternBush_Text_MarcyPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_Layton::
trainerbattle_single TRAINER_RUIN_MANIAC_LAYTON, SixIsland_PatternBush_Text_LaytonIntro, SixIsland_PatternBush_Text_LaytonDefeat
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, SixIsland_PatternBush_EventScript_LaytonRematch
msgbox SixIsland_PatternBush_Text_LaytonPostBattle, MSGBOX_AUTOCLOSE
end
SixIsland_PatternBush_EventScript_LaytonRematch::
trainerbattle_rematch TRAINER_RUIN_MANIAC_LAYTON, SixIsland_PatternBush_Text_LaytonIntro, SixIsland_PatternBush_Text_LaytonDefeat
msgbox SixIsland_PatternBush_Text_LaytonPostBattle, MSGBOX_AUTOCLOSE
end