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
+1 -1
View File
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "PokemonLeague_AgathasRoom_EventScript_162877",
"script": "PokemonLeague_AgathasRoom_EventScript_Agatha",
"flag": "0"
}
],
+32 -34
View File
@@ -7,86 +7,84 @@ PokemonLeague_AgathasRoom_MapScripts:: @ 8162810
PokemonLeague_AgathasRoom_OnResume:: @ 8162825
setvar VAR_0x8004, 2
call EventScript_1A75D5
call PokemonLeague_EventScript_DoLightingEffect
end
PokemonLeague_AgathasRoom_OnLoad:: @ 8162830
call_if_set FLAG_DEFEATED_AGATHA, EventScript_16284B
call_if_set FLAG_DEFEATED_AGATHA, PokemonLeague_AgathasRoom_EventScript_SetDoorOpen
compare VAR_MAP_SCENE_POKEMON_LEAGUE, 3
call_if_eq EventScript_162845
call_if_eq PokemonLeague_AgathasRoom_EventScript_CloseEntry
end
EventScript_162845:: @ 8162845
call EventScript_1A759C
PokemonLeague_AgathasRoom_EventScript_CloseEntry:: @ 8162845
call PokemonLeague_EventScript_CloseEntry
return
EventScript_16284B:: @ 816284B
call EventScript_1A7538
PokemonLeague_AgathasRoom_EventScript_SetDoorOpen:: @ 816284B
call PokemonLeague_EventScript_SetDoorOpen
return
PokemonLeague_AgathasRoom_OnWarp:: @ 8162851
map_script_2 VAR_TEMP_1, 0, EventScript_16285B
map_script_2 VAR_TEMP_1, 0, PokemonLeague_AgathasRoom_EventScript_TurnPlayerNorth
.2byte 0
EventScript_16285B:: @ 816285B
PokemonLeague_AgathasRoom_EventScript_TurnPlayerNorth:: @ 816285B
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
end
PokemonLeague_AgathasRoom_OnFrame:: @ 8162860
map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 2, EventScript_16286A
map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 2, PokemonLeague_AgathasRoom_EventScript_EnterRoom
.2byte 0
EventScript_16286A:: @ 816286A
PokemonLeague_AgathasRoom_EventScript_EnterRoom:: @ 816286A
lockall
call EventScript_1A751F
call PokemonLeague_EventScript_EnterRoom
setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 3
releaseall
end
PokemonLeague_AgathasRoom_EventScript_162877:: @ 8162877
PokemonLeague_AgathasRoom_EventScript_Agatha:: @ 8162877
lock
faceplayer
famechecker FAMECHECKER_AGATHA, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
goto_if_set FLAG_DEFEATED_AGATHA, EventScript_162911
goto_if_set FLAG_DEFEATED_AGATHA, PokemonLeague_AgathasRoom_EventScript_PostBattle
famechecker FAMECHECKER_AGATHA, 0
famechecker FAMECHECKER_AGATHA, 4
famechecker FAMECHECKER_OAK, 4
call_if_unset FLAG_SYS_GAME_CLEAR, EventScript_1628E9
call_if_set FLAG_SYS_GAME_CLEAR, EventScript_1628F2
call_if_unset FLAG_SYS_GAME_CLEAR, PokemonLeague_AgathasRoom_EventScript_Intro
call_if_set FLAG_SYS_GAME_CLEAR, PokemonLeague_AgathasRoom_EventScript_RematchIntro
setflag FLAG_TEMP_3
setflag FLAG_TEMP_5
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, EventScript_1628FB
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162906
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_AgathasRoom_EventScript_Battle
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_AgathasRoom_EventScript_Rematch
clearflag FLAG_TEMP_5
goto EventScript_16291B
EventScript_1628E8:: @ 81628E8
goto PokemonLeague_AgathasRoom_EventScript_DefeatedAgatha
end
EventScript_1628E9:: @ 81628E9
msgbox gUnknown_817844D
PokemonLeague_AgathasRoom_EventScript_Intro:: @ 81628E9
msgbox PokemonLeague_AgathasRoom_Text_Intro
return
EventScript_1628F2:: @ 81628F2
msgbox gUnknown_817858D
PokemonLeague_AgathasRoom_EventScript_RematchIntro:: @ 81628F2
msgbox PokemonLeague_AgathasRoom_Text_RematchIntro
return
EventScript_1628FB:: @ 81628FB
trainerbattle_no_intro TRAINER_ELITE_FOUR_AGATHA, Text_1786D7
PokemonLeague_AgathasRoom_EventScript_Battle:: @ 81628FB
trainerbattle_no_intro TRAINER_ELITE_FOUR_AGATHA, PokemonLeague_AgathasRoom_Text_Defeat
return
EventScript_162906:: @ 8162906
trainerbattle_no_intro TRAINER_ELITE_FOUR_AGATHA_2, Text_1786D7
PokemonLeague_AgathasRoom_EventScript_Rematch:: @ 8162906
trainerbattle_no_intro TRAINER_ELITE_FOUR_AGATHA_2, PokemonLeague_AgathasRoom_Text_Defeat
return
EventScript_162911:: @ 8162911
msgbox gUnknown_8178700
PokemonLeague_AgathasRoom_EventScript_PostBattle:: @ 8162911
msgbox PokemonLeague_AgathasRoom_Text_PostBattle
release
end
EventScript_16291B:: @ 816291B
PokemonLeague_AgathasRoom_EventScript_DefeatedAgatha:: @ 816291B
setflag FLAG_DEFEATED_AGATHA
call EventScript_1A7506
msgbox gUnknown_8178700
call PokemonLeague_EventScript_OpenDoor
msgbox PokemonLeague_AgathasRoom_Text_PostBattle
release
end
+4 -4
View File
@@ -1,4 +1,4 @@
gUnknown_817844D:: @ 817844D
PokemonLeague_AgathasRoom_Text_Intro:: @ 817844D
.string "I am AGATHA of the ELITE FOUR.\p"
.string "I hear OAK's taken a lot of\n"
.string "interest in you, child.\p"
@@ -13,7 +13,7 @@ gUnknown_817844D:: @ 817844D
.string "{PLAYER}! I'll show you how a real\n"
.string "TRAINER battles!{PLAY_BGM}{MUS_EXEYE}$"
gUnknown_817858D:: @ 817858D
PokemonLeague_AgathasRoom_Text_RematchIntro:: @ 817858D
.string "I am AGATHA of the ELITE FOUR.\p"
.string "You're the child that OAK's taken\n"
.string "under his wing, aren't you?\p"
@@ -28,11 +28,11 @@ gUnknown_817858D:: @ 817858D
.string "{PLAYER}! I'll show you how a real\n"
.string "TRAINER battles!{PLAY_BGM}{MUS_EXEYE}$"
Text_1786D7:: @ 81786D7
PokemonLeague_AgathasRoom_Text_Defeat:: @ 81786D7
.string "Oh, my!\n"
.string "You're something special, child!$"
gUnknown_8178700:: @ 8178700
PokemonLeague_AgathasRoom_Text_PostBattle:: @ 8178700
.string "You win!\p"
.string "I see what the old duff sees in\n"
.string "you now.\p"