Split more files from event_scripts

This commit is contained in:
GriffinR
2019-09-27 14:20:51 -04:00
parent 86f1f9066a
commit 12cc7ef34c
11 changed files with 1323 additions and 1322 deletions

346
data/scripts/interview.inc Normal file
View File

@@ -0,0 +1,346 @@
BattleFrontier_BattleTowerLobby_EventScript_28C7E9:: @ 828C7E9
LilycoveCity_ContestLobby_EventScript_28C7E9:: @ 828C7E9
SlateportCity_OceanicMuseum_1F_EventScript_28C7E9:: @ 828C7E9
SlateportCity_PokemonFanClub_EventScript_28C7E9:: @ 828C7E9
special InterviewAfter
incrementgamestat GAME_STAT_GOT_INTERVIEWED
release
end
SlateportCity_PokemonFanClub_EventScript_28C7F0:: @ 828C7F0
setvar VAR_0x8005, 1
special InterviewBefore
compare VAR_RESULT, 1
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28C879
copyvar VAR_0x8009, VAR_0x8006
msgbox SlateportCity_PokemonFanClub_Text_280674, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28C827
compare VAR_RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28C85C
end
SlateportCity_PokemonFanClub_EventScript_28C827:: @ 828C827
msgbox SlateportCity_PokemonFanClub_Text_28073B, MSGBOX_DEFAULT
setvar VAR_0x8004, EASY_CHAT_TYPE_INTERVIEW
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, EASY_CHAT_PERSON_REPORTER_FEMALE
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28C866
compare VAR_RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28C85C
end
SlateportCity_PokemonFanClub_EventScript_28C85C:: @ 828C85C
msgbox SlateportCity_PokemonFanClub_Text_2805E2, MSGBOX_DEFAULT
release
end
SlateportCity_PokemonFanClub_EventScript_28C866:: @ 828C866
msgbox SlateportCity_PokemonFanClub_Text_280789, MSGBOX_DEFAULT
setvar VAR_0x8005, 1
goto SlateportCity_PokemonFanClub_EventScript_28C7E9
end
SlateportCity_PokemonFanClub_EventScript_28C879:: @ 828C879
msgbox SlateportCity_PokemonFanClub_Text_28062E, MSGBOX_DEFAULT
release
end
SlateportCity_OceanicMuseum_1F_EventScript_28C883:: @ 828C883
lock
faceplayer
setvar VAR_0x8005, 2
special InterviewBefore
compare VAR_RESULT, 1
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_28C939
copyvar VAR_0x8009, VAR_0x8006
goto_if_set FLAG_OCEANIC_MUSEUM_MET_REPORTER, SlateportCity_OceanicMuseum_1F_EventScript_28C8C8
setflag FLAG_OCEANIC_MUSEUM_MET_REPORTER
msgbox SlateportCity_OceanicMuseum_1F_Text_2811A0, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_28C8E7
compare VAR_RESULT, 0
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_28C91C
end
SlateportCity_OceanicMuseum_1F_EventScript_28C8C8:: @ 828C8C8
msgbox SlateportCity_OceanicMuseum_1F_Text_28126D, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_28C8E7
compare VAR_RESULT, 0
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_28C91C
end
SlateportCity_OceanicMuseum_1F_EventScript_28C8E7:: @ 828C8E7
msgbox SlateportCity_OceanicMuseum_1F_Text_2812F2, MSGBOX_DEFAULT
setvar VAR_0x8004, EASY_CHAT_TYPE_INTERVIEW
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, EASY_CHAT_PERSON_REPORTER_MALE
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_28C926
compare VAR_RESULT, 0
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_28C91C
end
SlateportCity_OceanicMuseum_1F_EventScript_28C91C:: @ 828C91C
msgbox SlateportCity_OceanicMuseum_1F_Text_281367, MSGBOX_DEFAULT
release
end
SlateportCity_OceanicMuseum_1F_EventScript_28C926:: @ 828C926
msgbox SlateportCity_OceanicMuseum_1F_Text_2813B9, MSGBOX_DEFAULT
setvar VAR_0x8005, 2
goto SlateportCity_OceanicMuseum_1F_EventScript_28C7E9
end
SlateportCity_OceanicMuseum_1F_EventScript_28C939:: @ 828C939
msgbox SlateportCity_OceanicMuseum_1F_Text_28144D, MSGBOX_DEFAULT
release
end
SlateportCity_PokemonFanClub_EventScript_28C943:: @ 828C943
lock
faceplayer
specialvar VAR_RESULT, sub_80EF8F8
compare VAR_RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28C7F0
setvar VAR_0x8005, 3
special InterviewBefore
compare VAR_RESULT, 1
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28CA4F
copyvar VAR_0x8009, VAR_0x8006
msgbox SlateportCity_PokemonFanClub_Text_280270, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28C98C
compare VAR_RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28CA45
end
SlateportCity_PokemonFanClub_EventScript_28C98C:: @ 828C98C
msgbox SlateportCity_PokemonFanClub_Text_28034F, MSGBOX_DEFAULT
random 3
copyvar VAR_0x800A, VAR_RESULT
switch VAR_RESULT
case 0, SlateportCity_PokemonFanClub_EventScript_28C9C3
case 1, SlateportCity_PokemonFanClub_EventScript_28C9D1
case 2, SlateportCity_PokemonFanClub_EventScript_28C9DF
end
SlateportCity_PokemonFanClub_EventScript_28C9C3:: @ 828C9C3
msgbox SlateportCity_PokemonFanClub_Text_280393, MSGBOX_DEFAULT
goto SlateportCity_PokemonFanClub_EventScript_28C9ED
end
SlateportCity_PokemonFanClub_EventScript_28C9D1:: @ 828C9D1
msgbox SlateportCity_PokemonFanClub_Text_2803EF, MSGBOX_DEFAULT
goto SlateportCity_PokemonFanClub_EventScript_28C9ED
end
SlateportCity_PokemonFanClub_EventScript_28C9DF:: @ 828C9DF
msgbox SlateportCity_PokemonFanClub_Text_280454, MSGBOX_DEFAULT
goto SlateportCity_PokemonFanClub_EventScript_28C9ED
end
SlateportCity_PokemonFanClub_EventScript_28C9ED:: @ 828C9ED
setvar VAR_0x8004, EASY_CHAT_TYPE_FAN_CLUB
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, 0
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28CA45
msgbox SlateportCity_PokemonFanClub_Text_2804AC, MSGBOX_DEFAULT
setvar VAR_0x8006, 1
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_28CA45
msgbox SlateportCity_PokemonFanClub_Text_280523, MSGBOX_DEFAULT
copyvar VAR_0x8007, VAR_0x800A
setvar VAR_0x8005, 3
goto SlateportCity_PokemonFanClub_EventScript_28C7E9
end
SlateportCity_PokemonFanClub_EventScript_28CA45:: @ 828CA45
msgbox SlateportCity_PokemonFanClub_Text_2805E2, MSGBOX_DEFAULT
release
end
SlateportCity_PokemonFanClub_EventScript_28CA4F:: @ 828CA4F
msgbox SlateportCity_PokemonFanClub_Text_28062E, MSGBOX_DEFAULT
release
end
LilycoveCity_ContestLobby_EventScript_28CA59:: @ 828CA59
lock
faceplayer
goto_if_set FLAG_TEMP_2, LilycoveCity_ContestLobby_EventScript_28CB21
setvar VAR_0x8005, 6
special InterviewBefore
compare VAR_RESULT, 1
goto_if_eq LilycoveCity_ContestLobby_EventScript_28CB21
copyvar VAR_0x8009, VAR_0x8006
msgbox LilycoveCity_ContestLobby_Text_27EF15, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_if_eq LilycoveCity_ContestLobby_EventScript_28CA9B
compare VAR_RESULT, 0
goto_if_eq LilycoveCity_ContestLobby_EventScript_28CAD0
end
LilycoveCity_ContestLobby_EventScript_28CA9B:: @ 828CA9B
msgbox LilycoveCity_ContestLobby_Text_27EFE7, MSGBOX_DEFAULT
setvar VAR_0x8004, EASY_CHAT_TYPE_CONTEST_INTERVIEW
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, 0
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
goto_if_eq LilycoveCity_ContestLobby_EventScript_28CADA
compare VAR_RESULT, 0
goto_if_eq LilycoveCity_ContestLobby_EventScript_28CAD0
end
LilycoveCity_ContestLobby_EventScript_28CAD0:: @ 828CAD0
msgbox LilycoveCity_ContestLobby_Text_27F1EF, MSGBOX_DEFAULT
release
end
LilycoveCity_ContestLobby_EventScript_28CADA:: @ 828CADA
setvar VAR_0x8004, 24
special SetContestCategoryStringVarForInterview
msgbox LilycoveCity_ContestLobby_Text_27F03E, MSGBOX_DEFAULT
setvar VAR_0x8004, EASY_CHAT_TYPE_CONTEST_INTERVIEW
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, 1
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq LilycoveCity_ContestLobby_EventScript_28CAD0
msgbox LilycoveCity_ContestLobby_Text_27F0EC, MSGBOX_DEFAULT
setflag FLAG_TEMP_2
setvar VAR_0x8005, 6
goto LilycoveCity_ContestLobby_EventScript_28C7E9
end
LilycoveCity_ContestLobby_EventScript_28CB21:: @ 828CB21
msgbox LilycoveCity_ContestLobby_Text_27F23F, MSGBOX_DEFAULT
release
end
LilycoveCity_ContestLobby_EventScript_28CB2B:: @ 828CB2B
compare VAR_LINK_CONTEST_ROOM_STATE, 2
goto_if_ne LilycoveCity_ContestLobby_EventScript_28CB95
setvar VAR_0x8005, 6
special InterviewBefore
compare VAR_RESULT, 1
goto_if_eq LilycoveCity_ContestLobby_EventScript_28CB95
switch VAR_CONTEST_LOCATION
case 0, LilycoveCity_ContestLobby_EventScript_28CB95
case 2, LilycoveCity_ContestLobby_EventScript_28CB91
case 1, LilycoveCity_ContestLobby_EventScript_28CB91
case 3, LilycoveCity_ContestLobby_EventScript_28CB91
case 4, LilycoveCity_ContestLobby_EventScript_28CB91
case 5, LilycoveCity_ContestLobby_EventScript_28CB95
end
LilycoveCity_ContestLobby_EventScript_28CB91:: @ 828CB91
clearflag FLAG_HIDE_LILYCOVE_CONTEST_HALL_REPORTER
return
LilycoveCity_ContestLobby_EventScript_28CB95:: @ 828CB95
return
BattleFrontier_BattleTowerLobby_EventScript_28CB96:: @ 828CB96
lock
faceplayer
goto_if_set FLAG_TEMP_2, BattleFrontier_BattleTowerLobby_EventScript_28CC7A
setvar VAR_0x8005, 7
special InterviewBefore
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CC7A
copyvar VAR_0x8009, VAR_0x8006
msgbox BattleFrontier_BattleTowerLobby_Text_27F704, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CBD8
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CC2E
end
BattleFrontier_BattleTowerLobby_EventScript_28CBD8:: @ 828CBD8
message BattleFrontier_BattleTowerLobby_Text_27F7BA
waitmessage
multichoice 20, 8, MULTI_SATISFACTION, 1
copyvar VAR_0x8008, VAR_RESULT
compare VAR_RESULT, 0
call_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CC38
compare VAR_RESULT, 1
call_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CC41
msgbox BattleFrontier_BattleTowerLobby_Text_27F97A, MSGBOX_DEFAULT
setvar VAR_0x8004, EASY_CHAT_TYPE_BATTLE_TOWER_INTERVIEW
copyvar VAR_0x8005, VAR_0x8009
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CC4A
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CC70
end
BattleFrontier_BattleTowerLobby_EventScript_28CC2E:: @ 828CC2E
msgbox BattleFrontier_BattleTowerLobby_Text_27F84C, MSGBOX_DEFAULT
release
end
BattleFrontier_BattleTowerLobby_EventScript_28CC38:: @ 828CC38
msgbox BattleFrontier_BattleTowerLobby_Text_27F8AE, MSGBOX_DEFAULT
return
BattleFrontier_BattleTowerLobby_EventScript_28CC41:: @ 828CC41
msgbox BattleFrontier_BattleTowerLobby_Text_27F921, MSGBOX_DEFAULT
return
BattleFrontier_BattleTowerLobby_EventScript_28CC4A:: @ 828CC4A
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CC70
msgbox BattleFrontier_BattleTowerLobby_Text_27F9FD, MSGBOX_DEFAULT
setflag FLAG_TEMP_2
copyvar VAR_0x8004, VAR_0x8008
setvar VAR_0x8005, 7
goto BattleFrontier_BattleTowerLobby_EventScript_28C7E9
end
BattleFrontier_BattleTowerLobby_EventScript_28CC70:: @ 828CC70
msgbox BattleFrontier_BattleTowerLobby_Text_27FA6F, MSGBOX_DEFAULT
release
end
BattleFrontier_BattleTowerLobby_EventScript_28CC7A:: @ 828CC7A
msgbox BattleFrontier_BattleTowerLobby_Text_27FAF3, MSGBOX_DEFAULT
release
end
BattleFrontier_BattleTowerLobby_EventScript_28CC84:: @ 828CC84
compare VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CCA6
setvar VAR_0x8005, 7
special InterviewBefore
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_28CCA6
clearflag FLAG_HIDE_BATTLE_TOWER_REPORTER
return
BattleFrontier_BattleTowerLobby_EventScript_28CCA6:: @ 828CCA6
setflag FLAG_HIDE_BATTLE_TOWER_REPORTER
return

