Document Pokemon League scripts

This commit is contained in:
GriffinR
2020-01-26 16:38:17 -05:00
parent a09e66b53f
commit 91844cdfb2
26 changed files with 438 additions and 427 deletions
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "PokemonLeague_LoreleisRoom_EventScript_1625DC",
"script": "PokemonLeague_LoreleisRoom_EventScript_Lorelei",
"flag": "0"
}
],
@@ -8,21 +8,21 @@ PokemonLeague_LoreleisRoom_MapScripts:: @ 816256C
PokemonLeague_LoreleisRoom_OnResume:: @ 8162586
setvar VAR_0x8004, 0
call EventScript_1A75D5
call PokemonLeague_EventScript_DoLightingEffect
end
PokemonLeague_LoreleisRoom_OnLoad:: @ 8162591
call_if_set FLAG_DEFEATED_LORELEI, EventScript_1625AC
call_if_set FLAG_DEFEATED_LORELEI, PokemonLeague_LoreleisRoom_EventScript_SetDoorOpen
compare VAR_MAP_SCENE_POKEMON_LEAGUE, 1
call_if_eq EventScript_1625A6
call_if_eq PokemonLeague_LoreleisRoom_EventScript_CloseEntry
end
EventScript_1625A6:: @ 81625A6
call EventScript_1A759C
PokemonLeague_LoreleisRoom_EventScript_CloseEntry:: @ 81625A6
call PokemonLeague_EventScript_CloseEntry
return
EventScript_1625AC:: @ 81625AC
call EventScript_1A7538
PokemonLeague_LoreleisRoom_EventScript_SetDoorOpen:: @ 81625AC
call PokemonLeague_EventScript_SetDoorOpen
return
PokemonLeague_LoreleisRoom_OnTransition:: @ 81625B2
@@ -30,67 +30,65 @@ PokemonLeague_LoreleisRoom_OnTransition:: @ 81625B2
end
PokemonLeague_LoreleisRoom_OnWarp:: @ 81625B6
map_script_2 VAR_TEMP_1, 0, EventScript_1625C0
map_script_2 VAR_TEMP_1, 0, PokemonLeague_LoreleisRoom_EventScript_TurnPlayerNorth
.2byte 0
EventScript_1625C0:: @ 81625C0
PokemonLeague_LoreleisRoom_EventScript_TurnPlayerNorth:: @ 81625C0
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
end
PokemonLeague_LoreleisRoom_OnFrame:: @ 81625C5
map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 0, EventScript_1625CF
map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 0, PokemonLeague_LoreleisRoom_EventScript_EnterRoom
.2byte 0
EventScript_1625CF:: @ 81625CF
PokemonLeague_LoreleisRoom_EventScript_EnterRoom:: @ 81625CF
lockall
call EventScript_1A751F
call PokemonLeague_EventScript_EnterRoom
setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 1
releaseall
end
PokemonLeague_LoreleisRoom_EventScript_1625DC:: @ 81625DC
PokemonLeague_LoreleisRoom_EventScript_Lorelei:: @ 81625DC
lock
faceplayer
famechecker FAMECHECKER_LORELEI, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
goto_if_set FLAG_DEFEATED_LORELEI, EventScript_162669
goto_if_set FLAG_DEFEATED_LORELEI, PokemonLeague_LoreleisRoom_EventScript_PostBattle
famechecker FAMECHECKER_LORELEI, 0
famechecker FAMECHECKER_LORELEI, 1
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162641
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_16264A
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LoreleisRoom_EventScript_Intro
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LoreleisRoom_EventScript_RematchIntro
setflag FLAG_TEMP_3
setflag FLAG_TEMP_5
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162653
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_16265E
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LoreleisRoom_EventScript_Battle
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LoreleisRoom_EventScript_Rematch
clearflag FLAG_TEMP_5
goto EventScript_162673
EventScript_162640:: @ 8162640
goto PokemonLeague_LoreleisRoom_EventScript_DefeatedLorelei
end
EventScript_162641:: @ 8162641
msgbox gUnknown_8177FA4
PokemonLeague_LoreleisRoom_EventScript_Intro:: @ 8162641
msgbox PokemonLeague_LoreleisRoom_Text_Intro
return
EventScript_16264A:: @ 816264A
msgbox gUnknown_8178089
PokemonLeague_LoreleisRoom_EventScript_RematchIntro:: @ 816264A
msgbox PokemonLeague_LoreleisRoom_Text_RematchIntro
return
EventScript_162653:: @ 8162653
trainerbattle_no_intro TRAINER_ELITE_FOUR_LORELEI, Text_178191
PokemonLeague_LoreleisRoom_EventScript_Battle:: @ 8162653
trainerbattle_no_intro TRAINER_ELITE_FOUR_LORELEI, PokemonLeague_LoreleisRoom_Text_Defeat
return
EventScript_16265E:: @ 816265E
trainerbattle_no_intro TRAINER_ELITE_FOUR_LORELEI_2, Text_178191
PokemonLeague_LoreleisRoom_EventScript_Rematch:: @ 816265E
trainerbattle_no_intro TRAINER_ELITE_FOUR_LORELEI_2, PokemonLeague_LoreleisRoom_Text_Defeat
return
EventScript_162669:: @ 8162669
msgbox gUnknown_81781B0
PokemonLeague_LoreleisRoom_EventScript_PostBattle:: @ 8162669
msgbox PokemonLeague_LoreleisRoom_Text_PostBattle
release
end
EventScript_162673:: @ 8162673
PokemonLeague_LoreleisRoom_EventScript_DefeatedLorelei:: @ 8162673
setflag FLAG_DEFEATED_LORELEI
call EventScript_1A7506
msgbox gUnknown_81781B0
call PokemonLeague_EventScript_OpenDoor
msgbox PokemonLeague_LoreleisRoom_Text_PostBattle
release
end
@@ -1,4 +1,4 @@
gUnknown_8177FA4:: @ 8177FA4
PokemonLeague_LoreleisRoom_Text_Intro:: @ 8177FA4
.string "Welcome to the POKéMON LEAGUE.\p"
.string "I am LORELEI of the ELITE FOUR.\p"
.string "No one can best me when it comes\n"
@@ -9,7 +9,7 @@ gUnknown_8177FA4:: @ 8177FA4
.string "Hahaha!\n"
.string "Are you ready?{PLAY_BGM}{MUS_EXEYE}$"
gUnknown_8178089:: @ 8178089
PokemonLeague_LoreleisRoom_Text_RematchIntro:: @ 8178089
.string "Welcome to the POKéMON LEAGUE.\p"
.string "I, LORELEI of the ELITE FOUR,\n"
.string "have returned!\p"
@@ -22,10 +22,10 @@ gUnknown_8178089:: @ 8178089
.string "Hahaha!\n"
.string "Are you ready?{PLAY_BGM}{MUS_EXEYE}$"
Text_178191:: @ 8178191
PokemonLeague_LoreleisRoom_Text_Defeat:: @ 8178191
.string "…Things shouldn't be this way!$"
gUnknown_81781B0:: @ 81781B0
PokemonLeague_LoreleisRoom_Text_PostBattle:: @ 81781B0
.string "You're better than I thought.\n"
.string "Go on ahead.\p"
.string "You only got a taste of the\n"