Document Pokemon League scripts
This commit is contained in:
+2
-66
@@ -980,7 +980,7 @@ Text_HavePokedexRated:: @ 81A5C03
|
|||||||
Text_ClosedLinkToProfOaksPC:: @ 81A5C2E
|
Text_ClosedLinkToProfOaksPC:: @ 81A5C2E
|
||||||
.string "Closed link to PROF. OAK's PC.$"
|
.string "Closed link to PROF. OAK's PC.$"
|
||||||
|
|
||||||
Text_1A5C4D:: @ 81A5C4D
|
Text_VoiceRangOutDontRunAway:: @ 81A5C4D
|
||||||
.string "Someone's voice rang out,\n"
|
.string "Someone's voice rang out,\n"
|
||||||
.string "“Don't run away!”$"
|
.string "“Don't run away!”$"
|
||||||
|
|
||||||
@@ -1272,71 +1272,7 @@ EventScript_1A74F2:: @ 81A74F2
|
|||||||
removeitem VAR_0x8004, 1
|
removeitem VAR_0x8004, 1
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_1A7506:: @ 81A7506
|
.include "data/scripts/pokemon_league.inc"
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_Delay32
|
|
||||||
waitmovement 0
|
|
||||||
playse SE_DOOR
|
|
||||||
call EventScript_1A7538
|
|
||||||
special DrawWholeMapView
|
|
||||||
setflag FLAG_TEMP_4
|
|
||||||
return
|
|
||||||
|
|
||||||
EventScript_1A751F:: @ 81A751F
|
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkUp5
|
|
||||||
waitmovement 0
|
|
||||||
setflag FLAG_TEMP_2
|
|
||||||
playse SE_KI_GASYAN
|
|
||||||
call EventScript_1A759C
|
|
||||||
special DrawWholeMapView
|
|
||||||
return
|
|
||||||
|
|
||||||
EventScript_1A7538:: @ 81A7538
|
|
||||||
setmetatile 6, 1, 654, 1
|
|
||||||
setmetatile 6, 2, 662, 0
|
|
||||||
return
|
|
||||||
|
|
||||||
EventScript_1A754B:: @ 81A754B
|
|
||||||
lockall
|
|
||||||
textcolor 0
|
|
||||||
msgbox Text_1A5C4D
|
|
||||||
closemessage
|
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_1A75D3
|
|
||||||
waitmovement 0
|
|
||||||
releaseall
|
|
||||||
end
|
|
||||||
|
|
||||||
EventScript_1A7563:: @ 81A7563
|
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_Delay32
|
|
||||||
waitmovement 0
|
|
||||||
playse SE_DOOR
|
|
||||||
setmetatile 6, 4, 654, 1
|
|
||||||
setmetatile 6, 5, 662, 0
|
|
||||||
special DrawWholeMapView
|
|
||||||
setflag FLAG_TEMP_4
|
|
||||||
return
|
|
||||||
|
|
||||||
EventScript_1A7589:: @ 81A7589
|
|
||||||
setmetatile 6, 4, 654, 1
|
|
||||||
setmetatile 6, 5, 662, 0
|
|
||||||
return
|
|
||||||
|
|
||||||
EventScript_1A759C:: @ 81A759C
|
|
||||||
setmetatile 5, 11, 669, 1
|
|
||||||
setmetatile 6, 11, 670, 1
|
|
||||||
setmetatile 7, 11, 671, 1
|
|
||||||
setmetatile 5, 12, 677, 1
|
|
||||||
setmetatile 6, 12, 678, 1
|
|
||||||
setmetatile 7, 12, 679, 1
|
|
||||||
return
|
|
||||||
|
|
||||||
Movement_1A75D3:: @ 81A75D3
|
|
||||||
walk_up
|
|
||||||
step_end
|
|
||||||
|
|
||||||
EventScript_1A75D5:: @ 81A75D5
|
|
||||||
special Special_PokemonLeagueLightingEffect
|
|
||||||
return
|
|
||||||
|
|
||||||
.include "data/scripts/movement.inc"
|
.include "data/scripts/movement.inc"
|
||||||
.include "data/scripts/flavor_text.inc"
|
.include "data/scripts/flavor_text.inc"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
.equ LOCALID_RIVAL, 1
|
||||||
|
.equ LOCALID_PROF_OAK, 2
|
||||||
|
|
||||||
IndigoPlateau_Exterior_MapScripts:: @ 816723B
|
IndigoPlateau_Exterior_MapScripts:: @ 816723B
|
||||||
map_script MAP_SCRIPT_ON_TRANSITION, IndigoPlateau_Exterior_OnTransition
|
map_script MAP_SCRIPT_ON_TRANSITION, IndigoPlateau_Exterior_OnTransition
|
||||||
map_script MAP_SCRIPT_ON_FRAME_TABLE, IndigoPlateau_Exterior_OnFrame
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, IndigoPlateau_Exterior_OnFrame
|
||||||
@@ -6,22 +9,23 @@ IndigoPlateau_Exterior_MapScripts:: @ 816723B
|
|||||||
IndigoPlateau_Exterior_OnTransition:: @ 8167246
|
IndigoPlateau_Exterior_OnTransition:: @ 8167246
|
||||||
setworldmapflag FLAG_WORLD_MAP_INDIGO_PLATEAU_EXTERIOR
|
setworldmapflag FLAG_WORLD_MAP_INDIGO_PLATEAU_EXTERIOR
|
||||||
compare VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 1
|
compare VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 1
|
||||||
call_if_eq EventScript_IndigoPlateau_Exterior_PlayCreditsMusic
|
call_if_eq IndigoPlateau_Exterior_EventScript_PlayCreditsMusic
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_IndigoPlateau_Exterior_PlayCreditsMusic:: @ 8167255
|
IndigoPlateau_Exterior_EventScript_PlayCreditsMusic:: @ 8167255
|
||||||
playbgm MUS_ENDING, 0
|
playbgm MUS_ENDING, 0
|
||||||
return
|
return
|
||||||
|
|
||||||
IndigoPlateau_Exterior_OnFrame:: @ 816725A
|
IndigoPlateau_Exterior_OnFrame:: @ 816725A
|
||||||
map_script_2 VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 1, EventScript_IndigoPlateau_Exterior_Credits
|
map_script_2 VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 1, IndigoPlateau_Exterior_EventScript_Credits
|
||||||
.2byte 0
|
.2byte 0
|
||||||
|
|
||||||
EventScript_IndigoPlateau_Exterior_Credits:: @ 8167264
|
|
||||||
@ After beating the champion, you are warped to the main
|
@ After beating the champion, you are warped to the main
|
||||||
@ entrance of Indigo Plateau. This script starts running
|
@ entrance of Indigo Plateau. This script starts running
|
||||||
@ immediately after your walking animation.
|
@ immediately after your walking animation.
|
||||||
@ The script is timed to the music.
|
@ The script is timed to the music.
|
||||||
|
IndigoPlateau_Exterior_EventScript_Credits:: @ 8167264
|
||||||
lockall
|
lockall
|
||||||
delay 105
|
delay 105
|
||||||
|
|
||||||
@@ -29,60 +33,60 @@ EventScript_IndigoPlateau_Exterior_Credits:: @ 8167264
|
|||||||
opendoor 11, 6
|
opendoor 11, 6
|
||||||
waitdooranim
|
waitdooranim
|
||||||
special SpawnCameraObject
|
special SpawnCameraObject
|
||||||
addobject 1
|
addobject LOCALID_RIVAL
|
||||||
applymovement 1, Movement_167346
|
applymovement LOCALID_RIVAL, IndigoPlateau_Exterior_Movement_RivalExitBuilding
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_167337
|
applymovement OBJ_EVENT_ID_PLAYER, IndigoPlateau_Exterior_Movement_PushPlayerOutOfWay
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
closedoor 11, 6
|
closedoor 11, 6
|
||||||
waitdooranim
|
waitdooranim
|
||||||
|
|
||||||
@ Rival runs off
|
@ Rival runs off
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_16731B
|
applymovement OBJ_EVENT_ID_PLAYER, IndigoPlateau_Exterior_Movement_PlayerWatchRivalLeave
|
||||||
applymovement 1, Movement_16733E
|
applymovement LOCALID_RIVAL, IndigoPlateau_Exterior_Movement_RivalLeave
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
delay 100
|
delay 100
|
||||||
|
|
||||||
@ Oak exits building
|
@ Oak exits building
|
||||||
opendoor 11, 6
|
opendoor 11, 6
|
||||||
waitdooranim
|
waitdooranim
|
||||||
addobject 2
|
addobject LOCALID_PROF_OAK
|
||||||
applymovement 2, Movement_16735D
|
applymovement LOCALID_PROF_OAK, IndigoPlateau_Exterior_Movement_OakExitBuilding
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
closedoor 11, 6
|
closedoor 11, 6
|
||||||
waitdooranim
|
waitdooranim
|
||||||
delay 160
|
delay 160
|
||||||
|
|
||||||
@ Oak looks at player, then walks off
|
@ Oak looks at player, then walks off
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_16731F
|
applymovement OBJ_EVENT_ID_PLAYER, IndigoPlateau_Exterior_Movement_PlayerWatchOakLeave
|
||||||
applymovement 2, Movement_167348
|
applymovement LOCALID_PROF_OAK, IndigoPlateau_Exterior_Movement_OakLeave
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
delay 100
|
delay 100
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_16732E
|
|
||||||
|
@ Player begin to leave
|
||||||
|
applymovement OBJ_EVENT_ID_PLAYER, IndigoPlateau_Exterior_Movement_PlayerBeginLeave
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
delay 155
|
delay 155
|
||||||
|
applymovement OBJ_EVENT_ID_PLAYER, IndigoPlateau_Exterior_Movement_PlayerFaceLeague
|
||||||
@ Player turns to face the League
|
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_16733C
|
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
delay 90
|
delay 90
|
||||||
|
|
||||||
@ Player runs off
|
@ Player runs off
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_167335
|
applymovement OBJ_EVENT_ID_PLAYER, IndigoPlateau_Exterior_Movement_PlayerTurnAround
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_167311
|
applymovement OBJ_EVENT_ID_PLAYER, IndigoPlateau_Exterior_Movement_PlayerLeave
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
|
|
||||||
@ Reset the map state and roll the credits
|
@ Reset the map state and roll the credits
|
||||||
special RemoveCameraObject
|
special RemoveCameraObject
|
||||||
setvar VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 0
|
setvar VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 0
|
||||||
removeobject 1
|
removeobject LOCALID_RIVAL
|
||||||
removeobject 2
|
removeobject LOCALID_PROF_OAK
|
||||||
special Special_Credits @ noreturn
|
special Special_Credits @ noreturn
|
||||||
waitstate
|
waitstate
|
||||||
releaseall
|
releaseall
|
||||||
end
|
end
|
||||||
|
|
||||||
Movement_167311:: @ 8167311
|
IndigoPlateau_Exterior_Movement_PlayerLeave:: @ 8167311
|
||||||
player_run_down
|
player_run_down
|
||||||
player_run_down
|
player_run_down
|
||||||
player_run_down
|
player_run_down
|
||||||
@@ -91,18 +95,19 @@ Movement_167311:: @ 8167311
|
|||||||
player_run_down
|
player_run_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_167318:: @ 8167318
|
@ Unused
|
||||||
|
IndigoPlateau_Exterior_Movement_PlayerExitBuilding:: @ 8167318
|
||||||
walk_down
|
walk_down
|
||||||
walk_down
|
walk_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_16731B:: @ 816731B
|
IndigoPlateau_Exterior_Movement_PlayerWatchRivalLeave:: @ 816731B
|
||||||
delay_16
|
delay_16
|
||||||
delay_4
|
delay_4
|
||||||
walk_in_place_fastest_down
|
walk_in_place_fastest_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_16731F:: @ 816731F
|
IndigoPlateau_Exterior_Movement_PlayerWatchOakLeave:: @ 816731F
|
||||||
delay_8
|
delay_8
|
||||||
walk_in_place_fastest_right
|
walk_in_place_fastest_right
|
||||||
delay_16
|
delay_16
|
||||||
@@ -119,7 +124,7 @@ Movement_16731F:: @ 816731F
|
|||||||
walk_in_place_fastest_down
|
walk_in_place_fastest_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_16732E:: @ 816732E
|
IndigoPlateau_Exterior_Movement_PlayerBeginLeave:: @ 816732E
|
||||||
walk_right
|
walk_right
|
||||||
delay_16
|
delay_16
|
||||||
walk_down
|
walk_down
|
||||||
@@ -128,22 +133,22 @@ Movement_16732E:: @ 816732E
|
|||||||
delay_16
|
delay_16
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_167335:: @ 8167335
|
IndigoPlateau_Exterior_Movement_PlayerTurnAround:: @ 8167335
|
||||||
walk_in_place_fastest_down
|
walk_in_place_fastest_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_167337:: @ 8167337
|
IndigoPlateau_Exterior_Movement_PushPlayerOutOfWay:: @ 8167337
|
||||||
face_right
|
face_right
|
||||||
lock_facing_direction
|
lock_facing_direction
|
||||||
walk_left
|
walk_left
|
||||||
unlock_facing_direction
|
unlock_facing_direction
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_16733C:: @ 816733C
|
IndigoPlateau_Exterior_Movement_PlayerFaceLeague:: @ 816733C
|
||||||
walk_in_place_fastest_up
|
walk_in_place_fastest_up
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_16733E:: @ 816733E
|
IndigoPlateau_Exterior_Movement_RivalLeave:: @ 816733E
|
||||||
walk_fast_down
|
walk_fast_down
|
||||||
walk_fast_down
|
walk_fast_down
|
||||||
walk_fast_down
|
walk_fast_down
|
||||||
@@ -153,11 +158,11 @@ Movement_16733E:: @ 816733E
|
|||||||
walk_fast_down
|
walk_fast_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_167346:: @ 8167346
|
IndigoPlateau_Exterior_Movement_RivalExitBuilding:: @ 8167346
|
||||||
walk_fast_down
|
walk_fast_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_167348:: @ 8167348
|
IndigoPlateau_Exterior_Movement_OakLeave:: @ 8167348
|
||||||
walk_in_place_fastest_left
|
walk_in_place_fastest_left
|
||||||
delay_16
|
delay_16
|
||||||
delay_16
|
delay_16
|
||||||
@@ -180,6 +185,6 @@ Movement_167348:: @ 8167348
|
|||||||
walk_down
|
walk_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_16735D:: @ 816735D
|
IndigoPlateau_Exterior_Movement_OakExitBuilding:: @ 816735D
|
||||||
walk_down
|
walk_down
|
||||||
step_end
|
step_end
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_16EACC",
|
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_Clerk",
|
||||||
"flag": "0"
|
"flag": "0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_16EB06",
|
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_Nurse",
|
||||||
"flag": "0"
|
"flag": "0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_16EAC3",
|
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_GymGuy",
|
||||||
"flag": "0"
|
"flag": "0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_16EA8A",
|
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_DoorGuard",
|
||||||
"flag": "0"
|
"flag": "0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_1ACFAE",
|
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_BlackBelt",
|
||||||
"flag": "FLAG_HIDE_POSTGAME_GOSSIPERS"
|
"flag": "FLAG_HIDE_POSTGAME_GOSSIPERS"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_1AD06C",
|
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_PokemonJournal",
|
||||||
"flag": "FLAG_HIDE_POSTGAME_GOSSIPERS"
|
"flag": "FLAG_HIDE_POSTGAME_GOSSIPERS"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_1AD087",
|
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_CooltrainerM",
|
||||||
"flag": "FLAG_HIDE_POSTGAME_GOSSIPERS"
|
"flag": "FLAG_HIDE_POSTGAME_GOSSIPERS"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_1AD06C",
|
"script": "IndigoPlateau_PokemonCenter_1F_EventScript_PokemonJournal",
|
||||||
"flag": "FLAG_HIDE_POSTGAME_GOSSIPERS"
|
"flag": "FLAG_HIDE_POSTGAME_GOSSIPERS"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -7,52 +7,52 @@ IndigoPlateau_PokemonCenter_1F_OnTransition:: @ 816EA65
|
|||||||
setrespawn SPAWN_INDIGO_PLATEAU
|
setrespawn SPAWN_INDIGO_PLATEAU
|
||||||
specialvar VAR_RESULT, IsNationalPokedexEnabled
|
specialvar VAR_RESULT, IsNationalPokedexEnabled
|
||||||
compare VAR_RESULT, TRUE
|
compare VAR_RESULT, TRUE
|
||||||
call_if_eq EventScript_16EA79
|
call_if_eq IndigoPlateau_PokemonCenter_1F_EventScript_CheckBlockDoor
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_16EA79:: @ 816EA79
|
IndigoPlateau_PokemonCenter_1F_EventScript_CheckBlockDoor:: @ 816EA79
|
||||||
goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_Return
|
goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_Return
|
||||||
setobjectxyperm 4, 4, 2
|
setobjectxyperm 4, 4, 2
|
||||||
return
|
return
|
||||||
|
|
||||||
IndigoPlateau_PokemonCenter_1F_EventScript_16EA8A:: @ 816EA8A
|
IndigoPlateau_PokemonCenter_1F_EventScript_DoorGuard:: @ 816EA8A
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
specialvar VAR_RESULT, IsNationalPokedexEnabled
|
specialvar VAR_RESULT, IsNationalPokedexEnabled
|
||||||
compare VAR_RESULT, TRUE
|
compare VAR_RESULT, TRUE
|
||||||
goto_if_eq EventScript_16EAA6
|
goto_if_eq IndigoPlateau_PokemonCenter_1F_EventScript_CheckSeviiIslandComplete
|
||||||
msgbox gUnknown_819A8D8
|
msgbox IndigoPlateau_PokemonCenter_1F_Text_FaceEliteFourGoodLuck
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_16EAA6:: @ 816EAA6
|
IndigoPlateau_PokemonCenter_1F_EventScript_CheckSeviiIslandComplete:: @ 816EAA6
|
||||||
goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_16EAB9
|
goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, IndigoPlateau_PokemonCenter_1F_EventScript_SeviiIslandComplete
|
||||||
msgbox gUnknown_819A943
|
msgbox IndigoPlateau_PokemonCenter_1F_Text_LoreleiIsAbsentClosedForTimeBeing
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_16EAB9:: @ 816EAB9
|
IndigoPlateau_PokemonCenter_1F_EventScript_SeviiIslandComplete:: @ 816EAB9
|
||||||
msgbox gUnknown_819A8D8
|
msgbox IndigoPlateau_PokemonCenter_1F_Text_FaceEliteFourGoodLuck
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
IndigoPlateau_PokemonCenter_1F_EventScript_16EAC3:: @ 816EAC3
|
IndigoPlateau_PokemonCenter_1F_EventScript_GymGuy:: @ 816EAC3
|
||||||
msgbox gUnknown_819A837, MSGBOX_NPC
|
msgbox IndigoPlateau_PokemonCenter_1F_Text_GymGuyAdvice, MSGBOX_NPC
|
||||||
end
|
end
|
||||||
|
|
||||||
IndigoPlateau_PokemonCenter_1F_EventScript_16EACC:: @ 816EACC
|
IndigoPlateau_PokemonCenter_1F_EventScript_Clerk:: @ 816EACC
|
||||||
goto_if_questlog EventScript_ReleaseEnd
|
goto_if_questlog EventScript_ReleaseEnd
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
message Text_MayIHelpYou
|
message Text_MayIHelpYou
|
||||||
waitmessage
|
waitmessage
|
||||||
pokemart Items_16EAF4
|
pokemart IndigoPlateau_PokemonCenter_1F_Items
|
||||||
msgbox Text_PleaseComeAgain
|
msgbox Text_PleaseComeAgain
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
.align 2
|
.align 2
|
||||||
Items_16EAF4:: @ 816EAF4
|
IndigoPlateau_PokemonCenter_1F_Items:: @ 816EAF4
|
||||||
.2byte ITEM_ULTRA_BALL
|
.2byte ITEM_ULTRA_BALL
|
||||||
.2byte ITEM_GREAT_BALL
|
.2byte ITEM_GREAT_BALL
|
||||||
.2byte ITEM_FULL_RESTORE
|
.2byte ITEM_FULL_RESTORE
|
||||||
@@ -64,7 +64,7 @@ Items_16EAF4:: @ 816EAF4
|
|||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
IndigoPlateau_PokemonCenter_1F_EventScript_16EB06:: @ 816EB06
|
IndigoPlateau_PokemonCenter_1F_EventScript_Nurse:: @ 816EB06
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
call EventScript_PkmnCenterNurse
|
call EventScript_PkmnCenterNurse
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
gUnknown_819A837:: @ 819A837
|
IndigoPlateau_PokemonCenter_1F_Text_GymGuyAdvice:: @ 819A837
|
||||||
.string "Yo!\n"
|
.string "Yo!\n"
|
||||||
.string "Champ in the making!\p"
|
.string "Champ in the making!\p"
|
||||||
.string "At the POKéMON LEAGUE, you will\n"
|
.string "At the POKéMON LEAGUE, you will\n"
|
||||||
@@ -8,13 +8,13 @@ gUnknown_819A837:: @ 819A837
|
|||||||
.string "This is it!\n"
|
.string "This is it!\n"
|
||||||
.string "Go for it!$"
|
.string "Go for it!$"
|
||||||
|
|
||||||
gUnknown_819A8D8:: @ 819A8D8
|
IndigoPlateau_PokemonCenter_1F_Text_FaceEliteFourGoodLuck:: @ 819A8D8
|
||||||
.string "From here on, you face the\n"
|
.string "From here on, you face the\n"
|
||||||
.string "ELITE FOUR one by one.\p"
|
.string "ELITE FOUR one by one.\p"
|
||||||
.string "If you win, a door opens to the\n"
|
.string "If you win, a door opens to the\n"
|
||||||
.string "next TRAINER. Good luck!$"
|
.string "next TRAINER. Good luck!$"
|
||||||
|
|
||||||
gUnknown_819A943:: @ 819A943
|
IndigoPlateau_PokemonCenter_1F_Text_LoreleiIsAbsentClosedForTimeBeing:: @ 819A943
|
||||||
.string "I am so sorry, but you've wasted\n"
|
.string "I am so sorry, but you've wasted\n"
|
||||||
.string "your time coming here.\p"
|
.string "your time coming here.\p"
|
||||||
.string "LORELEI of the ELITE FOUR is\n"
|
.string "LORELEI of the ELITE FOUR is\n"
|
||||||
@@ -22,3 +22,22 @@ gUnknown_819A943:: @ 819A943
|
|||||||
.string "As a result, the POKéMON LEAGUE is\n"
|
.string "As a result, the POKéMON LEAGUE is\n"
|
||||||
.string "closed for the time being.$"
|
.string "closed for the time being.$"
|
||||||
|
|
||||||
|
IndigoPlateau_PokemonCenter_1F_Text_AgathaWhuppedUs:: @ 819A9E7
|
||||||
|
.string "AGATHA's GHOST-type POKéMON are\n"
|
||||||
|
.string "horrifically terrifying in toughness.\p"
|
||||||
|
.string "I took my FIGHTING-type POKéMON\n"
|
||||||
|
.string "and raised them to the max.\p"
|
||||||
|
.string "I went at AGATHA feeling pretty\n"
|
||||||
|
.string "confident, but she whupped us.\p"
|
||||||
|
.string "That old lady's also got a really\n"
|
||||||
|
.string "short fuse, too.\p"
|
||||||
|
.string "It doesn't take anything to get\n"
|
||||||
|
.string "that scary lady hollering.$"
|
||||||
|
|
||||||
|
IndigoPlateau_PokemonCenter_1F_Text_LancesCousinGymLeaderFarAway:: @ 819AB16
|
||||||
|
.string "Maybe becoming an ELITE FOUR\n"
|
||||||
|
.string "member is in the blood.\p"
|
||||||
|
.string "From what I've heard, LANCE has\n"
|
||||||
|
.string "a cousin who's a GYM LEADER\l"
|
||||||
|
.string "somewhere far away.$"
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "PokemonLeague_AgathasRoom_EventScript_162877",
|
"script": "PokemonLeague_AgathasRoom_EventScript_Agatha",
|
||||||
"flag": "0"
|
"flag": "0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -7,86 +7,84 @@ PokemonLeague_AgathasRoom_MapScripts:: @ 8162810
|
|||||||
|
|
||||||
PokemonLeague_AgathasRoom_OnResume:: @ 8162825
|
PokemonLeague_AgathasRoom_OnResume:: @ 8162825
|
||||||
setvar VAR_0x8004, 2
|
setvar VAR_0x8004, 2
|
||||||
call EventScript_1A75D5
|
call PokemonLeague_EventScript_DoLightingEffect
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_AgathasRoom_OnLoad:: @ 8162830
|
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
|
compare VAR_MAP_SCENE_POKEMON_LEAGUE, 3
|
||||||
call_if_eq EventScript_162845
|
call_if_eq PokemonLeague_AgathasRoom_EventScript_CloseEntry
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162845:: @ 8162845
|
PokemonLeague_AgathasRoom_EventScript_CloseEntry:: @ 8162845
|
||||||
call EventScript_1A759C
|
call PokemonLeague_EventScript_CloseEntry
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_16284B:: @ 816284B
|
PokemonLeague_AgathasRoom_EventScript_SetDoorOpen:: @ 816284B
|
||||||
call EventScript_1A7538
|
call PokemonLeague_EventScript_SetDoorOpen
|
||||||
return
|
return
|
||||||
|
|
||||||
PokemonLeague_AgathasRoom_OnWarp:: @ 8162851
|
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
|
.2byte 0
|
||||||
|
|
||||||
EventScript_16285B:: @ 816285B
|
PokemonLeague_AgathasRoom_EventScript_TurnPlayerNorth:: @ 816285B
|
||||||
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_AgathasRoom_OnFrame:: @ 8162860
|
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
|
.2byte 0
|
||||||
|
|
||||||
EventScript_16286A:: @ 816286A
|
PokemonLeague_AgathasRoom_EventScript_EnterRoom:: @ 816286A
|
||||||
lockall
|
lockall
|
||||||
call EventScript_1A751F
|
call PokemonLeague_EventScript_EnterRoom
|
||||||
setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 3
|
setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 3
|
||||||
releaseall
|
releaseall
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_AgathasRoom_EventScript_162877:: @ 8162877
|
PokemonLeague_AgathasRoom_EventScript_Agatha:: @ 8162877
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
famechecker FAMECHECKER_AGATHA, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
|
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, 0
|
||||||
famechecker FAMECHECKER_AGATHA, 4
|
famechecker FAMECHECKER_AGATHA, 4
|
||||||
famechecker FAMECHECKER_OAK, 4
|
famechecker FAMECHECKER_OAK, 4
|
||||||
call_if_unset FLAG_SYS_GAME_CLEAR, EventScript_1628E9
|
call_if_unset FLAG_SYS_GAME_CLEAR, PokemonLeague_AgathasRoom_EventScript_Intro
|
||||||
call_if_set FLAG_SYS_GAME_CLEAR, EventScript_1628F2
|
call_if_set FLAG_SYS_GAME_CLEAR, PokemonLeague_AgathasRoom_EventScript_RematchIntro
|
||||||
setflag FLAG_TEMP_3
|
setflag FLAG_TEMP_3
|
||||||
setflag FLAG_TEMP_5
|
setflag FLAG_TEMP_5
|
||||||
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, EventScript_1628FB
|
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_AgathasRoom_EventScript_Battle
|
||||||
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162906
|
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_AgathasRoom_EventScript_Rematch
|
||||||
clearflag FLAG_TEMP_5
|
clearflag FLAG_TEMP_5
|
||||||
goto EventScript_16291B
|
goto PokemonLeague_AgathasRoom_EventScript_DefeatedAgatha
|
||||||
|
|
||||||
EventScript_1628E8:: @ 81628E8
|
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_1628E9:: @ 81628E9
|
PokemonLeague_AgathasRoom_EventScript_Intro:: @ 81628E9
|
||||||
msgbox gUnknown_817844D
|
msgbox PokemonLeague_AgathasRoom_Text_Intro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_1628F2:: @ 81628F2
|
PokemonLeague_AgathasRoom_EventScript_RematchIntro:: @ 81628F2
|
||||||
msgbox gUnknown_817858D
|
msgbox PokemonLeague_AgathasRoom_Text_RematchIntro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_1628FB:: @ 81628FB
|
PokemonLeague_AgathasRoom_EventScript_Battle:: @ 81628FB
|
||||||
trainerbattle_no_intro TRAINER_ELITE_FOUR_AGATHA, Text_1786D7
|
trainerbattle_no_intro TRAINER_ELITE_FOUR_AGATHA, PokemonLeague_AgathasRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162906:: @ 8162906
|
PokemonLeague_AgathasRoom_EventScript_Rematch:: @ 8162906
|
||||||
trainerbattle_no_intro TRAINER_ELITE_FOUR_AGATHA_2, Text_1786D7
|
trainerbattle_no_intro TRAINER_ELITE_FOUR_AGATHA_2, PokemonLeague_AgathasRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162911:: @ 8162911
|
PokemonLeague_AgathasRoom_EventScript_PostBattle:: @ 8162911
|
||||||
msgbox gUnknown_8178700
|
msgbox PokemonLeague_AgathasRoom_Text_PostBattle
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_16291B:: @ 816291B
|
PokemonLeague_AgathasRoom_EventScript_DefeatedAgatha:: @ 816291B
|
||||||
setflag FLAG_DEFEATED_AGATHA
|
setflag FLAG_DEFEATED_AGATHA
|
||||||
call EventScript_1A7506
|
call PokemonLeague_EventScript_OpenDoor
|
||||||
msgbox gUnknown_8178700
|
msgbox PokemonLeague_AgathasRoom_Text_PostBattle
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
gUnknown_817844D:: @ 817844D
|
PokemonLeague_AgathasRoom_Text_Intro:: @ 817844D
|
||||||
.string "I am AGATHA of the ELITE FOUR.\p"
|
.string "I am AGATHA of the ELITE FOUR.\p"
|
||||||
.string "I hear OAK's taken a lot of\n"
|
.string "I hear OAK's taken a lot of\n"
|
||||||
.string "interest in you, child.\p"
|
.string "interest in you, child.\p"
|
||||||
@@ -13,7 +13,7 @@ gUnknown_817844D:: @ 817844D
|
|||||||
.string "{PLAYER}! I'll show you how a real\n"
|
.string "{PLAYER}! I'll show you how a real\n"
|
||||||
.string "TRAINER battles!{PLAY_BGM}{MUS_EXEYE}$"
|
.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 "I am AGATHA of the ELITE FOUR.\p"
|
||||||
.string "You're the child that OAK's taken\n"
|
.string "You're the child that OAK's taken\n"
|
||||||
.string "under his wing, aren't you?\p"
|
.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 "{PLAYER}! I'll show you how a real\n"
|
||||||
.string "TRAINER battles!{PLAY_BGM}{MUS_EXEYE}$"
|
.string "TRAINER battles!{PLAY_BGM}{MUS_EXEYE}$"
|
||||||
|
|
||||||
Text_1786D7:: @ 81786D7
|
PokemonLeague_AgathasRoom_Text_Defeat:: @ 81786D7
|
||||||
.string "Oh, my!\n"
|
.string "Oh, my!\n"
|
||||||
.string "You're something special, child!$"
|
.string "You're something special, child!$"
|
||||||
|
|
||||||
gUnknown_8178700:: @ 8178700
|
PokemonLeague_AgathasRoom_Text_PostBattle:: @ 8178700
|
||||||
.string "You win!\p"
|
.string "You win!\p"
|
||||||
.string "I see what the old duff sees in\n"
|
.string "I see what the old duff sees in\n"
|
||||||
.string "you now.\p"
|
.string "you now.\p"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "PokemonLeague_BrunosRoom_EventScript_1626EC",
|
"script": "PokemonLeague_BrunosRoom_EventScript_Bruno",
|
||||||
"flag": "0"
|
"flag": "0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -7,118 +7,116 @@ PokemonLeague_BrunosRoom_MapScripts:: @ 8162685
|
|||||||
|
|
||||||
PokemonLeague_BrunosRoom_OnResume:: @ 816269A
|
PokemonLeague_BrunosRoom_OnResume:: @ 816269A
|
||||||
setvar VAR_0x8004, 1
|
setvar VAR_0x8004, 1
|
||||||
call EventScript_1A75D5
|
call PokemonLeague_EventScript_DoLightingEffect
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_BrunosRoom_OnLoad:: @ 81626A5
|
PokemonLeague_BrunosRoom_OnLoad:: @ 81626A5
|
||||||
call_if_set FLAG_DEFEATED_BRUNO, EventScript_1626C0
|
call_if_set FLAG_DEFEATED_BRUNO, PokemonLeague_BrunosRoom_EventScript_SetDoorOpen
|
||||||
compare VAR_MAP_SCENE_POKEMON_LEAGUE, 2
|
compare VAR_MAP_SCENE_POKEMON_LEAGUE, 2
|
||||||
call_if_eq EventScript_1626BA
|
call_if_eq PokemonLeague_BrunosRoom_EventScript_CloseEntry
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_1626BA:: @ 81626BA
|
PokemonLeague_BrunosRoom_EventScript_CloseEntry:: @ 81626BA
|
||||||
call EventScript_1A759C
|
call PokemonLeague_EventScript_CloseEntry
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_1626C0:: @ 81626C0
|
PokemonLeague_BrunosRoom_EventScript_SetDoorOpen:: @ 81626C0
|
||||||
call EventScript_1A7538
|
call PokemonLeague_EventScript_SetDoorOpen
|
||||||
return
|
return
|
||||||
|
|
||||||
PokemonLeague_BrunosRoom_OnWarp:: @ 81626C6
|
PokemonLeague_BrunosRoom_OnWarp:: @ 81626C6
|
||||||
map_script_2 VAR_TEMP_1, 0, EventScript_1626D0
|
map_script_2 VAR_TEMP_1, 0, PokemonLeague_BrunosRoom_EventScript_TurnPlayerNorth
|
||||||
.2byte 0
|
.2byte 0
|
||||||
|
|
||||||
EventScript_1626D0:: @ 81626D0
|
PokemonLeague_BrunosRoom_EventScript_TurnPlayerNorth:: @ 81626D0
|
||||||
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_BrunosRoom_OnFrame:: @ 81626D5
|
PokemonLeague_BrunosRoom_OnFrame:: @ 81626D5
|
||||||
map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 1, EventScript_1626DF
|
map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 1, PokemonLeague_BrunosRoom_EventScript_EnterRoom
|
||||||
.2byte 0
|
.2byte 0
|
||||||
|
|
||||||
EventScript_1626DF:: @ 81626DF
|
PokemonLeague_BrunosRoom_EventScript_EnterRoom:: @ 81626DF
|
||||||
lockall
|
lockall
|
||||||
call EventScript_1A751F
|
call PokemonLeague_EventScript_EnterRoom
|
||||||
setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 2
|
setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 2
|
||||||
releaseall
|
releaseall
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_BrunosRoom_EventScript_1626EC:: @ 81626EC
|
PokemonLeague_BrunosRoom_EventScript_Bruno:: @ 81626EC
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
famechecker FAMECHECKER_BRUNO, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
|
famechecker FAMECHECKER_BRUNO, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
|
||||||
goto_if_set FLAG_DEFEATED_BRUNO, EventScript_162779
|
goto_if_set FLAG_DEFEATED_BRUNO, PokemonLeague_BrunosRoom_EventScript_PostBattle
|
||||||
famechecker FAMECHECKER_BRUNO, 0
|
famechecker FAMECHECKER_BRUNO, 0
|
||||||
famechecker FAMECHECKER_BRUNO, 1
|
famechecker FAMECHECKER_BRUNO, 1
|
||||||
call_if_unset FLAG_SYS_GAME_CLEAR, EventScript_162751
|
call_if_unset FLAG_SYS_GAME_CLEAR, PokemonLeague_BrunosRoom_EventScript_Intro
|
||||||
call_if_set FLAG_SYS_GAME_CLEAR, EventScript_16275A
|
call_if_set FLAG_SYS_GAME_CLEAR, PokemonLeague_BrunosRoom_EventScript_RematchIntro
|
||||||
setflag FLAG_TEMP_3
|
setflag FLAG_TEMP_3
|
||||||
setflag FLAG_TEMP_5
|
setflag FLAG_TEMP_5
|
||||||
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162763
|
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_BrunosRoom_EventScript_Battle
|
||||||
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_16276E
|
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_BrunosRoom_EventScript_Rematch
|
||||||
clearflag FLAG_TEMP_5
|
clearflag FLAG_TEMP_5
|
||||||
goto EventScript_1627B0
|
goto PokemonLeague_BrunosRoom_EventScript_DefeatedBruno
|
||||||
|
|
||||||
EventScript_162750:: @ 8162750
|
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162751:: @ 8162751
|
PokemonLeague_BrunosRoom_EventScript_Intro:: @ 8162751
|
||||||
msgbox gUnknown_817820F
|
msgbox PokemonLeague_BrunosRoom_Text_Intro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_16275A:: @ 816275A
|
PokemonLeague_BrunosRoom_EventScript_RematchIntro:: @ 816275A
|
||||||
msgbox gUnknown_817830C
|
msgbox PokemonLeague_BrunosRoom_Text_RematchIntro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162763:: @ 8162763
|
PokemonLeague_BrunosRoom_EventScript_Battle:: @ 8162763
|
||||||
trainerbattle_no_intro TRAINER_ELITE_FOUR_BRUNO, Text_178409
|
trainerbattle_no_intro TRAINER_ELITE_FOUR_BRUNO, PokemonLeague_BrunosRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_16276E:: @ 816276E
|
PokemonLeague_BrunosRoom_EventScript_Rematch:: @ 816276E
|
||||||
trainerbattle_no_intro TRAINER_ELITE_FOUR_BRUNO_2, Text_178409
|
trainerbattle_no_intro TRAINER_ELITE_FOUR_BRUNO_2, PokemonLeague_BrunosRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162779:: @ 8162779
|
PokemonLeague_BrunosRoom_EventScript_PostBattle:: @ 8162779
|
||||||
msgbox gUnknown_8178420
|
msgbox PokemonLeague_BrunosRoom_Text_PostBattle
|
||||||
closemessage
|
closemessage
|
||||||
compare VAR_FACING, DIR_NORTH
|
compare VAR_FACING, DIR_NORTH
|
||||||
call_if_eq EventScript_1627FA
|
call_if_eq PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayRight
|
||||||
compare VAR_FACING, DIR_SOUTH
|
compare VAR_FACING, DIR_SOUTH
|
||||||
call_if_eq EventScript_1627EF
|
call_if_eq PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayLeft
|
||||||
compare VAR_FACING, DIR_WEST
|
compare VAR_FACING, DIR_WEST
|
||||||
call_if_eq EventScript_162805
|
call_if_eq PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayDown
|
||||||
compare VAR_FACING, DIR_EAST
|
compare VAR_FACING, DIR_EAST
|
||||||
call_if_eq EventScript_162805
|
call_if_eq PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayDown
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_1627B0:: @ 81627B0
|
PokemonLeague_BrunosRoom_EventScript_DefeatedBruno:: @ 81627B0
|
||||||
setflag FLAG_DEFEATED_BRUNO
|
setflag FLAG_DEFEATED_BRUNO
|
||||||
call EventScript_1A7506
|
call PokemonLeague_EventScript_OpenDoor
|
||||||
msgbox gUnknown_8178420
|
msgbox PokemonLeague_BrunosRoom_Text_PostBattle
|
||||||
closemessage
|
closemessage
|
||||||
compare VAR_FACING, DIR_NORTH
|
compare VAR_FACING, DIR_NORTH
|
||||||
call_if_eq EventScript_1627FA
|
call_if_eq PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayRight
|
||||||
compare VAR_FACING, DIR_SOUTH
|
compare VAR_FACING, DIR_SOUTH
|
||||||
call_if_eq EventScript_1627EF
|
call_if_eq PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayLeft
|
||||||
compare VAR_FACING, DIR_WEST
|
compare VAR_FACING, DIR_WEST
|
||||||
call_if_eq EventScript_162805
|
call_if_eq PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayDown
|
||||||
compare VAR_FACING, DIR_EAST
|
compare VAR_FACING, DIR_EAST
|
||||||
call_if_eq EventScript_162805
|
call_if_eq PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayDown
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_1627EF:: @ 81627EF
|
PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayLeft:: @ 81627EF
|
||||||
applymovement 1, Movement_WalkInPlaceFastestLeft
|
applymovement 1, Movement_WalkInPlaceFastestLeft
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_1627FA:: @ 81627FA
|
PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayRight:: @ 81627FA
|
||||||
applymovement 1, Movement_WalkInPlaceFastestRight
|
applymovement 1, Movement_WalkInPlaceFastestRight
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162805:: @ 8162805
|
PokemonLeague_BrunosRoom_EventScript_BrunoLookAwayDown:: @ 8162805
|
||||||
applymovement 1, Movement_WalkInPlaceFastestDown
|
applymovement 1, Movement_WalkInPlaceFastestDown
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
gUnknown_817820F:: @ 817820F
|
PokemonLeague_BrunosRoom_Text_Intro:: @ 817820F
|
||||||
.string "I am BRUNO of the ELITE FOUR!\p"
|
.string "I am BRUNO of the ELITE FOUR!\p"
|
||||||
.string "Through rigorous training, people\n"
|
.string "Through rigorous training, people\n"
|
||||||
.string "and POKéMON can become stronger\l"
|
.string "and POKéMON can become stronger\l"
|
||||||
@@ -11,7 +11,7 @@ gUnknown_817820F:: @ 817820F
|
|||||||
.string "superior power!\p"
|
.string "superior power!\p"
|
||||||
.string "Hoo hah!{PLAY_BGM}{MUS_EXEYE}$"
|
.string "Hoo hah!{PLAY_BGM}{MUS_EXEYE}$"
|
||||||
|
|
||||||
gUnknown_817830C:: @ 817830C
|
PokemonLeague_BrunosRoom_Text_RematchIntro:: @ 817830C
|
||||||
.string "I am BRUNO of the ELITE FOUR!\p"
|
.string "I am BRUNO of the ELITE FOUR!\p"
|
||||||
.string "Through rigorous training, people\n"
|
.string "Through rigorous training, people\n"
|
||||||
.string "and POKéMON can become stronger\l"
|
.string "and POKéMON can become stronger\l"
|
||||||
@@ -24,11 +24,11 @@ gUnknown_817830C:: @ 817830C
|
|||||||
.string "superior power!\p"
|
.string "superior power!\p"
|
||||||
.string "Hoo hah!{PLAY_BGM}{MUS_EXEYE}$"
|
.string "Hoo hah!{PLAY_BGM}{MUS_EXEYE}$"
|
||||||
|
|
||||||
Text_178409:: @ 8178409
|
PokemonLeague_BrunosRoom_Text_Defeat:: @ 8178409
|
||||||
.string "Why?\n"
|
.string "Why?\n"
|
||||||
.string "How could I lose?$"
|
.string "How could I lose?$"
|
||||||
|
|
||||||
gUnknown_8178420:: @ 8178420
|
PokemonLeague_BrunosRoom_Text_PostBattle:: @ 8178420
|
||||||
.string "My job is done.\n"
|
.string "My job is done.\n"
|
||||||
.string "Go face your next challenge.$"
|
.string "Go face your next challenge.$"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
.equ LOCALID_RIVAL, 1
|
||||||
|
.equ LOCALID_PROF_OAK, 2
|
||||||
|
|
||||||
PokemonLeague_ChampionsRoom_MapScripts:: @ 8162AE2
|
PokemonLeague_ChampionsRoom_MapScripts:: @ 8162AE2
|
||||||
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, PokemonLeague_ChampionsRoom_OnWarp
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, PokemonLeague_ChampionsRoom_OnWarp
|
||||||
map_script MAP_SCRIPT_ON_RESUME, PokemonLeague_ChampionsRoom_OnResume
|
map_script MAP_SCRIPT_ON_RESUME, PokemonLeague_ChampionsRoom_OnResume
|
||||||
@@ -6,91 +9,91 @@ PokemonLeague_ChampionsRoom_MapScripts:: @ 8162AE2
|
|||||||
|
|
||||||
PokemonLeague_ChampionsRoom_OnResume:: @ 8162AF2
|
PokemonLeague_ChampionsRoom_OnResume:: @ 8162AF2
|
||||||
setvar VAR_0x8004, 4
|
setvar VAR_0x8004, 4
|
||||||
call EventScript_1A75D5
|
call PokemonLeague_EventScript_DoLightingEffect
|
||||||
compare VAR_STARTER_MON, 2
|
compare VAR_STARTER_MON, 2
|
||||||
call_if_eq EventScript_162B1E
|
call_if_eq PokemonLeague_ChampionsRoom_EventScript_CheckStopTriggerSquirtle
|
||||||
compare VAR_STARTER_MON, 1
|
compare VAR_STARTER_MON, 1
|
||||||
call_if_eq EventScript_162B31
|
call_if_eq PokemonLeague_ChampionsRoom_EventScript_CheckStopTriggerBulbasaur
|
||||||
compare VAR_STARTER_MON, 0
|
compare VAR_STARTER_MON, 0
|
||||||
call_if_eq EventScript_162B44
|
call_if_eq PokemonLeague_ChampionsRoom_EventScript_CheckStopTriggerCharmander
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162B1E:: @ 8162B1E
|
PokemonLeague_ChampionsRoom_EventScript_CheckStopTriggerSquirtle:: @ 8162B1E
|
||||||
goto_if_defeated TRAINER_CHAMPION_FIRST_SQUIRTLE, EventScript_162B57
|
goto_if_defeated TRAINER_CHAMPION_FIRST_SQUIRTLE, PokemonLeague_ChampionsRoom_EventScript_StopSceneTrigger
|
||||||
goto_if_defeated TRAINER_CHAMPION_REMATCH_SQUIRTLE, EventScript_162B57
|
goto_if_defeated TRAINER_CHAMPION_REMATCH_SQUIRTLE, PokemonLeague_ChampionsRoom_EventScript_StopSceneTrigger
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162B31:: @ 8162B31
|
PokemonLeague_ChampionsRoom_EventScript_CheckStopTriggerBulbasaur:: @ 8162B31
|
||||||
goto_if_defeated TRAINER_CHAMPION_FIRST_BULBASAUR, EventScript_162B57
|
goto_if_defeated TRAINER_CHAMPION_FIRST_BULBASAUR, PokemonLeague_ChampionsRoom_EventScript_StopSceneTrigger
|
||||||
goto_if_defeated TRAINER_CHAMPION_REMATCH_BULBASAUR, EventScript_162B57
|
goto_if_defeated TRAINER_CHAMPION_REMATCH_BULBASAUR, PokemonLeague_ChampionsRoom_EventScript_StopSceneTrigger
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162B44:: @ 8162B44
|
PokemonLeague_ChampionsRoom_EventScript_CheckStopTriggerCharmander:: @ 8162B44
|
||||||
goto_if_defeated TRAINER_CHAMPION_FIRST_CHARMANDER, EventScript_162B57
|
goto_if_defeated TRAINER_CHAMPION_FIRST_CHARMANDER, PokemonLeague_ChampionsRoom_EventScript_StopSceneTrigger
|
||||||
goto_if_defeated TRAINER_CHAMPION_REMATCH_CHARMANDER, EventScript_162B57
|
goto_if_defeated TRAINER_CHAMPION_REMATCH_CHARMANDER, PokemonLeague_ChampionsRoom_EventScript_StopSceneTrigger
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162B57:: @ 8162B57
|
PokemonLeague_ChampionsRoom_EventScript_StopSceneTrigger:: @ 8162B57
|
||||||
setvar VAR_TEMP_1, 1
|
setvar VAR_TEMP_1, 1
|
||||||
return
|
return
|
||||||
|
|
||||||
PokemonLeague_ChampionsRoom_OnWarp:: @ 8162B5D
|
PokemonLeague_ChampionsRoom_OnWarp:: @ 8162B5D
|
||||||
map_script_2 VAR_TEMP_1, 0, EventScript_162B67
|
map_script_2 VAR_TEMP_1, 0, PokemonLeague_ChampionsRoom_EventScript_TurnPlayerNorth
|
||||||
.2byte 0
|
.2byte 0
|
||||||
|
|
||||||
EventScript_162B67:: @ 8162B67
|
PokemonLeague_ChampionsRoom_EventScript_TurnPlayerNorth:: @ 8162B67
|
||||||
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_ChampionsRoom_OnFrame:: @ 8162B6C
|
PokemonLeague_ChampionsRoom_OnFrame:: @ 8162B6C
|
||||||
map_script_2 VAR_TEMP_1, 0, EventScript_162B76
|
map_script_2 VAR_TEMP_1, 0, PokemonLeague_ChampionsRoom_EventScript_EnterRoom
|
||||||
.2byte 0
|
.2byte 0
|
||||||
|
|
||||||
EventScript_162B76:: @ 8162B76
|
PokemonLeague_ChampionsRoom_EventScript_EnterRoom:: @ 8162B76
|
||||||
lockall
|
lockall
|
||||||
textcolor 0
|
textcolor 0
|
||||||
setflag FLAG_TEMP_2
|
setflag FLAG_TEMP_2
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_162D07
|
applymovement OBJ_EVENT_ID_PLAYER, PokemonLeague_ChampionsRoom_Movement_PlayerEnter
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
delay 20
|
delay 20
|
||||||
call_if_unset FLAG_SYS_GAME_CLEAR, EventScript_162CB3
|
call_if_unset FLAG_SYS_GAME_CLEAR, PokemonLeague_ChampionsRoom_EventScript_Intro
|
||||||
call_if_set FLAG_SYS_GAME_CLEAR, EventScript_162CBC
|
call_if_set FLAG_SYS_GAME_CLEAR, PokemonLeague_ChampionsRoom_EventScript_RematchIntro
|
||||||
goto_if_questlog EventScript_162C68
|
goto_if_questlog PokemonLeague_ChampionsRoom_EventScript_QuestLogEnd
|
||||||
setflag FLAG_TEMP_3
|
setflag FLAG_TEMP_3
|
||||||
setflag FLAG_TEMP_5
|
setflag FLAG_TEMP_5
|
||||||
savebgm MUS_WIN_GYM
|
savebgm MUS_WIN_GYM
|
||||||
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162C6F
|
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_ChampionsRoom_EventScript_Battle
|
||||||
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162C91
|
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_ChampionsRoom_EventScript_Rematch
|
||||||
setflag FLAG_TEMP_4
|
setflag FLAG_TEMP_4
|
||||||
clearflag FLAG_TEMP_5
|
clearflag FLAG_TEMP_5
|
||||||
setflag FLAG_DEFEATED_CHAMP
|
setflag FLAG_DEFEATED_CHAMP
|
||||||
setflag FLAG_TEMP_4
|
setflag FLAG_TEMP_4
|
||||||
msgbox gUnknown_8178F2F
|
msgbox PokemonLeague_ChampionsRoom_Text_PostBattle
|
||||||
playbgm MUS_SLOWMASARA, 0
|
playbgm MUS_SLOWMASARA, 0
|
||||||
addobject 2
|
addobject LOCALID_PROF_OAK
|
||||||
msgbox gUnknown_8178FC6
|
msgbox PokemonLeague_ChampionsRoom_Text_OakPlayer
|
||||||
closemessage
|
closemessage
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_162D1F
|
applymovement OBJ_EVENT_ID_PLAYER, PokemonLeague_ChampionsRoom_Movement_PlayerWatchOakEnter
|
||||||
applymovement 1, Movement_162D41
|
applymovement LOCALID_RIVAL, PokemonLeague_ChampionsRoom_Movement_RivalWatchOakEnter
|
||||||
applymovement 2, Movement_162D2A
|
applymovement LOCALID_PROF_OAK, PokemonLeague_ChampionsRoom_Movement_OakEnter
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
delay 25
|
delay 25
|
||||||
specialvar VAR_RESULT, ScrSpecial_GetStarter
|
specialvar VAR_RESULT, ScrSpecial_GetStarter
|
||||||
getspeciesname 0, VAR_RESULT
|
getspeciesname 0, VAR_RESULT
|
||||||
msgbox gUnknown_8178FCF
|
msgbox PokemonLeague_ChampionsRoom_Text_OakCongratulations
|
||||||
applymovement 2, Movement_WalkInPlaceFastestRight
|
applymovement LOCALID_PROF_OAK, Movement_WalkInPlaceFastestRight
|
||||||
applymovement 1, Movement_WalkInPlaceFastestLeft
|
applymovement LOCALID_RIVAL, Movement_WalkInPlaceFastestLeft
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
msgbox gUnknown_817908F
|
msgbox PokemonLeague_ChampionsRoom_Text_OakImDisappointedRival
|
||||||
closemessage
|
closemessage
|
||||||
applymovement 2, Movement_WalkInPlaceFastestDown
|
applymovement LOCALID_PROF_OAK, Movement_WalkInPlaceFastestDown
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
delay 20
|
delay 20
|
||||||
msgbox gUnknown_81791A3
|
msgbox PokemonLeague_ChampionsRoom_Text_OakPlayerComeWithMe
|
||||||
closemessage
|
closemessage
|
||||||
delay 13
|
delay 13
|
||||||
applymovement 2, Movement_162D37
|
applymovement LOCALID_PROF_OAK, PokemonLeague_ChampionsRoom_Movement_OakExit
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_162D12
|
applymovement OBJ_EVENT_ID_PLAYER, PokemonLeague_ChampionsRoom_Movement_PlayerExit
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
setvar VAR_TEMP_1, 1
|
setvar VAR_TEMP_1, 1
|
||||||
warp MAP_POKEMON_LEAGUE_HALL_OF_FAME, 255, 5, 12
|
warp MAP_POKEMON_LEAGUE_HALL_OF_FAME, 255, 5, 12
|
||||||
@@ -98,62 +101,62 @@ EventScript_162B76:: @ 8162B76
|
|||||||
releaseall
|
releaseall
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162C68:: @ 8162C68
|
PokemonLeague_ChampionsRoom_EventScript_QuestLogEnd:: @ 8162C68
|
||||||
call EventScript_162B57
|
call PokemonLeague_ChampionsRoom_EventScript_StopSceneTrigger
|
||||||
releaseall
|
releaseall
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162C6F:: @ 8162C6F
|
PokemonLeague_ChampionsRoom_EventScript_Battle:: @ 8162C6F
|
||||||
compare VAR_STARTER_MON, 2
|
compare VAR_STARTER_MON, 2
|
||||||
call_if_eq EventScript_162CC5
|
call_if_eq PokemonLeague_ChampionsRoom_EventScript_BattleSquirtle
|
||||||
compare VAR_STARTER_MON, 1
|
compare VAR_STARTER_MON, 1
|
||||||
call_if_eq EventScript_162CD0
|
call_if_eq PokemonLeague_ChampionsRoom_EventScript_BattleBulbasaur
|
||||||
compare VAR_STARTER_MON, 0
|
compare VAR_STARTER_MON, 0
|
||||||
call_if_eq EventScript_162CDB
|
call_if_eq PokemonLeague_ChampionsRoom_EventScript_BattleCharmander
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162C91:: @ 8162C91
|
PokemonLeague_ChampionsRoom_EventScript_Rematch:: @ 8162C91
|
||||||
compare VAR_STARTER_MON, 2
|
compare VAR_STARTER_MON, 2
|
||||||
call_if_eq EventScript_162CE6
|
call_if_eq PokemonLeague_ChampionsRoom_EventScript_RematchSquirtle
|
||||||
compare VAR_STARTER_MON, 1
|
compare VAR_STARTER_MON, 1
|
||||||
call_if_eq EventScript_162CF1
|
call_if_eq PokemonLeague_ChampionsRoom_EventScript_RematchBulbasaur
|
||||||
compare VAR_STARTER_MON, 0
|
compare VAR_STARTER_MON, 0
|
||||||
call_if_eq EventScript_162CFC
|
call_if_eq PokemonLeague_ChampionsRoom_EventScript_RematchCharmander
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162CB3:: @ 8162CB3
|
PokemonLeague_ChampionsRoom_EventScript_Intro:: @ 8162CB3
|
||||||
msgbox gUnknown_8178B6C
|
msgbox PokemonLeague_ChampionsRoom_Text_Intro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162CBC:: @ 8162CBC
|
PokemonLeague_ChampionsRoom_EventScript_RematchIntro:: @ 8162CBC
|
||||||
msgbox gUnknown_8178CD4
|
msgbox PokemonLeague_ChampionsRoom_Text_RematchIntro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162CC5:: @ 8162CC5
|
PokemonLeague_ChampionsRoom_EventScript_BattleSquirtle:: @ 8162CC5
|
||||||
trainerbattle_no_intro TRAINER_CHAMPION_FIRST_SQUIRTLE, Text_178E3F
|
trainerbattle_no_intro TRAINER_CHAMPION_FIRST_SQUIRTLE, PokemonLeague_ChampionsRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162CD0:: @ 8162CD0
|
PokemonLeague_ChampionsRoom_EventScript_BattleBulbasaur:: @ 8162CD0
|
||||||
trainerbattle_no_intro TRAINER_CHAMPION_FIRST_BULBASAUR, Text_178E3F
|
trainerbattle_no_intro TRAINER_CHAMPION_FIRST_BULBASAUR, PokemonLeague_ChampionsRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162CDB:: @ 8162CDB
|
PokemonLeague_ChampionsRoom_EventScript_BattleCharmander:: @ 8162CDB
|
||||||
trainerbattle_no_intro TRAINER_CHAMPION_FIRST_CHARMANDER, Text_178E3F
|
trainerbattle_no_intro TRAINER_CHAMPION_FIRST_CHARMANDER, PokemonLeague_ChampionsRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162CE6:: @ 8162CE6
|
PokemonLeague_ChampionsRoom_EventScript_RematchSquirtle:: @ 8162CE6
|
||||||
trainerbattle_no_intro TRAINER_CHAMPION_REMATCH_SQUIRTLE, Text_178E3F
|
trainerbattle_no_intro TRAINER_CHAMPION_REMATCH_SQUIRTLE, PokemonLeague_ChampionsRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162CF1:: @ 8162CF1
|
PokemonLeague_ChampionsRoom_EventScript_RematchBulbasaur:: @ 8162CF1
|
||||||
trainerbattle_no_intro TRAINER_CHAMPION_REMATCH_BULBASAUR, Text_178E3F
|
trainerbattle_no_intro TRAINER_CHAMPION_REMATCH_BULBASAUR, PokemonLeague_ChampionsRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162CFC:: @ 8162CFC
|
PokemonLeague_ChampionsRoom_EventScript_RematchCharmander:: @ 8162CFC
|
||||||
trainerbattle_no_intro TRAINER_CHAMPION_REMATCH_CHARMANDER, Text_178E3F
|
trainerbattle_no_intro TRAINER_CHAMPION_REMATCH_CHARMANDER, PokemonLeague_ChampionsRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
Movement_162D07:: @ 8162D07
|
PokemonLeague_ChampionsRoom_Movement_PlayerEnter:: @ 8162D07
|
||||||
walk_up
|
walk_up
|
||||||
walk_up
|
walk_up
|
||||||
walk_up
|
walk_up
|
||||||
@@ -166,7 +169,7 @@ Movement_162D07:: @ 8162D07
|
|||||||
walk_up
|
walk_up
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_162D12:: @ 8162D12
|
PokemonLeague_ChampionsRoom_Movement_PlayerExit:: @ 8162D12
|
||||||
delay_16
|
delay_16
|
||||||
walk_left
|
walk_left
|
||||||
walk_up
|
walk_up
|
||||||
@@ -181,7 +184,7 @@ Movement_162D12:: @ 8162D12
|
|||||||
set_invisible
|
set_invisible
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_162D1F:: @ 8162D1F
|
PokemonLeague_ChampionsRoom_Movement_PlayerWatchOakEnter:: @ 8162D1F
|
||||||
delay_8
|
delay_8
|
||||||
walk_in_place_fastest_down
|
walk_in_place_fastest_down
|
||||||
delay_16
|
delay_16
|
||||||
@@ -194,7 +197,7 @@ Movement_162D1F:: @ 8162D1F
|
|||||||
walk_in_place_fastest_left
|
walk_in_place_fastest_left
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_162D2A:: @ 8162D2A
|
PokemonLeague_ChampionsRoom_Movement_OakEnter:: @ 8162D2A
|
||||||
delay_16
|
delay_16
|
||||||
delay_16
|
delay_16
|
||||||
walk_up
|
walk_up
|
||||||
@@ -209,7 +212,7 @@ Movement_162D2A:: @ 8162D2A
|
|||||||
delay_16
|
delay_16
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_162D37:: @ 8162D37
|
PokemonLeague_ChampionsRoom_Movement_OakExit:: @ 8162D37
|
||||||
walk_up
|
walk_up
|
||||||
walk_up
|
walk_up
|
||||||
walk_right
|
walk_right
|
||||||
@@ -221,7 +224,7 @@ Movement_162D37:: @ 8162D37
|
|||||||
set_invisible
|
set_invisible
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_162D41:: @ 8162D41
|
PokemonLeague_ChampionsRoom_Movement_RivalWatchOakEnter:: @ 8162D41
|
||||||
delay_16
|
delay_16
|
||||||
delay_16
|
delay_16
|
||||||
delay_16
|
delay_16
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
gUnknown_8178B6C:: @ 8178B6C
|
PokemonLeague_ChampionsRoom_Text_Intro:: @ 8178B6C
|
||||||
.string "{RIVAL}: Hey, {PLAYER}!\p"
|
.string "{RIVAL}: Hey, {PLAYER}!\p"
|
||||||
.string "I was looking forward to seeing\n"
|
.string "I was looking forward to seeing\n"
|
||||||
.string "you, {PLAYER}.\p"
|
.string "you, {PLAYER}.\p"
|
||||||
@@ -16,7 +16,7 @@ gUnknown_8178B6C:: @ 8178B6C
|
|||||||
.string "I am the most powerful TRAINER in\n"
|
.string "I am the most powerful TRAINER in\n"
|
||||||
.string "the world!$"
|
.string "the world!$"
|
||||||
|
|
||||||
gUnknown_8178CD4:: @ 8178CD4
|
PokemonLeague_ChampionsRoom_Text_RematchIntro:: @ 8178CD4
|
||||||
.string "{RIVAL}: Hey, {PLAYER}!\p"
|
.string "{RIVAL}: Hey, {PLAYER}!\p"
|
||||||
.string "You came back, {PLAYER}!\n"
|
.string "You came back, {PLAYER}!\n"
|
||||||
.string "Hahah, that is so great!\p"
|
.string "Hahah, that is so great!\p"
|
||||||
@@ -34,7 +34,7 @@ gUnknown_8178CD4:: @ 8178CD4
|
|||||||
.string "I am the most powerful TRAINER in\n"
|
.string "I am the most powerful TRAINER in\n"
|
||||||
.string "the world!$"
|
.string "the world!$"
|
||||||
|
|
||||||
Text_178E3F:: @ 8178E3F
|
PokemonLeague_ChampionsRoom_Text_Defeat:: @ 8178E3F
|
||||||
.string "NO!\n"
|
.string "NO!\n"
|
||||||
.string "That can't be!\l"
|
.string "That can't be!\l"
|
||||||
.string "You beat me at my best!\p"
|
.string "You beat me at my best!\p"
|
||||||
@@ -43,7 +43,7 @@ Text_178E3F:: @ 8178E3F
|
|||||||
.string "My reign is over already?\n"
|
.string "My reign is over already?\n"
|
||||||
.string "It's not fair!$"
|
.string "It's not fair!$"
|
||||||
|
|
||||||
Text_178EC3:: @ 8178EC3
|
PokemonLeague_ChampionsRoom_Text_Victory:: @ 8178EC3
|
||||||
.string "はーはッ!\n"
|
.string "はーはッ!\n"
|
||||||
.string "かった! かった! かった!\p"
|
.string "かった! かった! かった!\p"
|
||||||
.string "{PLAYER}に まける ような\n"
|
.string "{PLAYER}に まける ような\n"
|
||||||
@@ -54,7 +54,7 @@ Text_178EC3:: @ 8178EC3
|
|||||||
.string "ほめて つかわす!\n"
|
.string "ほめて つかわす!\n"
|
||||||
.string "はーッ! はーはッはッ!$"
|
.string "はーッ! はーはッはッ!$"
|
||||||
|
|
||||||
gUnknown_8178F2F:: @ 8178F2F
|
PokemonLeague_ChampionsRoom_Text_PostBattle:: @ 8178F2F
|
||||||
.string "Why?\n"
|
.string "Why?\n"
|
||||||
.string "Why did I lose?\p"
|
.string "Why did I lose?\p"
|
||||||
.string "I never made any mistakes raising\n"
|
.string "I never made any mistakes raising\n"
|
||||||
@@ -63,10 +63,10 @@ gUnknown_8178F2F:: @ 8178F2F
|
|||||||
.string "LEAGUE CHAMPION!\p"
|
.string "LEAGUE CHAMPION!\p"
|
||||||
.string "Although I don't like to admit it…$"
|
.string "Although I don't like to admit it…$"
|
||||||
|
|
||||||
gUnknown_8178FC6:: @ 8178FC6
|
PokemonLeague_ChampionsRoom_Text_OakPlayer:: @ 8178FC6
|
||||||
.string "OAK: {PLAYER}!$"
|
.string "OAK: {PLAYER}!$"
|
||||||
|
|
||||||
gUnknown_8178FCF:: @ 8178FCF
|
PokemonLeague_ChampionsRoom_Text_OakCongratulations:: @ 8178FCF
|
||||||
.string "OAK: So, you've won!\n"
|
.string "OAK: So, you've won!\n"
|
||||||
.string "Sincerely, congratulations!\p"
|
.string "Sincerely, congratulations!\p"
|
||||||
.string "You're the new POKéMON LEAGUE\n"
|
.string "You're the new POKéMON LEAGUE\n"
|
||||||
@@ -76,7 +76,7 @@ gUnknown_8178FCF:: @ 8178FCF
|
|||||||
.string "on the POKéDEX.\p"
|
.string "on the POKéDEX.\p"
|
||||||
.string "{PLAYER}, you have come of age!$"
|
.string "{PLAYER}, you have come of age!$"
|
||||||
|
|
||||||
gUnknown_817908F:: @ 817908F
|
PokemonLeague_ChampionsRoom_Text_OakImDisappointedRival:: @ 817908F
|
||||||
.string "OAK: {RIVAL}…\n"
|
.string "OAK: {RIVAL}…\n"
|
||||||
.string "I'm disappointed in you.\p"
|
.string "I'm disappointed in you.\p"
|
||||||
.string "I came when I heard you'd beaten\n"
|
.string "I came when I heard you'd beaten\n"
|
||||||
@@ -90,7 +90,7 @@ gUnknown_817908F:: @ 817908F
|
|||||||
.string "Without them, you will never\n"
|
.string "Without them, you will never\n"
|
||||||
.string "become a CHAMP again!$"
|
.string "become a CHAMP again!$"
|
||||||
|
|
||||||
gUnknown_81791A3:: @ 81791A3
|
PokemonLeague_ChampionsRoom_Text_OakPlayerComeWithMe:: @ 81791A3
|
||||||
.string "OAK: {PLAYER}.\p"
|
.string "OAK: {PLAYER}.\p"
|
||||||
.string "You understand that your victory\n"
|
.string "You understand that your victory\n"
|
||||||
.string "was not just your own doing.\p"
|
.string "was not just your own doing.\p"
|
||||||
|
|||||||
@@ -12,26 +12,26 @@ EventScript_162D61:: @ 8162D61
|
|||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_HallOfFame_OnFrame:: @ 8162D66
|
PokemonLeague_HallOfFame_OnFrame:: @ 8162D66
|
||||||
map_script_2 VAR_TEMP_1, 0, EventScript_162D70
|
map_script_2 VAR_TEMP_1, 0, PokemonLeague_HallOfFame_EventScript_EnterRoom
|
||||||
.2byte 0
|
.2byte 0
|
||||||
|
|
||||||
EventScript_162D70:: @ 8162D70
|
PokemonLeague_HallOfFame_EventScript_EnterRoom:: @ 8162D70
|
||||||
lockall
|
lockall
|
||||||
textcolor 0
|
textcolor 0
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_162DCD
|
applymovement OBJ_EVENT_ID_PLAYER, PokemonLeague_HallOfFame_Movement_EnterRoom
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
applymovement 1, Movement_WalkInPlaceFastestLeft
|
applymovement 1, Movement_WalkInPlaceFastestLeft
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
delay 18
|
delay 18
|
||||||
msgbox gUnknown_817922F
|
msgbox PokemonLeague_HallOfFame_Text_OakCongratulations
|
||||||
closemessage
|
closemessage
|
||||||
applymovement 1, Movement_WalkInPlaceFastestUp
|
applymovement 1, Movement_WalkInPlaceFastestUp
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestUp
|
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestUp
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
delay 20
|
delay 20
|
||||||
dofieldeffect 62
|
dofieldeffect FLDEFF_HALL_OF_FAME_RECORD
|
||||||
waitfieldeffect 62
|
waitfieldeffect FLDEFF_HALL_OF_FAME_RECORD
|
||||||
delay 40
|
delay 40
|
||||||
setvar VAR_TEMP_1, 1
|
setvar VAR_TEMP_1, 1
|
||||||
call EventScript_1A651A
|
call EventScript_1A651A
|
||||||
@@ -42,7 +42,7 @@ EventScript_162D70:: @ 8162D70
|
|||||||
releaseall
|
releaseall
|
||||||
end
|
end
|
||||||
|
|
||||||
Movement_162DCD:: @ 8162DCD
|
PokemonLeague_HallOfFame_Movement_EnterRoom:: @ 8162DCD
|
||||||
walk_up
|
walk_up
|
||||||
walk_up
|
walk_up
|
||||||
walk_up
|
walk_up
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
gUnknown_817922F:: @ 817922F
|
PokemonLeague_HallOfFame_Text_OakCongratulations:: @ 817922F
|
||||||
.string "OAK: Er-hem!\n"
|
.string "OAK: Er-hem!\n"
|
||||||
.string "Congratulations, {PLAYER}!\p"
|
.string "Congratulations, {PLAYER}!\p"
|
||||||
.string "This floor is the POKéMON HALL OF\n"
|
.string "This floor is the POKéMON HALL OF\n"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "PokemonLeague_LancesRoom_EventScript_162A14",
|
"script": "PokemonLeague_LancesRoom_EventScript_Lance",
|
||||||
"flag": "0"
|
"flag": "0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -7,41 +7,41 @@ PokemonLeague_LancesRoom_MapScripts:: @ 816292D
|
|||||||
|
|
||||||
PokemonLeague_LancesRoom_OnResume:: @ 8162942
|
PokemonLeague_LancesRoom_OnResume:: @ 8162942
|
||||||
setvar VAR_0x8004, 3
|
setvar VAR_0x8004, 3
|
||||||
call EventScript_1A75D5
|
call PokemonLeague_EventScript_DoLightingEffect
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_LancesRoom_OnLoad:: @ 816294D
|
PokemonLeague_LancesRoom_OnLoad:: @ 816294D
|
||||||
compare VAR_MAP_SCENE_POKEMON_LEAGUE, 4
|
compare VAR_MAP_SCENE_POKEMON_LEAGUE, 4
|
||||||
call_if_eq EventScript_162962
|
call_if_eq PokemonLeague_LancesRoom_EventScript_CloseEntry
|
||||||
call_if_set FLAG_DEFEATED_LANCE, EventScript_162968
|
call_if_set FLAG_DEFEATED_LANCE, PokemonLeague_LancesRoom_EventScript_SetDoorOpen
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162962:: @ 8162962
|
PokemonLeague_LancesRoom_EventScript_CloseEntry:: @ 8162962
|
||||||
call EventScript_1629A8
|
call PokemonLeague_LancesRoom_EventScript_SetEntryClosed
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162968:: @ 8162968
|
PokemonLeague_LancesRoom_EventScript_SetDoorOpen:: @ 8162968
|
||||||
call EventScript_1A7589
|
call PokemonLeague_EventScript_SetDoorOpenLance
|
||||||
return
|
return
|
||||||
|
|
||||||
PokemonLeague_LancesRoom_OnWarp:: @ 816296E
|
PokemonLeague_LancesRoom_OnWarp:: @ 816296E
|
||||||
map_script_2 VAR_TEMP_1, 0, EventScript_162978
|
map_script_2 VAR_TEMP_1, 0, PokemonLeague_LancesRoom_EventScript_TurnPlayerNorth
|
||||||
.2byte 0
|
.2byte 0
|
||||||
|
|
||||||
EventScript_162978:: @ 8162978
|
PokemonLeague_LancesRoom_EventScript_TurnPlayerNorth:: @ 8162978
|
||||||
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_LancesRoom_OnFrame:: @ 816297D
|
PokemonLeague_LancesRoom_OnFrame:: @ 816297D
|
||||||
map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 3, EventScript_162987
|
map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 3, PokemonLeague_LancesRoom_EventScript_EnterRoom
|
||||||
.2byte 0
|
.2byte 0
|
||||||
|
|
||||||
EventScript_162987:: @ 8162987
|
PokemonLeague_LancesRoom_EventScript_EnterRoom:: @ 8162987
|
||||||
lockall
|
lockall
|
||||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_1629F1
|
applymovement OBJ_EVENT_ID_PLAYER, PokemonLeague_LancesRoom_Movement_WalkThroughCorridor
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
setflag FLAG_TEMP_2
|
setflag FLAG_TEMP_2
|
||||||
call EventScript_1629A8
|
call PokemonLeague_LancesRoom_EventScript_SetEntryClosed
|
||||||
playse SE_KI_GASYAN
|
playse SE_KI_GASYAN
|
||||||
special DrawWholeMapView
|
special DrawWholeMapView
|
||||||
waitse
|
waitse
|
||||||
@@ -49,18 +49,18 @@ EventScript_162987:: @ 8162987
|
|||||||
releaseall
|
releaseall
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_1629A8:: @ 81629A8
|
PokemonLeague_LancesRoom_EventScript_SetEntryClosed:: @ 81629A8
|
||||||
setmetatile 5, 14, 669, 1
|
setmetatile 5, 14, METATILE_PokemonLeague_Entry_TopLeft_Closed, 1
|
||||||
setmetatile 6, 14, 670, 1
|
setmetatile 6, 14, METATILE_PokemonLeague_Entry_TopMid_Closed, 1
|
||||||
setmetatile 7, 14, 671, 1
|
setmetatile 7, 14, METATILE_PokemonLeague_Entry_TopRight_Closed, 1
|
||||||
setmetatile 5, 15, 677, 1
|
setmetatile 5, 15, METATILE_PokemonLeague_Entry_BottomLeft_Closed, 1
|
||||||
setmetatile 6, 15, 678, 1
|
setmetatile 6, 15, METATILE_PokemonLeague_Entry_BottomMid_Closed, 1
|
||||||
setmetatile 7, 15, 679, 1
|
setmetatile 7, 15, METATILE_PokemonLeague_Entry_BottomRight_Closed, 1
|
||||||
setmetatile 6, 16, 785, 0
|
setmetatile 6, 16, METATILE_PokemonLeague_Floor_ShadeFull_Lance, 0
|
||||||
setmetatile 7, 16, 785, 0
|
setmetatile 7, 16, METATILE_PokemonLeague_Floor_ShadeFull_Lance, 0
|
||||||
return
|
return
|
||||||
|
|
||||||
Movement_1629F1:: @ 81629F1
|
PokemonLeague_LancesRoom_Movement_WalkThroughCorridor:: @ 81629F1
|
||||||
walk_up
|
walk_up
|
||||||
walk_up
|
walk_up
|
||||||
walk_left
|
walk_left
|
||||||
@@ -97,72 +97,70 @@ Movement_1629F1:: @ 81629F1
|
|||||||
walk_up
|
walk_up
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
PokemonLeague_LancesRoom_EventScript_162A14:: @ 8162A14
|
PokemonLeague_LancesRoom_EventScript_Lance:: @ 8162A14
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
famechecker FAMECHECKER_LANCE, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
|
famechecker FAMECHECKER_LANCE, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
|
||||||
goto_if_set FLAG_DEFEATED_LANCE, EventScript_162AA1
|
goto_if_set FLAG_DEFEATED_LANCE, PokemonLeague_LancesRoom_EventScript_PostBattle
|
||||||
famechecker FAMECHECKER_LANCE, 0
|
famechecker FAMECHECKER_LANCE, 0
|
||||||
famechecker FAMECHECKER_LANCE, 1
|
famechecker FAMECHECKER_LANCE, 1
|
||||||
call_if_unset FLAG_SYS_GAME_CLEAR, EventScript_162A79
|
call_if_unset FLAG_SYS_GAME_CLEAR, PokemonLeague_LancesRoom_EventScript_Intro
|
||||||
call_if_set FLAG_SYS_GAME_CLEAR, EventScript_162A82
|
call_if_set FLAG_SYS_GAME_CLEAR, PokemonLeague_LancesRoom_EventScript_RematchIntro
|
||||||
setflag FLAG_TEMP_3
|
setflag FLAG_TEMP_3
|
||||||
setflag FLAG_TEMP_5
|
setflag FLAG_TEMP_5
|
||||||
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162A8B
|
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LancesRoom_EventScript_Battle
|
||||||
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162A96
|
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LancesRoom_EventScript_Rematch
|
||||||
clearflag FLAG_TEMP_5
|
clearflag FLAG_TEMP_5
|
||||||
goto EventScript_162AAB
|
goto PokemonLeague_LancesRoom_EventScript_DefeatedLance
|
||||||
|
|
||||||
EventScript_162A78:: @ 8162A78
|
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162A79:: @ 8162A79
|
PokemonLeague_LancesRoom_EventScript_Intro:: @ 8162A79
|
||||||
msgbox gUnknown_8178764
|
msgbox PokemonLeague_LancesRoom_Text_Intro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162A82:: @ 8162A82
|
PokemonLeague_LancesRoom_EventScript_RematchIntro:: @ 8162A82
|
||||||
msgbox gUnknown_81788BD
|
msgbox PokemonLeague_LancesRoom_Text_RematchIntro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162A8B:: @ 8162A8B
|
PokemonLeague_LancesRoom_EventScript_Battle:: @ 8162A8B
|
||||||
trainerbattle_no_intro TRAINER_ELITE_FOUR_LANCE, Text_178A15
|
trainerbattle_no_intro TRAINER_ELITE_FOUR_LANCE, PokemonLeague_LancesRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162A96:: @ 8162A96
|
PokemonLeague_LancesRoom_EventScript_Rematch:: @ 8162A96
|
||||||
trainerbattle_no_intro TRAINER_ELITE_FOUR_LANCE_2, Text_178A15
|
trainerbattle_no_intro TRAINER_ELITE_FOUR_LANCE_2, PokemonLeague_LancesRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162AA1:: @ 8162AA1
|
PokemonLeague_LancesRoom_EventScript_PostBattle:: @ 8162AA1
|
||||||
msgbox gUnknown_8178A52
|
msgbox PokemonLeague_LancesRoom_Text_PostBattle
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162AAB:: @ 8162AAB
|
PokemonLeague_LancesRoom_EventScript_DefeatedLance:: @ 8162AAB
|
||||||
setvar VAR_0x8004, 0
|
setvar VAR_0x8004, 0
|
||||||
special Special_TryGainNewFanFromCounter
|
special Special_TryGainNewFanFromCounter
|
||||||
setflag FLAG_DEFEATED_LANCE
|
setflag FLAG_DEFEATED_LANCE
|
||||||
call EventScript_1A7563
|
call PokemonLeague_EventScript_OpenDoorLance
|
||||||
msgbox gUnknown_8178A52
|
msgbox PokemonLeague_LancesRoom_Text_PostBattle
|
||||||
closemessage
|
closemessage
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162AC6:: @ 8162AC6
|
PokemonLeague_LancesRoom_EventScript_LanceMoveOutOfWayLeft:: @ 8162AC6
|
||||||
applymovement 1, Movement_162ADC
|
applymovement 1, PokemonLeague_LancesRoom_Movement_LanceMoveOutOfWayLeft
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162AD1:: @ 8162AD1
|
PokemonLeague_LancesRoom_EventScript_LanceMoveOutOfWayRight:: @ 8162AD1
|
||||||
applymovement 1, Movement_162ADF
|
applymovement 1, PokemonLeague_LancesRoom_Movement_LanceMoveOutOfWayRight
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
return
|
return
|
||||||
|
|
||||||
Movement_162ADC:: @ 8162ADC
|
PokemonLeague_LancesRoom_Movement_LanceMoveOutOfWayLeft:: @ 8162ADC
|
||||||
walk_left
|
walk_left
|
||||||
walk_in_place_fastest_right
|
walk_in_place_fastest_right
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
Movement_162ADF:: @ 8162ADF
|
PokemonLeague_LancesRoom_Movement_LanceMoveOutOfWayRight:: @ 8162ADF
|
||||||
walk_right
|
walk_right
|
||||||
walk_in_place_fastest_left
|
walk_in_place_fastest_left
|
||||||
step_end
|
step_end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
gUnknown_8178764:: @ 8178764
|
PokemonLeague_LancesRoom_Text_Intro:: @ 8178764
|
||||||
.string "Ah! I've heard about you,\n"
|
.string "Ah! I've heard about you,\n"
|
||||||
.string "{PLAYER}!\p"
|
.string "{PLAYER}!\p"
|
||||||
.string "I lead the ELITE FOUR.\p"
|
.string "I lead the ELITE FOUR.\p"
|
||||||
@@ -14,7 +14,7 @@ gUnknown_8178764:: @ 8178764
|
|||||||
.string "Your LEAGUE challenge ends with\n"
|
.string "Your LEAGUE challenge ends with\n"
|
||||||
.string "me, {PLAYER}!{PLAY_BGM}{MUS_EXEYE}$"
|
.string "me, {PLAYER}!{PLAY_BGM}{MUS_EXEYE}$"
|
||||||
|
|
||||||
gUnknown_81788BD:: @ 81788BD
|
PokemonLeague_LancesRoom_Text_RematchIntro:: @ 81788BD
|
||||||
.string "Ah!\n"
|
.string "Ah!\n"
|
||||||
.string "So, you've returned, {PLAYER}!\p"
|
.string "So, you've returned, {PLAYER}!\p"
|
||||||
.string "I lead the ELITE FOUR.\p"
|
.string "I lead the ELITE FOUR.\p"
|
||||||
@@ -30,12 +30,12 @@ gUnknown_81788BD:: @ 81788BD
|
|||||||
.string "Your LEAGUE challenge ends with\n"
|
.string "Your LEAGUE challenge ends with\n"
|
||||||
.string "me, {PLAYER}!{PLAY_BGM}{MUS_EXEYE}$"
|
.string "me, {PLAYER}!{PLAY_BGM}{MUS_EXEYE}$"
|
||||||
|
|
||||||
Text_178A15:: @ 8178A15
|
PokemonLeague_LancesRoom_Text_Defeat:: @ 8178A15
|
||||||
.string "That's it!\p"
|
.string "That's it!\p"
|
||||||
.string "I hate to admit it, but you are a\n"
|
.string "I hate to admit it, but you are a\n"
|
||||||
.string "POKéMON master!$"
|
.string "POKéMON master!$"
|
||||||
|
|
||||||
gUnknown_8178A52:: @ 8178A52
|
PokemonLeague_LancesRoom_Text_PostBattle:: @ 8178A52
|
||||||
.string "I still can't believe my dragons\n"
|
.string "I still can't believe my dragons\n"
|
||||||
.string "lost to you, {PLAYER}.\p"
|
.string "lost to you, {PLAYER}.\p"
|
||||||
.string "You are now the POKéMON LEAGUE\n"
|
.string "You are now the POKéMON LEAGUE\n"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"movement_range_y": 1,
|
"movement_range_y": 1,
|
||||||
"trainer_type": 0,
|
"trainer_type": 0,
|
||||||
"trainer_sight_or_berry_tree_id": 0,
|
"trainer_sight_or_berry_tree_id": 0,
|
||||||
"script": "PokemonLeague_LoreleisRoom_EventScript_1625DC",
|
"script": "PokemonLeague_LoreleisRoom_EventScript_Lorelei",
|
||||||
"flag": "0"
|
"flag": "0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -8,21 +8,21 @@ PokemonLeague_LoreleisRoom_MapScripts:: @ 816256C
|
|||||||
|
|
||||||
PokemonLeague_LoreleisRoom_OnResume:: @ 8162586
|
PokemonLeague_LoreleisRoom_OnResume:: @ 8162586
|
||||||
setvar VAR_0x8004, 0
|
setvar VAR_0x8004, 0
|
||||||
call EventScript_1A75D5
|
call PokemonLeague_EventScript_DoLightingEffect
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_LoreleisRoom_OnLoad:: @ 8162591
|
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
|
compare VAR_MAP_SCENE_POKEMON_LEAGUE, 1
|
||||||
call_if_eq EventScript_1625A6
|
call_if_eq PokemonLeague_LoreleisRoom_EventScript_CloseEntry
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_1625A6:: @ 81625A6
|
PokemonLeague_LoreleisRoom_EventScript_CloseEntry:: @ 81625A6
|
||||||
call EventScript_1A759C
|
call PokemonLeague_EventScript_CloseEntry
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_1625AC:: @ 81625AC
|
PokemonLeague_LoreleisRoom_EventScript_SetDoorOpen:: @ 81625AC
|
||||||
call EventScript_1A7538
|
call PokemonLeague_EventScript_SetDoorOpen
|
||||||
return
|
return
|
||||||
|
|
||||||
PokemonLeague_LoreleisRoom_OnTransition:: @ 81625B2
|
PokemonLeague_LoreleisRoom_OnTransition:: @ 81625B2
|
||||||
@@ -30,67 +30,65 @@ PokemonLeague_LoreleisRoom_OnTransition:: @ 81625B2
|
|||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_LoreleisRoom_OnWarp:: @ 81625B6
|
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
|
.2byte 0
|
||||||
|
|
||||||
EventScript_1625C0:: @ 81625C0
|
PokemonLeague_LoreleisRoom_EventScript_TurnPlayerNorth:: @ 81625C0
|
||||||
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_LoreleisRoom_OnFrame:: @ 81625C5
|
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
|
.2byte 0
|
||||||
|
|
||||||
EventScript_1625CF:: @ 81625CF
|
PokemonLeague_LoreleisRoom_EventScript_EnterRoom:: @ 81625CF
|
||||||
lockall
|
lockall
|
||||||
call EventScript_1A751F
|
call PokemonLeague_EventScript_EnterRoom
|
||||||
setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 1
|
setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 1
|
||||||
releaseall
|
releaseall
|
||||||
end
|
end
|
||||||
|
|
||||||
PokemonLeague_LoreleisRoom_EventScript_1625DC:: @ 81625DC
|
PokemonLeague_LoreleisRoom_EventScript_Lorelei:: @ 81625DC
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
famechecker FAMECHECKER_LORELEI, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
|
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, 0
|
||||||
famechecker FAMECHECKER_LORELEI, 1
|
famechecker FAMECHECKER_LORELEI, 1
|
||||||
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162641
|
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LoreleisRoom_EventScript_Intro
|
||||||
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_16264A
|
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LoreleisRoom_EventScript_RematchIntro
|
||||||
setflag FLAG_TEMP_3
|
setflag FLAG_TEMP_3
|
||||||
setflag FLAG_TEMP_5
|
setflag FLAG_TEMP_5
|
||||||
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, EventScript_162653
|
call_if_unset FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LoreleisRoom_EventScript_Battle
|
||||||
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_16265E
|
call_if_set FLAG_SYS_CAN_LINK_WITH_RS, PokemonLeague_LoreleisRoom_EventScript_Rematch
|
||||||
clearflag FLAG_TEMP_5
|
clearflag FLAG_TEMP_5
|
||||||
goto EventScript_162673
|
goto PokemonLeague_LoreleisRoom_EventScript_DefeatedLorelei
|
||||||
|
|
||||||
EventScript_162640:: @ 8162640
|
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162641:: @ 8162641
|
PokemonLeague_LoreleisRoom_EventScript_Intro:: @ 8162641
|
||||||
msgbox gUnknown_8177FA4
|
msgbox PokemonLeague_LoreleisRoom_Text_Intro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_16264A:: @ 816264A
|
PokemonLeague_LoreleisRoom_EventScript_RematchIntro:: @ 816264A
|
||||||
msgbox gUnknown_8178089
|
msgbox PokemonLeague_LoreleisRoom_Text_RematchIntro
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162653:: @ 8162653
|
PokemonLeague_LoreleisRoom_EventScript_Battle:: @ 8162653
|
||||||
trainerbattle_no_intro TRAINER_ELITE_FOUR_LORELEI, Text_178191
|
trainerbattle_no_intro TRAINER_ELITE_FOUR_LORELEI, PokemonLeague_LoreleisRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_16265E:: @ 816265E
|
PokemonLeague_LoreleisRoom_EventScript_Rematch:: @ 816265E
|
||||||
trainerbattle_no_intro TRAINER_ELITE_FOUR_LORELEI_2, Text_178191
|
trainerbattle_no_intro TRAINER_ELITE_FOUR_LORELEI_2, PokemonLeague_LoreleisRoom_Text_Defeat
|
||||||
return
|
return
|
||||||
|
|
||||||
EventScript_162669:: @ 8162669
|
PokemonLeague_LoreleisRoom_EventScript_PostBattle:: @ 8162669
|
||||||
msgbox gUnknown_81781B0
|
msgbox PokemonLeague_LoreleisRoom_Text_PostBattle
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_162673:: @ 8162673
|
PokemonLeague_LoreleisRoom_EventScript_DefeatedLorelei:: @ 8162673
|
||||||
setflag FLAG_DEFEATED_LORELEI
|
setflag FLAG_DEFEATED_LORELEI
|
||||||
call EventScript_1A7506
|
call PokemonLeague_EventScript_OpenDoor
|
||||||
msgbox gUnknown_81781B0
|
msgbox PokemonLeague_LoreleisRoom_Text_PostBattle
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
gUnknown_8177FA4:: @ 8177FA4
|
PokemonLeague_LoreleisRoom_Text_Intro:: @ 8177FA4
|
||||||
.string "Welcome to the POKéMON LEAGUE.\p"
|
.string "Welcome to the POKéMON LEAGUE.\p"
|
||||||
.string "I am LORELEI of the ELITE FOUR.\p"
|
.string "I am LORELEI of the ELITE FOUR.\p"
|
||||||
.string "No one can best me when it comes\n"
|
.string "No one can best me when it comes\n"
|
||||||
@@ -9,7 +9,7 @@ gUnknown_8177FA4:: @ 8177FA4
|
|||||||
.string "Hahaha!\n"
|
.string "Hahaha!\n"
|
||||||
.string "Are you ready?{PLAY_BGM}{MUS_EXEYE}$"
|
.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 "Welcome to the POKéMON LEAGUE.\p"
|
||||||
.string "I, LORELEI of the ELITE FOUR,\n"
|
.string "I, LORELEI of the ELITE FOUR,\n"
|
||||||
.string "have returned!\p"
|
.string "have returned!\p"
|
||||||
@@ -22,10 +22,10 @@ gUnknown_8178089:: @ 8178089
|
|||||||
.string "Hahaha!\n"
|
.string "Hahaha!\n"
|
||||||
.string "Are you ready?{PLAY_BGM}{MUS_EXEYE}$"
|
.string "Are you ready?{PLAY_BGM}{MUS_EXEYE}$"
|
||||||
|
|
||||||
Text_178191:: @ 8178191
|
PokemonLeague_LoreleisRoom_Text_Defeat:: @ 8178191
|
||||||
.string "…Things shouldn't be this way!$"
|
.string "…Things shouldn't be this way!$"
|
||||||
|
|
||||||
gUnknown_81781B0:: @ 81781B0
|
PokemonLeague_LoreleisRoom_Text_PostBattle:: @ 81781B0
|
||||||
.string "You're better than I thought.\n"
|
.string "You're better than I thought.\n"
|
||||||
.string "Go on ahead.\p"
|
.string "Go on ahead.\p"
|
||||||
.string "You only got a taste of the\n"
|
.string "You only got a taste of the\n"
|
||||||
|
|||||||
@@ -1,22 +1,3 @@
|
|||||||
Text_19A9E7:: @ 819A9E7
|
|
||||||
.string "AGATHA's GHOST-type POKéMON are\n"
|
|
||||||
.string "horrifically terrifying in toughness.\p"
|
|
||||||
.string "I took my FIGHTING-type POKéMON\n"
|
|
||||||
.string "and raised them to the max.\p"
|
|
||||||
.string "I went at AGATHA feeling pretty\n"
|
|
||||||
.string "confident, but she whupped us.\p"
|
|
||||||
.string "That old lady's also got a really\n"
|
|
||||||
.string "short fuse, too.\p"
|
|
||||||
.string "It doesn't take anything to get\n"
|
|
||||||
.string "that scary lady hollering.$"
|
|
||||||
|
|
||||||
Text_19AB16:: @ 819AB16
|
|
||||||
.string "Maybe becoming an ELITE FOUR\n"
|
|
||||||
.string "member is in the blood.\p"
|
|
||||||
.string "From what I've heard, LANCE has\n"
|
|
||||||
.string "a cousin who's a GYM LEADER\l"
|
|
||||||
.string "somewhere far away.$"
|
|
||||||
|
|
||||||
gUnknown_819AB9B:: @ 819AB9B
|
gUnknown_819AB9B:: @ 819AB9B
|
||||||
.string "My daughter is so self-centered.\n"
|
.string "My daughter is so self-centered.\n"
|
||||||
.string "She has but a few friends.$"
|
.string "She has but a few friends.$"
|
||||||
|
|||||||
@@ -177,12 +177,12 @@ SevenIsland_SevaultCanyon_EventScript_1ACF95:: @ 81ACF95
|
|||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
IndigoPlateau_PokemonCenter_1F_EventScript_1ACFAE:: @ 81ACFAE
|
IndigoPlateau_PokemonCenter_1F_EventScript_BlackBelt:: @ 81ACFAE
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
famechecker FAMECHECKER_AGATHA, 1
|
famechecker FAMECHECKER_AGATHA, 1
|
||||||
famechecker FAMECHECKER_AGATHA, 2
|
famechecker FAMECHECKER_AGATHA, 2
|
||||||
msgbox Text_19A9E7
|
msgbox IndigoPlateau_PokemonCenter_1F_Text_AgathaWhuppedUs
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -235,20 +235,20 @@ CeladonCity_DepartmentStore_2F_EventScript_1AD053:: @ 81AD053
|
|||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
IndigoPlateau_PokemonCenter_1F_EventScript_1AD06C:: @ 81AD06C
|
IndigoPlateau_PokemonCenter_1F_EventScript_PokemonJournal:: @ 81AD06C
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
famechecker FAMECHECKER_LANCE, 4
|
famechecker FAMECHECKER_LANCE, 4
|
||||||
textcolor 3
|
textcolor 3
|
||||||
msgbox gUnknown_81B1A31
|
msgbox PokemonJournal_Text_SpecialFeatureLance
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
IndigoPlateau_PokemonCenter_1F_EventScript_1AD087:: @ 81AD087
|
IndigoPlateau_PokemonCenter_1F_EventScript_CooltrainerM:: @ 81AD087
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
famechecker FAMECHECKER_LANCE, 5
|
famechecker FAMECHECKER_LANCE, 5
|
||||||
msgbox Text_19AB16
|
msgbox IndigoPlateau_PokemonCenter_1F_Text_LancesCousinGymLeaderFarAway
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
PokemonLeague_EventScript_OpenDoor:: @ 81A7506
|
||||||
|
applymovement OBJ_EVENT_ID_PLAYER, Movement_Delay32
|
||||||
|
waitmovement 0
|
||||||
|
playse SE_DOOR
|
||||||
|
call PokemonLeague_EventScript_SetDoorOpen
|
||||||
|
special DrawWholeMapView
|
||||||
|
setflag FLAG_TEMP_4
|
||||||
|
return
|
||||||
|
|
||||||
|
PokemonLeague_EventScript_EnterRoom:: @ 81A751F
|
||||||
|
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkUp5
|
||||||
|
waitmovement 0
|
||||||
|
setflag FLAG_TEMP_2
|
||||||
|
playse SE_KI_GASYAN
|
||||||
|
call PokemonLeague_EventScript_CloseEntry
|
||||||
|
special DrawWholeMapView
|
||||||
|
return
|
||||||
|
|
||||||
|
PokemonLeague_EventScript_SetDoorOpen:: @ 81A7538
|
||||||
|
setmetatile 6, 1, METATILE_PokemonLeague_Door_Top_Open, 1
|
||||||
|
setmetatile 6, 2, METATILE_PokemonLeague_Door_Mid_Open, 0
|
||||||
|
return
|
||||||
|
|
||||||
|
PokemonLeague_EventScript_PreventExit:: @ 81A754B
|
||||||
|
lockall
|
||||||
|
textcolor 0
|
||||||
|
msgbox Text_VoiceRangOutDontRunAway
|
||||||
|
closemessage
|
||||||
|
applymovement OBJ_EVENT_ID_PLAYER, PokemonLeague_Movement_ForcePlayerIn
|
||||||
|
waitmovement 0
|
||||||
|
releaseall
|
||||||
|
end
|
||||||
|
|
||||||
|
PokemonLeague_EventScript_OpenDoorLance:: @ 81A7563
|
||||||
|
applymovement OBJ_EVENT_ID_PLAYER, Movement_Delay32
|
||||||
|
waitmovement 0
|
||||||
|
playse SE_DOOR
|
||||||
|
setmetatile 6, 4, METATILE_PokemonLeague_Door_Top_Open, 1
|
||||||
|
setmetatile 6, 5, METATILE_PokemonLeague_Door_Mid_Open, 0
|
||||||
|
special DrawWholeMapView
|
||||||
|
setflag FLAG_TEMP_4
|
||||||
|
return
|
||||||
|
|
||||||
|
PokemonLeague_EventScript_SetDoorOpenLance:: @ 81A7589
|
||||||
|
setmetatile 6, 4, METATILE_PokemonLeague_Door_Top_Open, 1
|
||||||
|
setmetatile 6, 5, METATILE_PokemonLeague_Door_Mid_Open, 0
|
||||||
|
return
|
||||||
|
|
||||||
|
PokemonLeague_EventScript_CloseEntry:: @ 81A759C
|
||||||
|
setmetatile 5, 11, METATILE_PokemonLeague_Entry_TopLeft_Closed, 1
|
||||||
|
setmetatile 6, 11, METATILE_PokemonLeague_Entry_TopMid_Closed, 1
|
||||||
|
setmetatile 7, 11, METATILE_PokemonLeague_Entry_TopRight_Closed, 1
|
||||||
|
setmetatile 5, 12, METATILE_PokemonLeague_Entry_BottomLeft_Closed, 1
|
||||||
|
setmetatile 6, 12, METATILE_PokemonLeague_Entry_BottomMid_Closed, 1
|
||||||
|
setmetatile 7, 12, METATILE_PokemonLeague_Entry_BottomRight_Closed, 1
|
||||||
|
return
|
||||||
|
|
||||||
|
PokemonLeague_Movement_ForcePlayerIn:: @ 81A75D3
|
||||||
|
walk_up
|
||||||
|
step_end
|
||||||
|
|
||||||
|
PokemonLeague_EventScript_DoLightingEffect:: @ 81A75D5
|
||||||
|
special Special_PokemonLeagueLightingEffect
|
||||||
|
return
|
||||||
@@ -1453,7 +1453,7 @@ gUnknown_81B19A8:: @ 81B19A8
|
|||||||
.string "OAK were rivals who vied for\l"
|
.string "OAK were rivals who vied for\l"
|
||||||
.string "supremacy as TRAINERS.$"
|
.string "supremacy as TRAINERS.$"
|
||||||
|
|
||||||
gUnknown_81B1A31:: @ 81B1A31
|
PokemonJournal_Text_SpecialFeatureLance:: @ 81B1A31
|
||||||
.string "POKéMON JOURNAL\p"
|
.string "POKéMON JOURNAL\p"
|
||||||
.string "Special Feature:\n"
|
.string "Special Feature:\n"
|
||||||
.string "ELITE FOUR's LANCE!\p"
|
.string "ELITE FOUR's LANCE!\p"
|
||||||
|
|||||||
@@ -78,6 +78,17 @@
|
|||||||
#define METATILE_CinnabarGym_Floor_WallLeftEdge 0x2CF
|
#define METATILE_CinnabarGym_Floor_WallLeftEdge 0x2CF
|
||||||
#define METATILE_CinnabarGym_Wall_RetractedBarrier 0x2D1
|
#define METATILE_CinnabarGym_Wall_RetractedBarrier 0x2D1
|
||||||
|
|
||||||
|
// Pokemon League
|
||||||
|
#define METATILE_PokemonLeague_Door_Top_Open 0x28E
|
||||||
|
#define METATILE_PokemonLeague_Door_Mid_Open 0x296
|
||||||
|
#define METATILE_PokemonLeague_Entry_TopLeft_Closed 0x29D
|
||||||
|
#define METATILE_PokemonLeague_Entry_TopMid_Closed 0x29E
|
||||||
|
#define METATILE_PokemonLeague_Entry_TopRight_Closed 0x29F
|
||||||
|
#define METATILE_PokemonLeague_Entry_BottomLeft_Closed 0x2A5
|
||||||
|
#define METATILE_PokemonLeague_Entry_BottomMid_Closed 0x2A6
|
||||||
|
#define METATILE_PokemonLeague_Entry_BottomRight_Closed 0x2A7
|
||||||
|
#define METATILE_PokemonLeague_Floor_ShadeFull_Lance 0x311
|
||||||
|
|
||||||
// gTileset_82D504C. Below metatile probably needs generic name
|
// gTileset_82D504C. Below metatile probably needs generic name
|
||||||
#define METATILE_MtEmber_CaveEntrance 0x346
|
#define METATILE_MtEmber_CaveEntrance 0x346
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user