63
data/scripts/mevent.inc Normal file
View File

@@ -0,0 +1,63 @@
EventScript_Questionnaire:: @ 827381B
lockall
msgbox gText_FillOutQuestionnaire, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq EventScript_2738FD
setvar VAR_0x8004, EASY_CHAT_TYPE_QUESTIONNAIRE
call Common_ShowEasyChatScreen
lock
faceplayer
specialvar VAR_0x8008, GetMartEmployeeObjectEventId
compare VAR_0x8004, 1
goto_if_eq EventScript_27386D
compare VAR_0x8004, 2
goto_if_eq EventScript_2738B5
compare VAR_RESULT, 0
goto_if_eq EventScript_2738FD
compare VAR_RESULT, 1
goto_if_eq EventScript_2738FF
end
EventScript_27386D:: @ 827386D
goto_if_unset FLAG_SYS_POKEDEX_GET, EventScript_2738FF
goto_if_set FLAG_SYS_MYSTERY_EVENT_ENABLE, EventScript_2738FF
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
playse SE_PIN
applymovement VAR_0x8008, Common_Movement_ExclamationMark
waitmovement 0
applymovement VAR_0x8008, Common_Movement_Delay48
waitmovement 0
msgbox gUnknown_08273506, MSGBOX_DEFAULT
setflag FLAG_SYS_MYSTERY_EVENT_ENABLE
msgbox gUnknown_08273559, MSGBOX_DEFAULT
releaseall
end
EventScript_2738B5:: @ 82738B5
goto_if_unset FLAG_SYS_POKEDEX_GET, EventScript_2738FF
goto_if_set FLAG_SYS_MYSTERY_GIFT_ENABLE, EventScript_2738FF
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
playse SE_PIN
applymovement VAR_0x8008, Common_Movement_ExclamationMark
waitmovement 0
applymovement VAR_0x8008, Common_Movement_Delay48
waitmovement 0
msgbox gUnknown_08273446, MSGBOX_DEFAULT
setflag FLAG_SYS_MYSTERY_GIFT_ENABLE
msgbox gUnknown_082734CC, MSGBOX_DEFAULT
releaseall
end
EventScript_2738FD:: @ 82738FD
releaseall
end
EventScript_2738FF:: @ 82738FF
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
msgbox gText_ThankYouForTakingQuestionnaire, MSGBOX_DEFAULT
releaseall
end

View File

@@ -0,0 +1,94 @@
LittlerootTown_ProfessorBirchsLab_EventScript_2720AD:: @ 82720AD
Route101_EventScript_2720AD:: @ 82720AD
Route103_EventScript_2720AD:: @ 82720AD
compare VAR_PETALBURG_GYM_STATE, 0
goto_if_eq Common_EventScript_NopReturn
goto_if_set FLAG_SYS_GAME_CLEAR, Route101_EventScript_27211A
compare VAR_BIRCH_STATE, 0
call_if_eq Route101_EventScript_27211A
compare VAR_BIRCH_STATE, 1
call_if_eq Route101_EventScript_27211A
compare VAR_BIRCH_STATE, 2
call_if_eq Route101_EventScript_272127
compare VAR_BIRCH_STATE, 3
call_if_eq Route101_EventScript_272127
compare VAR_BIRCH_STATE, 4
call_if_eq Route101_EventScript_272134
compare VAR_BIRCH_STATE, 5
call_if_eq Route101_EventScript_272134
compare VAR_BIRCH_STATE, 6
call_if_eq Route101_EventScript_27211A
compare VAR_BIRCH_STATE, 7
call_if_eq Route101_EventScript_27211A
return
Route101_EventScript_27211A:: @ 827211A
clearflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_BIRCH
clearflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380
setflag FLAG_HIDE_ROUTE_101_BIRCH
setflag FLAG_HIDE_ROUTE_103_BIRCH
return
Route101_EventScript_272127:: @ 8272127
clearflag FLAG_HIDE_ROUTE_101_BIRCH
setflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_BIRCH
setflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380
setflag FLAG_HIDE_ROUTE_103_BIRCH
return
Route101_EventScript_272134:: @ 8272134
clearflag FLAG_HIDE_ROUTE_103_BIRCH
setflag FLAG_HIDE_ROUTE_101_BIRCH
setflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_BIRCH
setflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380
return
LittlerootTown_ProfessorBirchsLab_EventScript_272141:: @ 8272141
Route101_EventScript_272141:: @ 8272141
Route103_EventScript_272141:: @ 8272141
lock
faceplayer
goto_if_unset FLAG_HAS_MATCH_CALL, Route101_EventScript_272155
goto_if_unset FLAG_ENABLE_PROF_BIRCH_MATCH_CALL, Route101_EventScript_1FA2D2
Route101_EventScript_272155:: @ 8272155
msgbox gBirchDexRatingText_AreYouCurious, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq Route101_EventScript_27216F
call Route101_EventScript_272184
release
end
Route101_EventScript_27216F:: @ 827216F
msgbox gBirchDexRatingText_Cancel, MSGBOX_DEFAULT
release
end
Route101_EventScript_272179:: @ 8272179
copyvar VAR_0x8004, VAR_0x8009
special ShowPokedexRatingMessage
waitmessage
waitbuttonpress
return
EverGrandeCity_ChampionsRoom_EventScript_272184:: @ 8272184
Route101_EventScript_272184:: @ 8272184
setvar VAR_0x8004, 0
specialvar VAR_RESULT, ScriptGetPokedexInfo
copyvar VAR_0x8008, VAR_0x8005
copyvar VAR_0x8009, VAR_0x8006
copyvar VAR_0x800A, VAR_RESULT
buffernumberstring 0, VAR_0x8008
buffernumberstring 1, VAR_0x8009
msgbox gBirchDexRatingText_SoYouveSeenAndCaught, MSGBOX_DEFAULT
call Route101_EventScript_272179
compare VAR_0x800A, 0
goto_if_eq Common_EventScript_NopReturn
setvar VAR_0x8004, 1
specialvar VAR_RESULT, ScriptGetPokedexInfo
copyvar VAR_0x8008, VAR_0x8005
copyvar VAR_0x8009, VAR_0x8006
buffernumberstring 0, VAR_0x8008
buffernumberstring 1, VAR_0x8009
msgbox gBirchDexRatingText_OnANationwideBasis, MSGBOX_DEFAULT
return

View File

@@ -0,0 +1,433 @@
UnusualWeather_EventScript_PlaceTilesRoute114North:: @ 8273913
setmetatile 7, 3, METATILE_Fallarbor_RedCaveEntrance_Top, 1
setmetatile 7, 4, METATILE_Fallarbor_RedCaveEntrance_Bottom, 0
return
UnusualWeather_EventScript_PlaceTilesRoute114South:: @ 8273926
setmetatile 6, 45, METATILE_Fallarbor_BrownCaveEntrance_Top, 1
setmetatile 6, 46, METATILE_Fallarbor_BrownCaveEntrance_Bottom, 0
return
UnusualWeather_EventScript_PlaceTilesRoute115West:: @ 8273939
setmetatile 21, 5, METATILE_Fallarbor_BrownCaveEntrance_Top, 1
setmetatile 21, 6, METATILE_Fallarbor_BrownCaveEntrance_Bottom, 0
return
UnusualWeather_EventScript_PlaceTilesRoute115East:: @ 827394C
setmetatile 36, 9, METATILE_Fallarbor_BrownCaveEntrance_Top, 1
setmetatile 36, 10, METATILE_Fallarbor_BrownCaveEntrance_Bottom, 0
return
UnusualWeather_EventScript_PlaceTilesRoute116North:: @ 827395F
setmetatile 59, 12, METATILE_General_CaveEntrance_Top, 1
setmetatile 59, 13, METATILE_General_CaveEntrance_Bottom, 0
return
UnusualWeather_EventScript_PlaceTilesRoute116South:: @ 8273972
setmetatile 79, 5, METATILE_General_CaveEntrance_Top, 1
setmetatile 79, 6, METATILE_General_CaveEntrance_Bottom, 0
return
UnusualWeather_EventScript_PlaceTilesRoute118East:: @ 8273985
setmetatile 42, 5, METATILE_General_CaveEntrance_Top, 1
setmetatile 42, 6, METATILE_General_CaveEntrance_Bottom, 0
return
UnusualWeather_EventScript_PlaceTilesRoute118West:: @ 8273998
setmetatile 9, 5, METATILE_General_CaveEntrance_Top, 1
setmetatile 9, 6, METATILE_General_CaveEntrance_Bottom, 0
return
UnusualWeather_EventScript_PlaceTilesRoute105North:: @ 82739AB
setmetatile 10, 28, METATILE_General_RoughWater, 0
setmetatile 11, 28, METATILE_General_RoughWater, 0
setmetatile 9, 29, METATILE_General_RoughWater, 0
setmetatile 10, 29, METATILE_General_RoughDeepWater, 0
setmetatile 11, 29, METATILE_General_RoughDeepWater, 0
setmetatile 12, 29, METATILE_General_RoughWater, 0
setmetatile 9, 30, METATILE_General_RoughWater, 0
setmetatile 10, 30, METATILE_General_RoughDeepWater, 0
setmetatile 11, 30, METATILE_General_RoughDeepWater, 0
setmetatile 12, 30, METATILE_General_RoughWater, 0
setmetatile 10, 31, METATILE_General_RoughWater, 0
setmetatile 11, 31, METATILE_General_RoughWater, 0
return
UnusualWeather_EventScript_PlaceTilesRoute105South:: @ 8273A18
setmetatile 20, 53, METATILE_General_RoughWater, 0
setmetatile 21, 53, METATILE_General_RoughWater, 0
setmetatile 19, 54, METATILE_General_RoughWater, 0
setmetatile 20, 54, METATILE_General_RoughDeepWater, 0
setmetatile 21, 54, METATILE_General_RoughDeepWater, 0
setmetatile 22, 54, METATILE_General_RoughWater, 0
setmetatile 19, 55, METATILE_General_RoughWater, 0
setmetatile 20, 55, METATILE_General_RoughDeepWater, 0
setmetatile 21, 55, METATILE_General_RoughDeepWater, 0
setmetatile 22, 55, METATILE_General_RoughWater, 0
setmetatile 20, 56, METATILE_General_RoughWater, 0
setmetatile 21, 56, METATILE_General_RoughWater, 0
return
UnusualWeather_EventScript_PlaceTilesRoute125West:: @ 8273A85
setmetatile 8, 16, METATILE_General_RoughWater, 0
setmetatile 9, 16, METATILE_General_RoughWater, 0
setmetatile 7, 17, METATILE_General_RoughWater, 0
setmetatile 8, 17, METATILE_General_RoughDeepWater, 0
setmetatile 9, 17, METATILE_General_RoughDeepWater, 0
setmetatile 10, 17, METATILE_General_RoughWater, 0
setmetatile 7, 18, METATILE_General_RoughWater, 0
setmetatile 8, 18, METATILE_General_RoughDeepWater, 0
setmetatile 9, 18, METATILE_General_RoughDeepWater, 0
setmetatile 10, 18, METATILE_General_RoughWater, 0
setmetatile 8, 19, METATILE_General_RoughWater, 0
setmetatile 9, 19, METATILE_General_RoughWater, 0
return
UnusualWeather_EventScript_PlaceTilesRoute125East:: @ 8273AF2
setmetatile 53, 18, METATILE_General_RoughWater, 0
setmetatile 54, 18, METATILE_General_RoughWater, 0
setmetatile 52, 19, METATILE_General_RoughWater, 0
setmetatile 53, 19, METATILE_General_RoughDeepWater, 0
setmetatile 54, 19, METATILE_General_RoughDeepWater, 0
setmetatile 55, 19, METATILE_General_RoughWater, 0
setmetatile 52, 20, METATILE_General_RoughWater, 0
setmetatile 53, 20, METATILE_General_RoughDeepWater, 0
setmetatile 54, 20, METATILE_General_RoughDeepWater, 0
setmetatile 55, 20, METATILE_General_RoughWater, 0
setmetatile 53, 21, METATILE_General_RoughWater, 0
setmetatile 54, 21, METATILE_General_RoughWater, 0
return
UnusualWeather_EventScript_PlaceTilesRoute127North:: @ 8273B5F
setmetatile 57, 9, METATILE_General_RoughWater, 0
setmetatile 58, 9, METATILE_General_RoughWater, 0
setmetatile 56, 10, METATILE_General_RoughWater, 0
setmetatile 57, 10, METATILE_General_RoughDeepWater, 0
setmetatile 58, 10, METATILE_General_RoughDeepWater, 0
setmetatile 59, 10, METATILE_General_RoughWater, 0
setmetatile 56, 11, METATILE_General_RoughWater, 0
setmetatile 57, 11, METATILE_General_RoughDeepWater, 0
setmetatile 58, 11, METATILE_General_RoughDeepWater, 0
setmetatile 59, 11, METATILE_General_RoughWater, 0
setmetatile 57, 12, METATILE_General_RoughWater, 0
setmetatile 58, 12, METATILE_General_RoughWater, 0
return
UnusualWeather_EventScript_PlaceTilesRoute127South:: @ 8273BCC
setmetatile 61, 30, METATILE_General_RoughWater, 0
setmetatile 62, 30, METATILE_General_RoughWater, 0
setmetatile 60, 31, METATILE_General_RoughWater, 0
setmetatile 61, 31, METATILE_General_RoughDeepWater, 0
setmetatile 62, 31, METATILE_General_RoughDeepWater, 0
setmetatile 63, 31, METATILE_General_RoughWater, 0
setmetatile 60, 32, METATILE_General_RoughWater, 0
setmetatile 61, 32, METATILE_General_RoughDeepWater, 0
setmetatile 62, 32, METATILE_General_RoughDeepWater, 0
setmetatile 63, 32, METATILE_General_RoughWater, 0
setmetatile 61, 33, METATILE_General_RoughWater, 0
setmetatile 62, 33, METATILE_General_RoughWater, 0
return
UnusualWeather_EventScript_PlaceTilesRoute129West:: @ 8273C39
setmetatile 16, 14, METATILE_General_RoughWater, 0
setmetatile 17, 14, METATILE_General_RoughWater, 0
setmetatile 15, 15, METATILE_General_RoughWater, 0
setmetatile 16, 15, METATILE_General_RoughDeepWater, 0
setmetatile 17, 15, METATILE_General_RoughDeepWater, 0
setmetatile 18, 15, METATILE_General_RoughWater, 0
setmetatile 15, 16, METATILE_General_RoughWater, 0
setmetatile 16, 16, METATILE_General_RoughDeepWater, 0
setmetatile 17, 16, METATILE_General_RoughDeepWater, 0
setmetatile 18, 16, METATILE_General_RoughWater, 0
setmetatile 16, 17, METATILE_General_RoughWater, 0
setmetatile 17, 17, METATILE_General_RoughWater, 0
return
UnusualWeather_EventScript_PlaceTilesRoute129East:: @ 8273CA6
setmetatile 42, 19, METATILE_General_RoughWater, 0
setmetatile 43, 19, METATILE_General_RoughWater, 0
setmetatile 41, 20, METATILE_General_RoughWater, 0
setmetatile 42, 20, METATILE_General_RoughDeepWater, 0
setmetatile 43, 20, METATILE_General_RoughDeepWater, 0
setmetatile 44, 20, METATILE_General_RoughWater, 0
setmetatile 41, 21, METATILE_General_RoughWater, 0
setmetatile 42, 21, METATILE_General_RoughDeepWater, 0
setmetatile 43, 21, METATILE_General_RoughDeepWater, 0
setmetatile 44, 21, METATILE_General_RoughWater, 0
setmetatile 42, 22, METATILE_General_RoughWater, 0
setmetatile 43, 22, METATILE_General_RoughWater, 0
return
Route105_EventScript_273D13:: @ 8273D13
Route114_EventScript_273D13:: @ 8273D13
Route115_EventScript_273D13:: @ 8273D13
Route116_EventScript_273D13:: @ 8273D13
Route118_EventScript_273D13:: @ 8273D13
Route125_EventScript_273D13:: @ 8273D13
Route127_EventScript_273D13:: @ 8273D13
Route129_EventScript_273D13:: @ 8273D13
setflag FLAG_HIDE_MAP_NAME_POPUP
return
UnusualWeather_StartKyogreWeather:: @ 8273D17
setweather WEATHER_RAIN_HEAVY
return
UnusualWeather_StartGroudonWeather:: @ 8273D1B
setweather WEATHER_DROUGHT
return
UnusualWeather_EventScript_EndEventAndCleanup_1:: @ 8273D1F
lockall
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_KYOGRE_LOCATIONS_START
goto_if_ge UnusualWeather_EventScript_ShowRainEndedMessage
goto UnusualWeather_EventScript_ShowSunEndedMessage
end
UnusualWeather_EventScript_EndEventAndCleanup_2:: @ 8273D31
closemessage
fadescreenswapbuffers 1
setweather WEATHER_SUNNY
doweather
call UnusualWeather_EventScript_CleanupMapTiles
special DrawWholeMapView
setvar VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_NONE
setvar VAR_SHOULD_END_UNUSUAL_WEATHER, 0
clearflag FLAG_HIDE_MAP_NAME_POPUP
fadescreenswapbuffers 0
releaseall
end
UnusualWeather_EventScript_ShowRainEndedMessage:: @ 8273D51
msgbox gText_UnusualWeatherEnded_Rain, MSGBOX_DEFAULT
goto UnusualWeather_EventScript_EndEventAndCleanup_2
end
UnusualWeather_EventScript_ShowSunEndedMessage:: @ 8273D5F
msgbox gText_UnusualWeatherEnded_Sun, MSGBOX_DEFAULT
goto UnusualWeather_EventScript_EndEventAndCleanup_2
end
UnusualWeather_EventScript_CleanupMapTiles:: @ 8273D6D
switch VAR_UNUSUAL_WEATHER_LOCATION
case UNUSUAL_WEATHER_ROUTE_114_NORTH, UnusualWeather_EventScript_CleanupRoute114North
case UNUSUAL_WEATHER_ROUTE_114_SOUTH, UnusualWeather_EventScript_CleanupRoute114South
case UNUSUAL_WEATHER_ROUTE_115_WEST, UnusualWeather_EventScript_CleanupRoute115West
case UNUSUAL_WEATHER_ROUTE_115_EAST, UnusualWeather_EventScript_CleanupRoute115East
case UNUSUAL_WEATHER_ROUTE_116_NORTH, UnusualWeather_EventScript_CleanupRoute116North
case UNUSUAL_WEATHER_ROUTE_116_SOUTH, UnusualWeather_EventScript_CleanupRoute116South
case UNUSUAL_WEATHER_ROUTE_118_EAST, UnusualWeather_EventScript_CleanupRoute118East
case UNUSUAL_WEATHER_ROUTE_118_WEST, UnusualWeather_EventScript_CleanupRoute118West
case UNUSUAL_WEATHER_ROUTE_105_NORTH, UnusualWeather_EventScript_CleanupRoute105North
case UNUSUAL_WEATHER_ROUTE_105_SOUTH, UnusualWeather_EventScript_CleanupRoute105South
case UNUSUAL_WEATHER_ROUTE_125_WEST, UnusualWeather_EventScript_CleanupRoute125West
case UNUSUAL_WEATHER_ROUTE_125_EAST, UnusualWeather_EventScript_CleanupRoute125East
case UNUSUAL_WEATHER_ROUTE_127_NORTH, UnusualWeather_EventScript_CleanupRoute127North
case UNUSUAL_WEATHER_ROUTE_127_SOUTH, UnusualWeather_EventScript_CleanupRoute127South
case UNUSUAL_WEATHER_ROUTE_129_WEST, UnusualWeather_EventScript_CleanupRoute129West
case UNUSUAL_WEATHER_ROUTE_129_EAST, UnusualWeather_EventScript_CleanupRoute129East
return
UnusualWeather_EventScript_CleanupRoute114North:: @ 8273E23
setmetatile 7, 3, METATILE_Fallarbor_RedRockWall, 1
setmetatile 7, 4, METATILE_Fallarbor_RedRockWall, 1
return
UnusualWeather_EventScript_CleanupRoute114South:: @ 8273E36
setmetatile 6, 45, METATILE_Fallarbor_BrownRockWall, 1
setmetatile 6, 46, METATILE_Fallarbor_BrownRockWall, 1
return
UnusualWeather_EventScript_CleanupRoute115West:: @ 8273E49
setmetatile 21, 5, METATILE_Fallarbor_BrownRockWall, 1
setmetatile 21, 6, METATILE_Fallarbor_BrownRockWall, 1
return
UnusualWeather_EventScript_CleanupRoute115East:: @ 8273E5C
setmetatile 36, 9, METATILE_Fallarbor_BrownRockWall, 1
setmetatile 36, 10, METATILE_Fallarbor_BrownRockWall, 1
return
UnusualWeather_EventScript_CleanupRoute116North:: @ 8273E6F
setmetatile 59, 12, METATILE_General_RockWall_RockBase, 1
setmetatile 59, 13, METATILE_General_RockWall_RockBase, 1
return
UnusualWeather_EventScript_CleanupRoute116South:: @ 8273E82
setmetatile 79, 5, METATILE_General_RockWall_RockBase, 1
setmetatile 79, 6, METATILE_General_RockWall_RockBase, 1
return
UnusualWeather_EventScript_CleanupRoute118East:: @ 8273E95
setmetatile 42, 5, METATILE_General_RockWall_RockBase, 1
setmetatile 42, 6, METATILE_General_RockWall_GrassBase, 1
return
UnusualWeather_EventScript_CleanupRoute118West:: @ 8273EA8
setmetatile 9, 5, METATILE_General_RockWall_RockBase, 1
setmetatile 9, 6, METATILE_General_RockWall_GrassBase, 1
return
UnusualWeather_EventScript_CleanupRoute105North:: @ 8273EBB
setmetatile 10, 28, METATILE_General_CalmWater, 0
setmetatile 11, 28, METATILE_General_CalmWater, 0
setmetatile 9, 29, METATILE_General_CalmWater, 0
setmetatile 10, 29, METATILE_General_CalmWater, 0
setmetatile 11, 29, METATILE_General_CalmWater, 0
setmetatile 12, 29, METATILE_General_CalmWater, 0
setmetatile 9, 30, METATILE_General_CalmWater, 0
setmetatile 10, 30, METATILE_General_CalmWater, 0
setmetatile 11, 30, METATILE_General_CalmWater, 0
setmetatile 12, 30, METATILE_General_CalmWater, 0
setmetatile 10, 31, METATILE_General_CalmWater, 0
setmetatile 11, 31, METATILE_General_CalmWater, 0
return
UnusualWeather_EventScript_CleanupRoute105South:: @ 8273F28
setmetatile 20, 53, METATILE_General_CalmWater, 0
setmetatile 21, 53, METATILE_General_CalmWater, 0
setmetatile 19, 54, METATILE_General_CalmWater, 0
setmetatile 20, 54, METATILE_General_CalmWater, 0
setmetatile 21, 54, METATILE_General_CalmWater, 0
setmetatile 22, 54, METATILE_General_CalmWater, 0
setmetatile 19, 55, METATILE_General_CalmWater, 0
setmetatile 20, 55, METATILE_General_CalmWater, 0
setmetatile 21, 55, METATILE_General_CalmWater, 0
setmetatile 22, 55, METATILE_General_CalmWater, 0
setmetatile 20, 56, METATILE_General_CalmWater, 0
setmetatile 21, 56, METATILE_General_CalmWater, 0
return
UnusualWeather_EventScript_CleanupRoute125West:: @ 8273F95
setmetatile 8, 16, METATILE_General_CalmWater, 0
setmetatile 9, 16, METATILE_General_CalmWater, 0
setmetatile 7, 17, METATILE_General_CalmWater, 0
setmetatile 8, 17, METATILE_General_CalmWater, 0
setmetatile 9, 17, METATILE_General_CalmWater, 0
setmetatile 10, 17, METATILE_General_CalmWater, 0
setmetatile 7, 18, METATILE_General_CalmWater, 0
setmetatile 8, 18, METATILE_General_CalmWater, 0
setmetatile 9, 18, METATILE_General_CalmWater, 0
setmetatile 10, 18, METATILE_General_CalmWater, 0
setmetatile 8, 19, METATILE_General_CalmWater, 0
setmetatile 9, 19, METATILE_General_CalmWater, 0
return
UnusualWeather_EventScript_CleanupRoute125East:: @ 8274002
setmetatile 53, 18, METATILE_General_CalmWater, 0
setmetatile 54, 18, METATILE_General_CalmWater, 0
setmetatile 52, 19, METATILE_General_CalmWater, 0
setmetatile 53, 19, METATILE_General_CalmWater, 0
setmetatile 54, 19, METATILE_General_CalmWater, 0
setmetatile 55, 19, METATILE_General_CalmWater, 0
setmetatile 52, 20, METATILE_General_CalmWater, 0
setmetatile 53, 20, METATILE_General_CalmWater, 0
setmetatile 54, 20, METATILE_General_CalmWater, 0
setmetatile 55, 20, METATILE_General_CalmWater, 0
setmetatile 53, 21, METATILE_General_CalmWater, 0
setmetatile 54, 21, METATILE_General_CalmWater, 0
return
UnusualWeather_EventScript_CleanupRoute127North:: @ 827406F
setmetatile 57, 9, METATILE_General_CalmWater, 0
setmetatile 58, 9, METATILE_General_CalmWater, 0
setmetatile 56, 10, METATILE_General_CalmWater, 0
setmetatile 57, 10, METATILE_General_CalmWater, 0
setmetatile 58, 10, METATILE_General_CalmWater, 0
setmetatile 59, 10, METATILE_General_CalmWater, 0
setmetatile 56, 11, METATILE_General_CalmWater, 0
setmetatile 57, 11, METATILE_General_CalmWater, 0
setmetatile 58, 11, METATILE_General_CalmWater, 0
setmetatile 59, 11, METATILE_General_CalmWater, 0
setmetatile 57, 12, METATILE_General_CalmWater, 0
setmetatile 58, 12, METATILE_General_CalmWater, 0
return
UnusualWeather_EventScript_CleanupRoute127South:: @ 82740DC
setmetatile 61, 30, METATILE_General_CalmWater, 0
setmetatile 62, 30, METATILE_General_CalmWater, 0
setmetatile 60, 31, METATILE_General_CalmWater, 0
setmetatile 61, 31, METATILE_General_CalmWater, 0
setmetatile 62, 31, METATILE_General_CalmWater, 0
setmetatile 63, 31, METATILE_General_CalmWater, 0
setmetatile 60, 32, METATILE_General_CalmWater, 0
setmetatile 61, 32, METATILE_General_CalmWater, 0
setmetatile 62, 32, METATILE_General_CalmWater, 0
setmetatile 63, 32, METATILE_General_CalmWater, 0
setmetatile 61, 33, METATILE_General_CalmWater, 0
setmetatile 62, 33, METATILE_General_CalmWater, 0
return
UnusualWeather_EventScript_CleanupRoute129West:: @ 8274149
setmetatile 16, 14, METATILE_General_CalmWater, 0
setmetatile 17, 14, METATILE_General_CalmWater, 0
setmetatile 15, 15, METATILE_General_CalmWater, 0
setmetatile 16, 15, METATILE_General_CalmWater, 0
setmetatile 17, 15, METATILE_General_CalmWater, 0
setmetatile 18, 15, METATILE_General_CalmWater, 0
setmetatile 15, 16, METATILE_General_CalmWater, 0
setmetatile 16, 16, METATILE_General_CalmWater, 0
setmetatile 17, 16, METATILE_General_CalmWater, 0
setmetatile 18, 16, METATILE_General_CalmWater, 0
setmetatile 16, 17, METATILE_General_CalmWater, 0
setmetatile 17, 17, METATILE_General_CalmWater, 0
return
UnusualWeather_EventScript_CleanupRoute129East:: @ 82741B6
setmetatile 42, 19, METATILE_General_CalmWater, 0
setmetatile 43, 19, METATILE_General_CalmWater, 0
setmetatile 41, 20, METATILE_General_CalmWater, 0
setmetatile 42, 20, METATILE_General_CalmWater, 0
setmetatile 43, 20, METATILE_General_CalmWater, 0
setmetatile 44, 20, METATILE_General_CalmWater, 0
setmetatile 41, 21, METATILE_General_CalmWater, 0
setmetatile 42, 21, METATILE_General_CalmWater, 0
setmetatile 43, 21, METATILE_General_CalmWater, 0
setmetatile 44, 21, METATILE_General_CalmWater, 0
setmetatile 42, 22, METATILE_General_CalmWater, 0
setmetatile 43, 22, METATILE_General_CalmWater, 0
return
UnusualWeather_Underwater_SetupEscapeWarp:: @ 8274223
switch VAR_UNUSUAL_WEATHER_LOCATION
case UNUSUAL_WEATHER_ROUTE_105_NORTH, UnusualWeather_Underwater_SetupEscapeWarpRoute105North
case UNUSUAL_WEATHER_ROUTE_105_SOUTH, UnusualWeather_Underwater_SetupEscapeWarpRoute105South
case UNUSUAL_WEATHER_ROUTE_125_WEST, UnusualWeather_Underwater_SetupEscapeWarpRoute125West
case UNUSUAL_WEATHER_ROUTE_125_EAST, UnusualWeather_Underwater_SetupEscapeWarpRoute125East
case UNUSUAL_WEATHER_ROUTE_127_NORTH, UnusualWeather_Underwater_SetupEscapeWarpRoute127North
case UNUSUAL_WEATHER_ROUTE_127_SOUTH, UnusualWeather_Underwater_SetupEscapeWarpRoute127South
case UNUSUAL_WEATHER_ROUTE_129_WEST, UnusualWeather_Underwater_SetupEscapeWarpRoute129West
case UNUSUAL_WEATHER_ROUTE_129_EAST, UnusualWeather_Underwater_SetupEscapeWarpRoute129East
return
UnusualWeather_Underwater_SetupEscapeWarpRoute105North:: @ 8274281
setescapewarp MAP_ROUTE105, 255, 11, 29
return
UnusualWeather_Underwater_SetupEscapeWarpRoute105South:: @ 827428A
setescapewarp MAP_ROUTE105, 255, 21, 54
return
UnusualWeather_Underwater_SetupEscapeWarpRoute125West:: @ 8274293
setescapewarp MAP_ROUTE125, 255, 9, 17
return
UnusualWeather_Underwater_SetupEscapeWarpRoute125East:: @ 827429C
setescapewarp MAP_ROUTE125, 255, 54, 19
return
UnusualWeather_Underwater_SetupEscapeWarpRoute127North:: @ 82742A5
setescapewarp MAP_ROUTE127, 255, 58, 10
return
UnusualWeather_Underwater_SetupEscapeWarpRoute127South:: @ 82742AE
setescapewarp MAP_ROUTE127, 255, 62, 31
return
UnusualWeather_Underwater_SetupEscapeWarpRoute129West:: @ 82742B7
setescapewarp MAP_ROUTE129, 255, 17, 15
return
UnusualWeather_Underwater_SetupEscapeWarpRoute129East:: @ 82742C0
setescapewarp MAP_ROUTE129, 255, 43, 20
return