Document Battle Pike scripts

This commit is contained in:
GriffinR
2019-12-09 02:10:42 -05:00
committed by huderlem
parent b7ab9cbf4c
commit 49f1a90534
14 changed files with 569 additions and 561 deletions
+21 -23
View File
@@ -1,6 +1,4 @@
@ TODO: Add explanatory comments to macros @ Set sRoomType to the next PIKE_ROOM_* id
@
.macro pike_setnextroom .macro pike_setnextroom
setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_ROOM_TYPE setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_ROOM_TYPE
special CallBattlePikeFunction special CallBattlePikeFunction
@@ -25,19 +23,19 @@
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ TRUE if the next room is the last (15th) room, FALSE otherwise
.macro pike_isfinalroom .macro pike_isfinalroom
setvar VAR_0x8004, BATTLE_PIKE_FUNC_IS_FINAL_ROOM setvar VAR_0x8004, BATTLE_PIKE_FUNC_IS_FINAL_ROOM
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Set the object event gfx for the room being entered
.macro pike_setroomobjects .macro pike_setroomobjects
setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_ROOM_OBJECTS setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_ROOM_OBJECTS
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Get the current room type (sRoomType)
.macro pike_getroomtype .macro pike_getroomtype
setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE
special CallBattlePikeFunction special CallBattlePikeFunction
@@ -62,33 +60,33 @@
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Returns the PIKE_STATUS_* to be afflicted for the status room
.macro pike_getstatus .macro pike_getstatus
setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_STATUS setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_STATUS
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Returns the PIKE_STATUSMON_* that attacks the player for the status room
.macro pike_getstatusmon .macro pike_getstatusmon
setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_STATUS_MON setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_STATUS_MON
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Randomly heals either one or two party mons and returns the number of mons healed
.macro pike_healonetwomons .macro pike_healonetwomons
setvar VAR_0x8004, BATTLE_PIKE_FUNC_HEAL_ONE_TWO_MONS setvar VAR_0x8004, BATTLE_PIKE_FUNC_HEAL_ONE_TWO_MONS
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Buffers a message for the lone NPC in the NPC room to gStringVar4
.macro pike_getnpcmsg .macro pike_getnpcmsg
setvar VAR_0x8004, BATTLE_PIKE_FUNC_BUFFER_NPC_MSG setvar VAR_0x8004, BATTLE_PIKE_FUNC_BUFFER_NPC_MSG
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Flashes the screen 3 times for when the Dusclops/Kirlia attacks the player
.macro pike_fadescreen .macro pike_flashscreen
setvar VAR_0x8004, BATTLE_PIKE_FUNC_STATUS_SCREEN_FADE setvar VAR_0x8004, BATTLE_PIKE_FUNC_STATUS_SCREEN_FLASH
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@@ -98,31 +96,31 @@
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ TRUE if its the Pike Queens room @ Set which room to give a hint about. TRUE if its the Pike Queens room next
.macro pike_sethintroom .macro pike_sethintroom
setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HINT_ROOM setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HINT_ROOM
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Get PIKE_ROOM_(LEFT/CENTER/RIGHT) for which room to give a hint about
.macro pike_gethintroomid .macro pike_gethintroomid
setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_HINT_ROOM_ID setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_HINT_ROOM_ID
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Get the PIKE_HINT_* to give about the next room
.macro pike_gethint .macro pike_gethint
setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE_HINT setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE_HINT
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Reset the frontier trainer ids for the start of the challenge
.macro pike_cleartrainerids .macro pike_cleartrainerids
setvar VAR_0x8004, BATTLE_PIKE_FUNC_CLEAR_TRAINER_IDS setvar VAR_0x8004, BATTLE_PIKE_FUNC_CLEAR_TRAINER_IDS
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Buffer the opponents battle intro speech to gStringVar4. \trainer 0 for Trainer A, 1 for Trainer B
.macro pike_gettrainerintro trainer:req .macro pike_gettrainerintro trainer:req
setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_TRAINER_INTRO setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_TRAINER_INTRO
setvar VAR_0x8005, \trainer setvar VAR_0x8005, \trainer
@@ -135,32 +133,32 @@
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Heal 0-2 party mons depending on which room was chosen for the Pike Queen battle. Return the number healed
.macro pike_prequeenheal .macro pike_prequeenheal
setvar VAR_0x8004, BATTLE_PIKE_FUNC_HEAL_MONS_BEFORE_QUEEN setvar VAR_0x8004, BATTLE_PIKE_FUNC_HEAL_MONS_BEFORE_QUEEN
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ When \set is TRUE, prevent healing rooms from appearing (for 1st room or when party is full health). \set FALSE to re-enable healing rooms
.macro pike_nohealing set:req .macro pike_nohealing set:req
setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HEAL_ROOMS_DISABLED setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HEAL_ROOMS_DISABLED
setvar VAR_0x8005, \set setvar VAR_0x8005, \set
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ TRUE if the party is full health (full HP, PP, and no status), FALSE otherwise
.macro pike_ispartyfullhealth .macro pike_ispartyfullhealth
setvar VAR_0x8004, BATTLE_PIKE_FUNC_IS_PARTY_FULL_HEALTH setvar VAR_0x8004, BATTLE_PIKE_FUNC_IS_PARTY_FULL_HEALTH
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Save the party held items in pikeHeldItemsBackup
.macro pike_savehelditems .macro pike_savehelditems
setvar VAR_0x8004, BATTLE_PIKE_FUNC_SAVE_HELD_ITEMS setvar VAR_0x8004, BATTLE_PIKE_FUNC_SAVE_HELD_ITEMS
special CallBattlePikeFunction special CallBattlePikeFunction
.endm .endm
@ @ Restore the party held items from pikeHeldItemsBackup
.macro pike_resethelditems .macro pike_resethelditems
setvar VAR_0x8004, BATTLE_PIKE_FUNC_RESET_HELD_ITEMS setvar VAR_0x8004, BATTLE_PIKE_FUNC_RESET_HELD_ITEMS
special CallBattlePikeFunction special CallBattlePikeFunction
@@ -1,25 +1,25 @@
BattleFrontier_BattlePikeCorridor_MapScripts:: @ 825C771 BattleFrontier_BattlePikeCorridor_MapScripts:: @ 825C771
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeCorridor_MapScript2_25C77C map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeCorridor_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeCorridor_MapScript2_25C7F7 map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeCorridor_OnWarp
.byte 0 .byte 0
BattleFrontier_BattlePikeCorridor_MapScript2_25C77C: @ 825C77C BattleFrontier_BattlePikeCorridor_OnFrame: @ 825C77C
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeCorridor_EventScript_25C786 map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeCorridor_EventScript_EnterCorridor
.2byte 0 .2byte 0
BattleFrontier_BattlePikeCorridor_EventScript_25C786:: @ 825C786 BattleFrontier_BattlePikeCorridor_EventScript_EnterCorridor:: @ 825C786
delay 16 delay 16
frontier_set FRONTIER_DATA_BATTLE_NUM, 1 frontier_set FRONTIER_DATA_BATTLE_NUM, 1
pike_cleartrainerids pike_cleartrainerids
pike_nohealing TRUE pike_nohealing TRUE
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeCorridor_Movement_25C80B applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeCorridor_Movement_PlayerEnterCorridor
applymovement 1, BattleFrontier_BattlePikeCorridor_Movement_25C812 applymovement 1, BattleFrontier_BattlePikeCorridor_Movement_AttendantEnterCorridor
waitmovement 0 waitmovement 0
lockall lockall
msgbox BattleFrontier_BattlePikeCorridor_Text_YourChallengeHasBegun, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeCorridor_Text_YourChallengeHasBegun, MSGBOX_DEFAULT
closemessage closemessage
releaseall releaseall
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeCorridor_Movement_25C80E applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeCorridor_Movement_PlayerExitCorridor
waitmovement 0 waitmovement 0
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 99 frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 99
call BattleFrontier_BattlePike_EventScript_CloseCurtain call BattleFrontier_BattlePike_EventScript_CloseCurtain
@@ -27,27 +27,27 @@ BattleFrontier_BattlePikeCorridor_EventScript_25C786:: @ 825C786
waitstate waitstate
end end
BattleFrontier_BattlePikeCorridor_MapScript2_25C7F7: @ 825C7F7 BattleFrontier_BattlePikeCorridor_OnWarp: @ 825C7F7
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePikeCorridor_EventScript_25C801 map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePikeCorridor_EventScript_TurnPlayerNorth
.2byte 0 .2byte 0
BattleFrontier_BattlePikeCorridor_EventScript_25C801:: @ 825C801 BattleFrontier_BattlePikeCorridor_EventScript_TurnPlayerNorth:: @ 825C801
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end end
BattleFrontier_BattlePikeCorridor_Movement_25C80B: @ 825C80B BattleFrontier_BattlePikeCorridor_Movement_PlayerEnterCorridor: @ 825C80B
walk_up walk_up
walk_up walk_up
step_end step_end
BattleFrontier_BattlePikeCorridor_Movement_25C80E: @ 825C80E BattleFrontier_BattlePikeCorridor_Movement_PlayerExitCorridor: @ 825C80E
walk_up walk_up
walk_up walk_up
set_invisible set_invisible
step_end step_end
BattleFrontier_BattlePikeCorridor_Movement_25C812: @ 825C812 BattleFrontier_BattlePikeCorridor_Movement_AttendantEnterCorridor: @ 825C812
walk_up walk_up
walk_up walk_up
walk_left walk_left
@@ -24,7 +24,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": "BattleFrontier_BattlePikeLobby_EventScript_25B868", "script": "BattleFrontier_BattlePikeLobby_EventScript_Attendant",
"flag": "0" "flag": "0"
}, },
{ {
@@ -37,7 +37,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": "BattleFrontier_BattlePikeLobby_EventScript_25BAAB", "script": "BattleFrontier_BattlePikeLobby_EventScript_Hiker",
"flag": "0" "flag": "0"
}, },
{ {
@@ -50,7 +50,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": "BattleFrontier_BattlePikeLobby_EventScript_25BAB4", "script": "BattleFrontier_BattlePikeLobby_EventScript_Twin",
"flag": "0" "flag": "0"
}, },
{ {
@@ -63,7 +63,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": "BattleFrontier_BattlePikeLobby_EventScript_25BABD", "script": "BattleFrontier_BattlePikeLobby_EventScript_Beauty",
"flag": "0" "flag": "0"
} }
], ],
@@ -98,7 +98,7 @@
"y": 3, "y": 3,
"elevation": 0, "elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "BattleFrontier_BattlePikeLobby_EventScript_25BA80" "script": "BattleFrontier_BattlePikeLobby_EventScript_ShowResults"
}, },
{ {
"type": "sign", "type": "sign",
@@ -106,7 +106,7 @@
"y": 3, "y": 3,
"elevation": 0, "elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "BattleFrontier_BattlePikeLobby_EventScript_25BAC6" "script": "BattleFrontier_BattlePikeLobby_EventScript_RulesBoard"
} }
] ]
} }
@@ -1,33 +1,33 @@
BattleFrontier_BattlePikeLobby_MapScripts:: @ 825B6C6 BattleFrontier_BattlePikeLobby_MapScripts:: @ 825B6C6
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeLobby_MapScript2_25B6D1 map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeLobby_MapScript2_25B6F3 map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeLobby_OnWarp
.byte 0 .byte 0
BattleFrontier_BattlePikeLobby_MapScript2_25B6D1: @ 825B6D1 BattleFrontier_BattlePikeLobby_OnFrame: @ 825B6D1
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeLobby_EventScript_25B707 map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeLobby_EventScript_GetChallengeStatus
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePikeLobby_EventScript_25B710 map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePikeLobby_EventScript_QuitWithoutSaving
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_WON, BattleFrontier_BattlePikeLobby_EventScript_25B762 map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_WON, BattleFrontier_BattlePikeLobby_EventScript_WonChallenge
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_LOST, BattleFrontier_BattlePikeLobby_EventScript_25B806 map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_LOST, BattleFrontier_BattlePikeLobby_EventScript_LostChallenge
.2byte 0 .2byte 0
BattleFrontier_BattlePikeLobby_MapScript2_25B6F3: @ 825B6F3 BattleFrontier_BattlePikeLobby_OnWarp: @ 825B6F3
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePikeLobby_EventScript_25B6FD map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePikeLobby_EventScript_TurnPlayerNorth
.2byte 0 .2byte 0
BattleFrontier_BattlePikeLobby_EventScript_25B6FD:: @ 825B6FD BattleFrontier_BattlePikeLobby_EventScript_TurnPlayerNorth:: @ 825B6FD
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end end
BattleFrontier_BattlePikeLobby_EventScript_25B707:: @ 825B707 BattleFrontier_BattlePikeLobby_EventScript_GetChallengeStatus:: @ 825B707
frontier_getstatus frontier_getstatus
end end
BattleFrontier_BattlePikeLobby_EventScript_25B710:: @ 825B710 BattleFrontier_BattlePikeLobby_EventScript_QuitWithoutSaving:: @ 825B710
special HealPlayerParty special HealPlayerParty
pike_resethelditems pike_resethelditems
lockall lockall
msgbox BattleFrontier_BattlePikeLobby_Text_25C2E0, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_FailedToSaveBeforeQuitting, MSGBOX_DEFAULT
closemessage closemessage
pike_set PIKE_DATA_WIN_STREAK 0 pike_set PIKE_DATA_WIN_STREAK 0
pike_set PIKE_DATA_WIN_STREAK_ACTIVE, FALSE pike_set PIKE_DATA_WIN_STREAK_ACTIVE, FALSE
@@ -36,21 +36,20 @@ BattleFrontier_BattlePikeLobby_EventScript_25B710:: @ 825B710
releaseall releaseall
end end
BattleFrontier_BattlePikeLobby_EventScript_25B762:: @ 825B762 BattleFrontier_BattlePikeLobby_EventScript_WonChallenge:: @ 825B762
lockall lockall
frontier_isbrain frontier_isbrain
compare VAR_RESULT, TRUE compare VAR_RESULT, TRUE
goto_if_eq BattleFrontier_BattlePikeLobby_EventScript_25B784 goto_if_eq BattleFrontier_BattlePikeLobby_EventScript_DefeatedQueen
msgbox BattleFrontier_BattlePikeLobby_Text_25C18A, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_PossessLuckInAbundance, MSGBOX_DEFAULT
waitmessage waitmessage
goto BattleFrontier_BattlePikeLobby_EventScript_25B78D goto BattleFrontier_BattlePikeLobby_EventScript_GiveBattlePoints
BattleFrontier_BattlePikeLobby_EventScript_25B784:: @ 825B784 BattleFrontier_BattlePikeLobby_EventScript_DefeatedQueen:: @ 825B784
msgbox BattleFrontier_BattlePikeLobby_Text_25C383, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_SnatchedVictoryFromQueen, MSGBOX_DEFAULT
waitmessage waitmessage
BattleFrontier_BattlePikeLobby_EventScript_GiveBattlePoints:: @ 825B78D
BattleFrontier_BattlePikeLobby_EventScript_25B78D:: @ 825B78D msgbox BattleFrontier_BattlePikeLobby_Text_AwardYouTheseBattlePoints, MSGBOX_DEFAULT
msgbox BattleFrontier_BattlePikeLobby_Text_25C3D9, MSGBOX_DEFAULT
frontier_givepoints frontier_givepoints
msgbox BattleFrontier_Text_ObtainedXBattlePoints, MSGBOX_GETPOINTS msgbox BattleFrontier_Text_ObtainedXBattlePoints, MSGBOX_GETPOINTS
frontier_checkairshow frontier_checkairshow
@@ -60,20 +59,20 @@ BattleFrontier_BattlePikeLobby_EventScript_25B78D:: @ 825B78D
special LoadPlayerParty special LoadPlayerParty
special HealPlayerParty special HealPlayerParty
pike_resethelditems pike_resethelditems
message BattleFrontier_BattlePikeLobby_Text_25C1DF message BattleFrontier_BattlePikeLobby_Text_ShallRecordResults
waitmessage waitmessage
pike_save 0 pike_save 0
playse SE_SAVE playse SE_SAVE
waitse waitse
msgbox BattleFrontier_BattlePikeLobby_Text_25BE02, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_LookForwardToSeeingYou, MSGBOX_DEFAULT
closemessage closemessage
setvar VAR_TEMP_0, 255 setvar VAR_TEMP_0, 255
releaseall releaseall
end end
BattleFrontier_BattlePikeLobby_EventScript_25B806:: @ 825B806 BattleFrontier_BattlePikeLobby_EventScript_LostChallenge:: @ 825B806
lockall lockall
message BattleFrontier_BattlePikeLobby_Text_25C146 message BattleFrontier_BattlePikeLobby_Text_ChallengeEndedRecordResults
waitmessage waitmessage
frontier_checkairshow frontier_checkairshow
frontier_set FRONTIER_DATA_BATTLE_NUM, 0 frontier_set FRONTIER_DATA_BATTLE_NUM, 0
@@ -84,42 +83,41 @@ BattleFrontier_BattlePikeLobby_EventScript_25B806:: @ 825B806
pike_save 0 pike_save 0
playse SE_SAVE playse SE_SAVE
waitse waitse
msgbox BattleFrontier_BattlePikeLobby_Text_25BE02, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_LookForwardToSeeingYou, MSGBOX_DEFAULT
closemessage closemessage
setvar VAR_TEMP_0, 255 setvar VAR_TEMP_0, 255
releaseall releaseall
end end
BattleFrontier_BattlePikeLobby_EventScript_25B868:: @ 825B868 BattleFrontier_BattlePikeLobby_EventScript_Attendant:: @ 825B868
lock lock
faceplayer faceplayer
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_PIKE setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_PIKE
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
special SavePlayerParty special SavePlayerParty
msgbox BattleFrontier_BattlePikeLobby_Text_25BB52, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_WelcomeToBattlePike, MSGBOX_DEFAULT
BattleFrontier_BattlePikeLobby_EventScript_AskTakeChallenge:: @ 825B87F
BattleFrontier_BattlePikeLobby_EventScript_25B87F:: @ 825B87F message BattleFrontier_BattlePikeLobby_Text_TakeChallenge
message BattleFrontier_BattlePikeLobby_Text_25BBC1
waitmessage waitmessage
multichoice 17, 6, MULTI_CHALLENGEINFO, 0 multichoice 17, 6, MULTI_CHALLENGEINFO, 0
switch VAR_RESULT switch VAR_RESULT
case 0, BattleFrontier_BattlePikeLobby_EventScript_25B8BB case 0, BattleFrontier_BattlePikeLobby_EventScript_TryEnterChallenge
case 1, BattleFrontier_BattlePikeLobby_EventScript_25BA1A case 1, BattleFrontier_BattlePikeLobby_EventScript_ExplainChallenge
case 2, BattleFrontier_BattlePikeLobby_EventScript_25BA76 case 2, BattleFrontier_BattlePikeLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattlePikeLobby_EventScript_25BA76 case MULTI_B_PRESSED, BattleFrontier_BattlePikeLobby_EventScript_CancelChallenge
BattleFrontier_BattlePikeLobby_EventScript_25B8BB:: @ 825B8BB BattleFrontier_BattlePikeLobby_EventScript_TryEnterChallenge:: @ 825B8BB
message BattleFrontier_BattlePikeLobby_Text_25BE35 message BattleFrontier_BattlePikeLobby_Text_WhichChallengeMode
waitmessage waitmessage
multichoice 17, 6, MULTI_LEVEL_MODE, 0 multichoice 17, 6, MULTI_LEVEL_MODE, 0
switch VAR_RESULT switch VAR_RESULT
case FRONTIER_LVL_TENT, BattleFrontier_BattlePikeLobby_EventScript_25BA76 case FRONTIER_LVL_TENT, BattleFrontier_BattlePikeLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattlePikeLobby_EventScript_25BA76 case MULTI_B_PRESSED, BattleFrontier_BattlePikeLobby_EventScript_CancelChallenge
frontier_checkineligible frontier_checkineligible
compare VAR_0x8004, TRUE compare VAR_0x8004, TRUE
goto_if_eq BattleFrontier_BattlePikeLobby_EventScript_25BA27 goto_if_eq BattleFrontier_BattlePikeLobby_EventScript_NotEnoughValidMons
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattlePikeLobby_Text_25C094, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_PleaseChooseThreeMons, MSGBOX_DEFAULT
fadescreen 1 fadescreen 1
call BattleFrontier_EventScript_GetLvlMode call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT copyvar VAR_0x8004, VAR_RESULT
@@ -127,14 +125,14 @@ BattleFrontier_BattlePikeLobby_EventScript_25B8BB:: @ 825B8BB
special ChoosePartyForBattleFrontier special ChoosePartyForBattleFrontier
waitstate waitstate
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattlePikeLobby_EventScript_25BA73 goto_if_eq BattleFrontier_BattlePikeLobby_EventScript_LoadPartyAndCancelChallenge
msgbox BattleFrontier_BattlePikeLobby_Text_25C0D8, MSGBOX_YESNO msgbox BattleFrontier_BattlePikeLobby_Text_SaveBeforeChallenge, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
case NO, BattleFrontier_BattlePikeLobby_EventScript_25BA73 case NO, BattleFrontier_BattlePikeLobby_EventScript_LoadPartyAndCancelChallenge
case YES, BattleFrontier_BattlePikeLobby_EventScript_25B95C case YES, BattleFrontier_BattlePikeLobby_EventScript_SaveBeforeChallenge
case MULTI_B_PRESSED, BattleFrontier_BattlePikeLobby_EventScript_25BA73 case MULTI_B_PRESSED, BattleFrontier_BattlePikeLobby_EventScript_LoadPartyAndCancelChallenge
BattleFrontier_BattlePikeLobby_EventScript_25B95C:: @ 825B95C BattleFrontier_BattlePikeLobby_EventScript_SaveBeforeChallenge:: @ 825B95C
setvar VAR_TEMP_0, 0 setvar VAR_TEMP_0, 0
setvar VAR_TEMP_1, 0 setvar VAR_TEMP_1, 0
frontier_set FRONTIER_DATA_SELECTED_MON_ORDER frontier_set FRONTIER_DATA_SELECTED_MON_ORDER
@@ -150,13 +148,13 @@ BattleFrontier_BattlePikeLobby_EventScript_25B95C:: @ 825B95C
setvar VAR_TEMP_0, 255 setvar VAR_TEMP_0, 255
pike_savehelditems pike_savehelditems
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattlePikeLobby_EventScript_25BA5C goto_if_eq BattleFrontier_BattlePikeLobby_EventScript_CancelChallengeSaveFailed
special SavePlayerParty special SavePlayerParty
frontier_setpartyorder FRONTIER_PARTY_SIZE frontier_setpartyorder FRONTIER_PARTY_SIZE
msgbox BattleFrontier_BattlePikeLobby_Text_25C130, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_StepThisWay, MSGBOX_DEFAULT
closemessage closemessage
frontier_settrainers frontier_settrainers
call BattleFrontier_BattlePikeLobby_EventScript_25BA94 call BattleFrontier_BattlePikeLobby_EventScript_WalkToCorridor
special HealPlayerParty special HealPlayerParty
call BattleFrontier_BattlePike_EventScript_CloseCurtain call BattleFrontier_BattlePike_EventScript_CloseCurtain
warpsilent MAP_BATTLE_FRONTIER_BATTLE_PIKE_CORRIDOR, 255, 6, 7 warpsilent MAP_BATTLE_FRONTIER_BATTLE_PIKE_CORRIDOR, 255, 6, 7
@@ -164,36 +162,36 @@ BattleFrontier_BattlePikeLobby_EventScript_25B95C:: @ 825B95C
waitstate waitstate
end end
BattleFrontier_BattlePikeLobby_EventScript_25BA1A:: @ 825BA1A BattleFrontier_BattlePikeLobby_EventScript_ExplainChallenge:: @ 825BA1A
msgbox BattleFrontier_BattlePikeLobby_Text_25BBF5, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_ExplainBattlePike, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeLobby_EventScript_25B87F goto BattleFrontier_BattlePikeLobby_EventScript_AskTakeChallenge
BattleFrontier_BattlePikeLobby_EventScript_25BA27:: @ 825BA27 BattleFrontier_BattlePikeLobby_EventScript_NotEnoughValidMons:: @ 825BA27
switch VAR_RESULT switch VAR_RESULT
case FRONTIER_LVL_50, BattleFrontier_BattlePikeLobby_EventScript_25BA42 case FRONTIER_LVL_50, BattleFrontier_BattlePikeLobby_EventScript_NotEnoughValidMonsLv50
case FRONTIER_LVL_OPEN, BattleFrontier_BattlePikeLobby_EventScript_25BA4F case FRONTIER_LVL_OPEN, BattleFrontier_BattlePikeLobby_EventScript_NotEnoughValidMonsLvOpen
BattleFrontier_BattlePikeLobby_EventScript_25BA42:: @ 825BA42 BattleFrontier_BattlePikeLobby_EventScript_NotEnoughValidMonsLv50:: @ 825BA42
msgbox BattleFrontier_BattlePikeLobby_Text_25BE8C, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_NotEnoughValidMonsLv50, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeLobby_EventScript_25BA7E goto BattleFrontier_BattlePikeLobby_EventScript_EndCancelChallenge
BattleFrontier_BattlePikeLobby_EventScript_25BA4F:: @ 825BA4F BattleFrontier_BattlePikeLobby_EventScript_NotEnoughValidMonsLvOpen:: @ 825BA4F
msgbox BattleFrontier_BattlePikeLobby_Text_25BF9A, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_NotEnoughValidMonsLvOpen, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeLobby_EventScript_25BA7E goto BattleFrontier_BattlePikeLobby_EventScript_EndCancelChallenge
BattleFrontier_BattlePikeLobby_EventScript_25BA5C:: @ 825BA5C BattleFrontier_BattlePikeLobby_EventScript_CancelChallengeSaveFailed:: @ 825BA5C
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0 frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
goto BattleFrontier_BattlePikeLobby_EventScript_25BA76 goto BattleFrontier_BattlePikeLobby_EventScript_CancelChallenge
BattleFrontier_BattlePikeLobby_EventScript_25BA73:: @ 825BA73 BattleFrontier_BattlePikeLobby_EventScript_LoadPartyAndCancelChallenge:: @ 825BA73
special LoadPlayerParty special LoadPlayerParty
BattleFrontier_BattlePikeLobby_EventScript_25BA76:: @ 825BA76 BattleFrontier_BattlePikeLobby_EventScript_CancelChallenge:: @ 825BA76
msgbox BattleFrontier_BattlePikeLobby_Text_25BE02, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_LookForwardToSeeingYou, MSGBOX_DEFAULT
BattleFrontier_BattlePikeLobby_EventScript_25BA7E:: @ 825BA7E BattleFrontier_BattlePikeLobby_EventScript_EndCancelChallenge:: @ 825BA7E
release release
end end
BattleFrontier_BattlePikeLobby_EventScript_25BA80:: @ 825BA80 BattleFrontier_BattlePikeLobby_EventScript_ShowResults:: @ 825BA80
lockall lockall
frontier_results FRONTIER_FACILITY_PIKE frontier_results FRONTIER_FACILITY_PIKE
waitbuttonpress waitbuttonpress
@@ -201,67 +199,66 @@ BattleFrontier_BattlePikeLobby_EventScript_25BA80:: @ 825BA80
releaseall releaseall
end end
BattleFrontier_BattlePikeLobby_EventScript_25BA94:: @ 825BA94 BattleFrontier_BattlePikeLobby_EventScript_WalkToCorridor:: @ 825BA94
applymovement 1, BattleFrontier_BattlePikeLobby_Movement_25BAA7 applymovement 1, BattleFrontier_BattlePikeLobby_Movement_AttendantWalkToCorridor
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeLobby_Movement_25BAA6 applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeLobby_Movement_PlayerWalkToCorridor
waitmovement 0 waitmovement 0
return return
BattleFrontier_BattlePikeLobby_Movement_25BAA6: @ 825BAA6 BattleFrontier_BattlePikeLobby_Movement_PlayerWalkToCorridor: @ 825BAA6
walk_up walk_up
BattleFrontier_BattlePikeLobby_Movement_AttendantWalkToCorridor: @ 825BAA7
BattleFrontier_BattlePikeLobby_Movement_25BAA7: @ 825BAA7
walk_up walk_up
walk_up walk_up
set_invisible set_invisible
step_end step_end
BattleFrontier_BattlePikeLobby_EventScript_25BAAB:: @ 825BAAB BattleFrontier_BattlePikeLobby_EventScript_Hiker:: @ 825BAAB
msgbox BattleFrontier_BattlePikeLobby_Text_25C422, MSGBOX_NPC msgbox BattleFrontier_BattlePikeLobby_Text_OneRoomAwayFromGoal, MSGBOX_NPC
end end
BattleFrontier_BattlePikeLobby_EventScript_25BAB4:: @ 825BAB4 BattleFrontier_BattlePikeLobby_EventScript_Twin:: @ 825BAB4
msgbox BattleFrontier_BattlePikeLobby_Text_25C4A5, MSGBOX_NPC msgbox BattleFrontier_BattlePikeLobby_Text_NeverHadToBattleTrainer, MSGBOX_NPC
end end
BattleFrontier_BattlePikeLobby_EventScript_25BABD:: @ 825BABD BattleFrontier_BattlePikeLobby_EventScript_Beauty:: @ 825BABD
msgbox BattleFrontier_BattlePikeLobby_Text_25C4FD, MSGBOX_NPC msgbox BattleFrontier_BattlePikeLobby_Text_ThinkAbilitiesUsefulHere, MSGBOX_NPC
end end
BattleFrontier_BattlePikeLobby_EventScript_25BAC6:: @ 825BAC6 BattleFrontier_BattlePikeLobby_EventScript_RulesBoard:: @ 825BAC6
lockall lockall
msgbox BattleFrontier_BattlePikeLobby_Text_25C5FB, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_RulesAreListed, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeLobby_EventScript_25BAD5 goto BattleFrontier_BattlePikeLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattlePikeLobby_EventScript_25BAD5:: @ 825BAD5 BattleFrontier_BattlePikeLobby_EventScript_ReadRulesBoard:: @ 825BAD5
message BattleFrontier_BattlePikeLobby_Text_25C621 message BattleFrontier_BattlePikeLobby_Text_ReadWhichHeading
waitmessage waitmessage
multichoice 16, 4, MULTI_BATTLE_PIKE_RULES, 0 multichoice 16, 4, MULTI_BATTLE_PIKE_RULES, 0
switch VAR_RESULT switch VAR_RESULT
case 0, BattleFrontier_BattlePikeLobby_EventScript_25BB1D case 0, BattleFrontier_BattlePikeLobby_EventScript_RulesPokenavBag
case 1, BattleFrontier_BattlePikeLobby_EventScript_25BB2B case 1, BattleFrontier_BattlePikeLobby_EventScript_RulesHeldItems
case 2, BattleFrontier_BattlePikeLobby_EventScript_25BB39 case 2, BattleFrontier_BattlePikeLobby_EventScript_RulesMonOrder
case 3, BattleFrontier_BattlePikeLobby_EventScript_25BB47 case 3, BattleFrontier_BattlePikeLobby_EventScript_ExitRules
case MULTI_B_PRESSED, BattleFrontier_BattlePikeLobby_EventScript_25BB47 case MULTI_B_PRESSED, BattleFrontier_BattlePikeLobby_EventScript_ExitRules
end end
BattleFrontier_BattlePikeLobby_EventScript_25BB1D:: @ 825BB1D BattleFrontier_BattlePikeLobby_EventScript_RulesPokenavBag:: @ 825BB1D
msgbox BattleFrontier_BattlePikeLobby_Text_25C644, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_ExplainPokenavBagRules, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeLobby_EventScript_25BAD5 goto BattleFrontier_BattlePikeLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattlePikeLobby_EventScript_25BB2B:: @ 825BB2B BattleFrontier_BattlePikeLobby_EventScript_RulesHeldItems:: @ 825BB2B
msgbox BattleFrontier_BattlePikeLobby_Text_25C68A, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_ExplainHeldItemRules, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeLobby_EventScript_25BAD5 goto BattleFrontier_BattlePikeLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattlePikeLobby_EventScript_25BB39:: @ 825BB39 BattleFrontier_BattlePikeLobby_EventScript_RulesMonOrder:: @ 825BB39
msgbox BattleFrontier_BattlePikeLobby_Text_25C6EB, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeLobby_Text_ExplainMonOrderRules, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeLobby_EventScript_25BAD5 goto BattleFrontier_BattlePikeLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattlePikeLobby_EventScript_25BB47:: @ 825BB47 BattleFrontier_BattlePikeLobby_EventScript_ExitRules:: @ 825BB47
releaseall releaseall
end end
@@ -272,17 +269,17 @@ BattleFrontier_BattlePike_EventScript_CloseCurtain:: @ 825BB49
waitse waitse
return return
BattleFrontier_BattlePikeLobby_Text_25BB52: @ 825BB52 BattleFrontier_BattlePikeLobby_Text_WelcomeToBattlePike: @ 825BB52
.string "Where the luck of TRAINERS\n" .string "Where the luck of TRAINERS\n"
.string "is put to the test…\p" .string "is put to the test…\p"
.string "Welcome to the BATTLE PIKE…\p" .string "Welcome to the BATTLE PIKE…\p"
.string "I am your guide to the BATTLE PIKE…$" .string "I am your guide to the BATTLE PIKE…$"
BattleFrontier_BattlePikeLobby_Text_25BBC1: @ 825BBC1 BattleFrontier_BattlePikeLobby_Text_TakeChallenge: @ 825BBC1
.string "Would you like to take the Battle\n" .string "Would you like to take the Battle\n"
.string "Choice challenge?$" .string "Choice challenge?$"
BattleFrontier_BattlePikeLobby_Text_25BBF5: @ 825BBF5 BattleFrontier_BattlePikeLobby_Text_ExplainBattlePike: @ 825BBF5
.string "Here we conduct an event we call\n" .string "Here we conduct an event we call\n"
.string "the Battle Choice.\p" .string "the Battle Choice.\p"
.string "The Battle Choice rules are very\n" .string "The Battle Choice rules are very\n"
@@ -301,16 +298,16 @@ BattleFrontier_BattlePikeLobby_Text_25BBF5: @ 825BBF5
.string "If you don't save before interrupting,\n" .string "If you don't save before interrupting,\n"
.string "you will be disqualified.$" .string "you will be disqualified.$"
BattleFrontier_BattlePikeLobby_Text_25BE02: @ 825BE02 BattleFrontier_BattlePikeLobby_Text_LookForwardToSeeingYou: @ 825BE02
.string "We look forward to seeing you\n" .string "We look forward to seeing you\n"
.string "on another occasion…$" .string "on another occasion…$"
BattleFrontier_BattlePikeLobby_Text_25BE35: @ 825BE35 BattleFrontier_BattlePikeLobby_Text_WhichChallengeMode: @ 825BE35
.string "You have the choice of two courses,\n" .string "You have the choice of two courses,\n"
.string "Level 50 and Open Level.\l" .string "Level 50 and Open Level.\l"
.string "Which will you challenge?$" .string "Which will you challenge?$"
BattleFrontier_BattlePikeLobby_Text_25BE8C: @ 825BE8C BattleFrontier_BattlePikeLobby_Text_NotEnoughValidMonsLv50: @ 825BE8C
.string "I beg your pardon, but…\p" .string "I beg your pardon, but…\p"
.string "You do not have three eligible\n" .string "You do not have three eligible\n"
.string "POKéMON for the Battle Choice event.\p" .string "POKéMON for the Battle Choice event.\p"
@@ -322,7 +319,7 @@ BattleFrontier_BattlePikeLobby_Text_25BE8C: @ 825BE8C
.string "Please come see me when\n" .string "Please come see me when\n"
.string "you are ready…$" .string "you are ready…$"
BattleFrontier_BattlePikeLobby_Text_25BF9A: @ 825BF9A BattleFrontier_BattlePikeLobby_Text_NotEnoughValidMonsLvOpen: @ 825BF9A
.string "I beg your pardon, but…\p" .string "I beg your pardon, but…\p"
.string "You do not have three eligible\n" .string "You do not have three eligible\n"
.string "POKéMON for the Battle Choice event.\p" .string "POKéMON for the Battle Choice event.\p"
@@ -334,98 +331,101 @@ BattleFrontier_BattlePikeLobby_Text_25BF9A: @ 825BF9A
.string "Please come see me when\n" .string "Please come see me when\n"
.string "you are ready…$" .string "you are ready…$"
BattleFrontier_BattlePikeLobby_Text_25C094: @ 825C094 BattleFrontier_BattlePikeLobby_Text_PleaseChooseThreeMons: @ 825C094
.string "Please choose the three POKéMON\n" .string "Please choose the three POKéMON\n"
.string "you wish to enter in the challenge…$" .string "you wish to enter in the challenge…$"
BattleFrontier_BattlePikeLobby_Text_25C0D8: @ 825C0D8 BattleFrontier_BattlePikeLobby_Text_SaveBeforeChallenge: @ 825C0D8
.string "Before starting your Battle Choice\n" .string "Before starting your Battle Choice\n"
.string "challenge, I must save the game.\l" .string "challenge, I must save the game.\l"
.string "Is that acceptable?$" .string "Is that acceptable?$"
BattleFrontier_BattlePikeLobby_Text_25C130: @ 825C130 BattleFrontier_BattlePikeLobby_Text_StepThisWay: @ 825C130
.string "Please step this way…$" .string "Please step this way…$"
BattleFrontier_BattlePikeLobby_Text_25C146: @ 825C146 BattleFrontier_BattlePikeLobby_Text_ChallengeEndedRecordResults: @ 825C146
.string "Your challenge has ended…\p" .string "Your challenge has ended…\p"
.string "I shall record your results.\n" .string "I shall record your results.\n"
.string "Please wait…$" .string "Please wait…$"
BattleFrontier_BattlePikeLobby_Text_25C18A: @ 825C18A BattleFrontier_BattlePikeLobby_Text_PossessLuckInAbundance: @ 825C18A
.string "You have completed the challenge…\p" .string "You have completed the challenge…\p"
.string "I must say… You seem to possess luck\n" .string "I must say… You seem to possess luck\n"
.string "in abundance…$" .string "in abundance…$"
BattleFrontier_BattlePikeLobby_Text_25C1DF: @ 825C1DF BattleFrontier_BattlePikeLobby_Text_ShallRecordResults: @ 825C1DF
.string "I shall record your results.\n" .string "I shall record your results.\n"
.string "Please wait…$" .string "Please wait…$"
BattleFrontier_BattlePikeLobby_Text_25C209: @ 825C209 @ Unused
BattleFrontier_BattlePikeLobby_Text_AwardYouTheseBattlePoints2: @ 825C209
.string "To commemorate your completion of\n" .string "To commemorate your completion of\n"
.string "the Battle Choice challenge, we award\l" .string "the Battle Choice challenge, we award\l"
.string "you these Battle Point(s)…$" .string "you these Battle Point(s)…$"
BattleFrontier_BattlePikeLobby_Text_25C26C: @ 825C26C @ Unused
BattleFrontier_BattlePikeLobby_Text_ReachedBattlePointLimit: @ 825C26C
.string "You appear to have reached the limit\n" .string "You appear to have reached the limit\n"
.string "for Battle Points…\pPlease exchange some Battle Points\n" .string "for Battle Points…\pPlease exchange some Battle Points\n"
.string "for prizes, then return…$" .string "for prizes, then return…$"
BattleFrontier_BattlePikeLobby_Text_25C2E0: @ 825C2E0 BattleFrontier_BattlePikeLobby_Text_FailedToSaveBeforeQuitting: @ 825C2E0
.string "I beg your pardon, but…\p" .string "I beg your pardon, but…\p"
.string "You failed to save before you quit\n" .string "You failed to save before you quit\n"
.string "your challenge the last time.\p" .string "your challenge the last time.\p"
.string "Because of that, your challenge so far\n" .string "Because of that, your challenge so far\n"
.string "has been disqualified. I am sorry…$" .string "has been disqualified. I am sorry…$"
BattleFrontier_BattlePikeLobby_Text_25C383: @ 825C383 BattleFrontier_BattlePikeLobby_Text_SnatchedVictoryFromQueen: @ 825C383
.string "Congratulations…\p" .string "Congratulations…\p"
.string "You have snatched victory from the\n" .string "You have snatched victory from the\n"
.string "PIKE QUEEN and cleared the event…$" .string "PIKE QUEEN and cleared the event…$"
BattleFrontier_BattlePikeLobby_Text_25C3D9: @ 825C3D9 BattleFrontier_BattlePikeLobby_Text_AwardYouTheseBattlePoints: @ 825C3D9
.string "In recognition of your amazing luck,\n" .string "In recognition of your amazing luck,\n"
.string "we award you these Battle Point(s)…$" .string "we award you these Battle Point(s)…$"
BattleFrontier_BattlePikeLobby_Text_25C422: @ 825C422 BattleFrontier_BattlePikeLobby_Text_OneRoomAwayFromGoal: @ 825C422
.string "Arrgh! I blew my chance!\n" .string "Arrgh! I blew my chance!\n"
.string "I was one room away from the goal!\p" .string "I was one room away from the goal!\p"
.string "In this place, you'd better watch out\n" .string "In this place, you'd better watch out\n"
.string "for poison, freezing, and so on.$" .string "for poison, freezing, and so on.$"
BattleFrontier_BattlePikeLobby_Text_25C4A5: @ 825C4A5 BattleFrontier_BattlePikeLobby_Text_NeverHadToBattleTrainer: @ 825C4A5
.string "I've completed the challenge 10 times\n" .string "I've completed the challenge 10 times\n"
.string "now, but I've never had to battle\l" .string "now, but I've never had to battle\l"
.string "a TRAINER once.$" .string "a TRAINER once.$"
BattleFrontier_BattlePikeLobby_Text_25C4FD: @ 825C4FD BattleFrontier_BattlePikeLobby_Text_ThinkAbilitiesUsefulHere: @ 825C4FD
.string "Listen! Listen!\p" .string "Listen! Listen!\p"
.string "Don't you think that the special\n" .string "Don't you think that the special\n"
.string "abilities of POKéMON will be useful\l" .string "abilities of POKéMON will be useful\l"
.string "here?$" .string "here?$"
BattleFrontier_BattlePikeLobby_Text_25C558: @ 825C558 @ Unused
BattleFrontier_BattlePikeLobby_Text_TrainersWhicheverPathIChoose: @ 825C558
.string "What is this weird place?\n" .string "What is this weird place?\n"
.string "I can't figure it out at all!\p" .string "I can't figure it out at all!\p"
.string "I've taken the challenge a bunch\n" .string "I've taken the challenge a bunch\n"
.string "of times, but all I ever do is run into\l" .string "of times, but all I ever do is run into\l"
.string "TRAINERS whichever path I choose.$" .string "TRAINERS whichever path I choose.$"
BattleFrontier_BattlePikeLobby_Text_25C5FB: @ 825C5FB BattleFrontier_BattlePikeLobby_Text_RulesAreListed: @ 825C5FB
.string "The Battle Choice's rules are listed.$" .string "The Battle Choice's rules are listed.$"
BattleFrontier_BattlePikeLobby_Text_25C621: @ 825C621 BattleFrontier_BattlePikeLobby_Text_ReadWhichHeading: @ 825C621
.string "Which heading do you want to read?$" .string "Which heading do you want to read?$"
BattleFrontier_BattlePikeLobby_Text_25C644: @ 825C644 BattleFrontier_BattlePikeLobby_Text_ExplainPokenavBagRules: @ 825C644
.string "The BAG and POKéNAV may not be used\n" .string "The BAG and POKéNAV may not be used\n"
.string "during a Battle Choice challenge.$" .string "during a Battle Choice challenge.$"
BattleFrontier_BattlePikeLobby_Text_25C68A: @ 825C68A BattleFrontier_BattlePikeLobby_Text_ExplainHeldItemRules: @ 825C68A
.string "During a Battle Choice challenge,\n" .string "During a Battle Choice challenge,\n"
.string "any BERRY or HERB held by POKéMON\l" .string "any BERRY or HERB held by POKéMON\l"
.string "will be effective only once.$" .string "will be effective only once.$"
BattleFrontier_BattlePikeLobby_Text_25C6EB: @ 825C6EB BattleFrontier_BattlePikeLobby_Text_ExplainMonOrderRules: @ 825C6EB
.string "During a Battle Choice challenge,\n" .string "During a Battle Choice challenge,\n"
.string "the sequence of POKéMON cannot be\l" .string "the sequence of POKéMON cannot be\l"
.string "changed.\p" .string "changed.\p"
@@ -4,12 +4,12 @@ BattleFrontier_BattlePikeRoomFinal_MapScripts:: @ 825E392
.byte 0 .byte 0
BattleFrontier_BattlePikeRoomFinal_OnFrame: @ 825E39D BattleFrontier_BattlePikeRoomFinal_OnFrame: @ 825E39D
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeRoomFinal_EventScript_25E3A7 map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeRoomFinal_EventScript_EnterRoom
.2byte 0 .2byte 0
BattleFrontier_BattlePikeRoomFinal_EventScript_25E3A7:: @ 825E3A7 BattleFrontier_BattlePikeRoomFinal_EventScript_EnterRoom:: @ 825E3A7
delay 16 delay 16
applymovement 1, BattleFrontier_BattlePikeRoomFinal_Movement_25E3DB applymovement 1, BattleFrontier_BattlePikeRoomFinal_Movement_AttendantApproachPlayer
waitmovement 0 waitmovement 0
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
lockall lockall
@@ -20,7 +20,7 @@ BattleFrontier_BattlePikeRoomFinal_EventScript_25E3A7:: @ 825E3A7
waitstate waitstate
end end
BattleFrontier_BattlePikeRoomFinal_Movement_25E3DB: @ 825E3DB BattleFrontier_BattlePikeRoomFinal_Movement_AttendantApproachPlayer: @ 825E3DB
walk_down walk_down
walk_down walk_down
step_end step_end
@@ -24,7 +24,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": "BattleFrontier_BattlePikeRoomNormal_EventScript_25D7ED", "script": "BattleFrontier_BattlePikeRoomNormal_EventScript_NPC",
"flag": "0" "flag": "0"
}, },
{ {
@@ -37,7 +37,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": "BattleFrontier_BattlePikeRoomNormal_EventScript_25D88D", "script": "BattleFrontier_BattlePikeRoomNormal_EventScript_StatusMon",
"flag": "0" "flag": "0"
} }
], ],
@@ -59,7 +59,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeRoomNormal_EventScript_2C4082" "script": "BattleFrontier_BattlePikeRoomNormal_EventScript_SetEnteredRoom"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -68,7 +68,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_3", "var": "VAR_TEMP_3",
"var_value": "1", "var_value": "1",
"script": "BattleFrontier_BattlePikeRoomNormal_EventScript_2C408D" "script": "BattleFrontier_BattlePikeRoomNormal_EventScript_NoTurningBack"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -77,7 +77,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeRoomNormal_EventScript_2C4082" "script": "BattleFrontier_BattlePikeRoomNormal_EventScript_SetEnteredRoom"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -86,7 +86,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeRoomNormal_EventScript_2C4082" "script": "BattleFrontier_BattlePikeRoomNormal_EventScript_SetEnteredRoom"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -95,7 +95,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_3", "var": "VAR_TEMP_3",
"var_value": "1", "var_value": "1",
"script": "BattleFrontier_BattlePikeRoomNormal_EventScript_2C408D" "script": "BattleFrontier_BattlePikeRoomNormal_EventScript_NoTurningBack"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -104,7 +104,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_3", "var": "VAR_TEMP_3",
"var_value": "1", "var_value": "1",
"script": "BattleFrontier_BattlePikeRoomNormal_EventScript_2C408D" "script": "BattleFrontier_BattlePikeRoomNormal_EventScript_NoTurningBack"
} }
], ],
"bg_events": [] "bg_events": []
File diff suppressed because it is too large Load Diff
@@ -23,7 +23,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_1", "var": "VAR_TEMP_1",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_2C4174" "script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_Exit"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -32,7 +32,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_2C4202" "script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_SetEnteredRoom"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -41,7 +41,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_2C4202" "script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_SetEnteredRoom"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -50,7 +50,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_2C4202" "script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_SetEnteredRoom"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -59,7 +59,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_3", "var": "VAR_TEMP_3",
"var_value": "1", "var_value": "1",
"script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_2C420D" "script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_NoTurningBack"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -68,7 +68,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_3", "var": "VAR_TEMP_3",
"var_value": "1", "var_value": "1",
"script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_2C420D" "script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_NoTurningBack"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -77,7 +77,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_3", "var": "VAR_TEMP_3",
"var_value": "1", "var_value": "1",
"script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_2C420D" "script": "BattleFrontier_BattlePikeRoomWildMons_EventScript_NoTurningBack"
} }
], ],
"bg_events": [] "bg_events": []
@@ -1,44 +1,44 @@
BattleFrontier_BattlePikeRoomWildMons_MapScripts:: @ 825E41A BattleFrontier_BattlePikeRoomWildMons_MapScripts:: @ 825E41A
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePikeRoomWildMons_MapScript1_25E47A map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePikeRoomWildMons_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeRoomWildMons_MapScript2_25E42A map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeRoomWildMons_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeRoomWildMons_MapScript2_25E466 map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeRoomWildMons_OnWarp
.byte 0 .byte 0
BattleFrontier_BattlePikeRoomWildMons_MapScript2_25E42A: @ 825E42A BattleFrontier_BattlePikeRoomWildMons_OnFrame: @ 825E42A
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeRoomWildMons_EventScript_25E43C map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeRoomWildMons_EventScript_SetInWildMonRoom
map_script_2 VAR_TEMP_1, 1, BattleFrontier_BattlePikeRoomWildMons_EventScript_25E44A map_script_2 VAR_TEMP_1, 1, BattleFrontier_BattlePikeRoomWildMons_EventScript_WarpToLobbyLost
.2byte 0 .2byte 0
BattleFrontier_BattlePikeRoomWildMons_EventScript_25E43C:: @ 825E43C BattleFrontier_BattlePikeRoomWildMons_EventScript_SetInWildMonRoom:: @ 825E43C
setvar VAR_TEMP_0, 1 setvar VAR_TEMP_0, 1
pike_inwildmonroom pike_inwildmonroom
end end
BattleFrontier_BattlePikeRoomWildMons_EventScript_25E44A:: @ 825E44A BattleFrontier_BattlePikeRoomWildMons_EventScript_WarpToLobbyLost:: @ 825E44A
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
warp MAP_BATTLE_FRONTIER_BATTLE_PIKE_LOBBY, 255, 5, 6 warp MAP_BATTLE_FRONTIER_BATTLE_PIKE_LOBBY, 255, 5, 6
waitstate waitstate
end end
BattleFrontier_BattlePikeRoomWildMons_MapScript2_25E466: @ 825E466 BattleFrontier_BattlePikeRoomWildMons_OnWarp: @ 825E466
map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeRoomWildMons_EventScript_25E470 map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeRoomWildMons_EventScript_TurnPlayerNorth
.2byte 0 .2byte 0
BattleFrontier_BattlePikeRoomWildMons_EventScript_25E470:: @ 825E470 BattleFrontier_BattlePikeRoomWildMons_EventScript_TurnPlayerNorth:: @ 825E470
setvar VAR_TEMP_4, 1 setvar VAR_TEMP_4, 1
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end end
BattleFrontier_BattlePikeRoomWildMons_MapScript1_25E47A: @ 825E47A BattleFrontier_BattlePikeRoomWildMons_OnResume: @ 825E47A
call BattleFrontier_BattlePikeRoom_EventScript_ResetSketchedMoves call BattleFrontier_BattlePikeRoom_EventScript_ResetSketchedMoves
frontier_get FRONTIER_DATA_BATTLE_OUTCOME frontier_get FRONTIER_DATA_BATTLE_OUTCOME
compare VAR_RESULT, B_OUTCOME_LOST compare VAR_RESULT, B_OUTCOME_LOST
goto_if_eq BattleFrontier_BattlePikeRoomWildMons_EventScript_25E4A3 goto_if_eq BattleFrontier_BattlePikeRoomWildMons_EventScript_SetLost
compare VAR_RESULT, B_OUTCOME_DREW compare VAR_RESULT, B_OUTCOME_DREW
goto_if_eq BattleFrontier_BattlePikeRoomWildMons_EventScript_25E4A3 goto_if_eq BattleFrontier_BattlePikeRoomWildMons_EventScript_SetLost
end end
BattleFrontier_BattlePikeRoomWildMons_EventScript_25E4A3:: @ 825E4A3 BattleFrontier_BattlePikeRoomWildMons_EventScript_SetLost:: @ 825E4A3
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
end end
@@ -24,7 +24,7 @@
"movement_range_y": 0, "movement_range_y": 0,
"trainer_type": "0", "trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_25C908", "script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_Attendant",
"flag": "0" "flag": "0"
}, },
{ {
@@ -77,7 +77,7 @@
"elevation": 0, "elevation": 0,
"var": "VAR_TEMP_3", "var": "VAR_TEMP_3",
"var_value": "1", "var_value": "1",
"script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_2C406D" "script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_NoTurningBack"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -86,7 +86,7 @@
"elevation": 0, "elevation": 0,
"var": "VAR_TEMP_3", "var": "VAR_TEMP_3",
"var_value": "1", "var_value": "1",
"script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_2C406D" "script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_NoTurningBack"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -95,7 +95,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_2C4062" "script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_SetEnteredRoom"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -104,7 +104,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_2C4062" "script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_SetEnteredRoom"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -113,7 +113,7 @@
"elevation": 3, "elevation": 3,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_2C4062" "script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_SetEnteredRoom"
}, },
{ {
"type": "trigger", "type": "trigger",
@@ -122,7 +122,7 @@
"elevation": 0, "elevation": 0,
"var": "VAR_TEMP_3", "var": "VAR_TEMP_3",
"var_value": "1", "var_value": "1",
"script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_2C406D" "script": "BattleFrontier_BattlePikeThreePathRoom_EventScript_NoTurningBack"
} }
], ],
"bg_events": [] "bg_events": []
@@ -5,23 +5,23 @@ BattleFrontier_BattlePikeThreePathRoom_MapScripts:: @ 825C843
.byte 0 .byte 0
BattleFrontier_BattlePikeThreePathRoom_OnFrame: @ 825C853 BattleFrontier_BattlePikeThreePathRoom_OnFrame: @ 825C853
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_CheckChallengeStatus map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_GetChallengeStatus
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpToLobby map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpToLobby
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_PAUSED, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C8A4 map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_PAUSED, BattleFrontier_BattlePikeThreePathRoom_EventScript_ResumeChallenge
map_script_2 VAR_TEMP_5, 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA78 map_script_2 VAR_TEMP_5, 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_SetHintRoom
map_script_2 VAR_TEMP_5, 1, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA97 map_script_2 VAR_TEMP_5, 1, BattleFrontier_BattlePikeThreePathRoom_EventScript_GivePikeQueenHint
.2byte 0 .2byte 0
BattleFrontier_BattlePikeThreePathRoom_OnWarp: @ 825C87D BattleFrontier_BattlePikeThreePathRoom_OnWarp: @ 825C87D
map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C887 map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_TurnPlayerNorth
.2byte 0 .2byte 0
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C887:: @ 825C887 BattleFrontier_BattlePikeThreePathRoom_EventScript_TurnPlayerNorth:: @ 825C887
setvar VAR_TEMP_4, 1 setvar VAR_TEMP_4, 1
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_CheckChallengeStatus:: @ 825C891 BattleFrontier_BattlePikeThreePathRoom_EventScript_GetChallengeStatus:: @ 825C891
frontier_getstatus frontier_getstatus
end end
@@ -30,7 +30,7 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpToLobby:: @ 825C89A
waitstate waitstate
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C8A4:: @ 825C8A4 BattleFrontier_BattlePikeThreePathRoom_EventScript_ResumeChallenge:: @ 825C8A4
lockall lockall
message BattleFrontier_BattlePikeThreePathRoom_Text_AwaitingReturnSaveBeforeResume message BattleFrontier_BattlePikeThreePathRoom_Text_AwaitingReturnSaveBeforeResume
waitmessage waitmessage
@@ -48,76 +48,76 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_25C8A4:: @ 825C8A4
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 99 frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 99
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C908:: @ 825C908 BattleFrontier_BattlePikeThreePathRoom_EventScript_Attendant:: @ 825C908
frontier_get FRONTIER_DATA_BATTLE_NUM @ Room number frontier_get FRONTIER_DATA_BATTLE_NUM @ Room number
switch VAR_RESULT switch VAR_RESULT
case 1, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C968 case 1, BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom1
case 3, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C978 case 3, BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom3
case 5, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C988 case 5, BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom5
case 7, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C998 case 7, BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom7
case 9, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9A8 case 9, BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom9
case 11, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9B8 case 11, BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom11
case 13, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9C8 case 13, BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom13
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C968:: @ 825C968 BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom1:: @ 825C968
lock lock
faceplayer faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom1, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom1, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8 goto BattleFrontier_BattlePikeThreePathRoom_EventScript_AskContinueChallenge
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C978:: @ 825C978 BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom3:: @ 825C978
lock lock
faceplayer faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom3, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom3, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8 goto BattleFrontier_BattlePikeThreePathRoom_EventScript_AskContinueChallenge
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C988:: @ 825C988 BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom5:: @ 825C988
lock lock
faceplayer faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom5, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom5, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8 goto BattleFrontier_BattlePikeThreePathRoom_EventScript_AskContinueChallenge
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C998:: @ 825C998 BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom7:: @ 825C998
lock lock
faceplayer faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom7, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom7, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8 goto BattleFrontier_BattlePikeThreePathRoom_EventScript_AskContinueChallenge
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9A8:: @ 825C9A8 BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom9:: @ 825C9A8
lock lock
faceplayer faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom9, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom9, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8 goto BattleFrontier_BattlePikeThreePathRoom_EventScript_AskContinueChallenge
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9B8:: @ 825C9B8 BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom11:: @ 825C9B8
lock lock
faceplayer faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom11, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom11, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8 goto BattleFrontier_BattlePikeThreePathRoom_EventScript_AskContinueChallenge
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9C8:: @ 825C9C8 BattleFrontier_BattlePikeThreePathRoom_EventScript_AttendantRoom13:: @ 825C9C8
lock lock
faceplayer faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom13, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom13, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8 goto BattleFrontier_BattlePikeThreePathRoom_EventScript_AskContinueChallenge
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8:: @ 825C9D8 BattleFrontier_BattlePikeThreePathRoom_EventScript_AskContinueChallenge:: @ 825C9D8
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_ContinueWithChallenge, MSGBOX_YESNO msgbox BattleFrontier_BattlePikeThreePathRoom_Text_ContinueWithChallenge, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
case NO, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA2A case NO, BattleFrontier_BattlePikeThreePathRoom_EventScript_AskSaveChallenge
case MULTI_B_PRESSED, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA2A case MULTI_B_PRESSED, BattleFrontier_BattlePikeThreePathRoom_EventScript_AskSaveChallenge
release release
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9FD:: @ 825C9FD BattleFrontier_BattlePikeThreePathRoom_EventScript_PauseChallenge:: @ 825C9FD
frontier_saveparty frontier_saveparty
message BattleFrontier_BattlePikeThreePathRoom_Text_SavingYourData message BattleFrontier_BattlePikeThreePathRoom_Text_SavingYourData
waitmessage waitmessage
@@ -129,16 +129,16 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9FD:: @ 825C9FD
frontier_reset frontier_reset
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA2A:: @ 825CA2A BattleFrontier_BattlePikeThreePathRoom_EventScript_AskSaveChallenge:: @ 825CA2A
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_SaveChallengeAndQuit, MSGBOX_YESNO msgbox BattleFrontier_BattlePikeThreePathRoom_Text_SaveChallengeAndQuit, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
case YES, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9FD case YES, BattleFrontier_BattlePikeThreePathRoom_EventScript_PauseChallenge
case NO, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA5A case NO, BattleFrontier_BattlePikeThreePathRoom_EventScript_AskRetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA5A case MULTI_B_PRESSED, BattleFrontier_BattlePikeThreePathRoom_EventScript_AskRetireChallenge
release release
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA5A:: @ 825CA5A BattleFrontier_BattlePikeThreePathRoom_EventScript_AskRetireChallenge:: @ 825CA5A
message BattleFrontier_BattlePikeThreePathRoom_Text_RetireFromChallenge message BattleFrontier_BattlePikeThreePathRoom_Text_RetireFromChallenge
waitmessage waitmessage
multichoicedefault 20, 8, MULTI_YESNO, 1, 0 multichoicedefault 20, 8, MULTI_YESNO, 1, 0
@@ -147,24 +147,24 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA5A:: @ 825CA5A
release release
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA78:: @ 825CA78 BattleFrontier_BattlePikeThreePathRoom_EventScript_SetHintRoom:: @ 825CA78
pike_sethintroom pike_sethintroom
compare VAR_RESULT, TRUE compare VAR_RESULT, TRUE
goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA91 goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_SetPikeQueenHint
setvar VAR_TEMP_5, 255 setvar VAR_TEMP_5, 255
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA91:: @ 825CA91 BattleFrontier_BattlePikeThreePathRoom_EventScript_SetPikeQueenHint:: @ 825CA91
setvar VAR_TEMP_5, 1 setvar VAR_TEMP_5, 1
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA97:: @ 825CA97 BattleFrontier_BattlePikeThreePathRoom_EventScript_GivePikeQueenHint:: @ 825CA97
applymovement 2, BattleFrontier_BattlePikeThreePathRoom_Movement_25CBCE applymovement 2, BattleFrontier_BattlePikeThreePathRoom_Movement_HintGiverApproachPlayer
waitmovement 0 waitmovement 0
lockall lockall
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_TerrifyingEvent, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeThreePathRoom_Text_TerrifyingEvent, MSGBOX_DEFAULT
releaseall releaseall
applymovement 2, BattleFrontier_BattlePikeThreePathRoom_Movement_25CBD5 applymovement 2, BattleFrontier_BattlePikeThreePathRoom_Movement_HintGiverReturnToPos
waitmovement 0 waitmovement 0
setvar VAR_TEMP_5, 255 setvar VAR_TEMP_5, 255
end end
@@ -244,7 +244,7 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveBrainHint:: @ 825CBC2
release release
end end
BattleFrontier_BattlePikeThreePathRoom_Movement_25CBCE: @ 825CBCE BattleFrontier_BattlePikeThreePathRoom_Movement_HintGiverApproachPlayer: @ 825CBCE
walk_left walk_left
walk_left walk_left
walk_down walk_down
@@ -253,7 +253,7 @@ BattleFrontier_BattlePikeThreePathRoom_Movement_25CBCE: @ 825CBCE
walk_down walk_down
step_end step_end
BattleFrontier_BattlePikeThreePathRoom_Movement_25CBD5: @ 825CBD5 BattleFrontier_BattlePikeThreePathRoom_Movement_HintGiverReturnToPos: @ 825CBD5
walk_up walk_up
walk_up walk_up
walk_up walk_up
+33 -33
View File
@@ -6,71 +6,71 @@ BattleFrontier_BattlePikeRoom_OnTransition: @ 82C3E25
pike_setroomobjects pike_setroomobjects
pike_getroomtype pike_getroomtype
switch VAR_RESULT switch VAR_RESULT
case PIKE_ROOM_SINGLE_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_2C3EB1 case PIKE_ROOM_SINGLE_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_SetOneObjectRoomPos
case PIKE_ROOM_HEAL_FULL, BattleFrontier_BattlePikeRoomNormal_EventScript_2C3EB1 case PIKE_ROOM_HEAL_FULL, BattleFrontier_BattlePikeRoomNormal_EventScript_SetOneObjectRoomPos
case PIKE_ROOM_NPC, BattleFrontier_BattlePikeRoomNormal_EventScript_2C3EC0 case PIKE_ROOM_NPC, BattleFrontier_BattlePikeRoomNormal_EventScript_SetNPCRoomObjPos
case PIKE_ROOM_STATUS, BattleFrontier_BattlePikeRoomNormal_EventScript_2C3EA2 case PIKE_ROOM_STATUS, BattleFrontier_BattlePikeRoomNormal_EventScript_SetTwoObjectRoomPos
case PIKE_ROOM_HEAL_PART, BattleFrontier_BattlePikeRoomNormal_EventScript_2C3EB1 case PIKE_ROOM_HEAL_PART, BattleFrontier_BattlePikeRoomNormal_EventScript_SetOneObjectRoomPos
case PIKE_ROOM_DOUBLE_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_2C3E93 case PIKE_ROOM_DOUBLE_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_SetDoubleBattleObjPos
case PIKE_ROOM_HARD_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_2C3EA2 case PIKE_ROOM_HARD_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_SetTwoObjectRoomPos
case PIKE_ROOM_BRAIN, BattleFrontier_BattlePikeRoomNormal_EventScript_2C3ECF case PIKE_ROOM_BRAIN, BattleFrontier_BattlePikeRoomNormal_EventScript_SetBrainRoomObjPos
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_2C3E93:: @ 82C3E93 BattleFrontier_BattlePikeRoomNormal_EventScript_SetDoubleBattleObjPos:: @ 82C3E93
setobjectxyperm 1, 2, 5 setobjectxyperm 1, 2, 5
setobjectxyperm 2, 6, 5 setobjectxyperm 2, 6, 5
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_2C3EA2:: @ 82C3EA2 BattleFrontier_BattlePikeRoomNormal_EventScript_SetTwoObjectRoomPos:: @ 82C3EA2
setobjectxyperm 1, 4, 4 setobjectxyperm 1, 4, 4
setobjectxyperm 2, 3, 4 setobjectxyperm 2, 3, 4
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_2C3EB1:: @ 82C3EB1 BattleFrontier_BattlePikeRoomNormal_EventScript_SetOneObjectRoomPos:: @ 82C3EB1
setobjectxyperm 1, 4, 4 setobjectxyperm 1, 4, 4
setobjectxyperm 2, 0, 0 setobjectxyperm 2, 0, 0
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_2C3EC0:: @ 82C3EC0 BattleFrontier_BattlePikeRoomNormal_EventScript_SetNPCRoomObjPos:: @ 82C3EC0
setobjectxyperm 1, 5, 5 setobjectxyperm 1, 5, 5
setobjectxyperm 2, 0, 0 setobjectxyperm 2, 0, 0
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_2C3ECF:: @ 82C3ECF BattleFrontier_BattlePikeRoomNormal_EventScript_SetBrainRoomObjPos:: @ 82C3ECF
setobjectxyperm 1, 4, 3 setobjectxyperm 1, 4, 3
setobjectxyperm 2, 4, 4 setobjectxyperm 2, 4, 4
end end
BattleFrontier_BattlePikeRoom_OnWarp: @ 82C3EDE BattleFrontier_BattlePikeRoom_OnWarp: @ 82C3EDE
map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeRoomNormal_EventScript_EnterRoom map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeRoomNormal_EventScript_InitRoomObjects
.2byte 0 .2byte 0
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterRoom:: @ 82C3EE8 BattleFrontier_BattlePikeRoomNormal_EventScript_InitRoomObjects:: @ 82C3EE8
setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_LINK_RECEPTIONIST setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_LINK_RECEPTIONIST
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_LINK_RECEPTIONIST setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_LINK_RECEPTIONIST
pike_getroomtype pike_getroomtype
compare VAR_RESULT, PIKE_ROOM_STATUS compare VAR_RESULT, PIKE_ROOM_STATUS
goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_2C3F35 goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_InitTwoObjectRoom
compare VAR_RESULT, PIKE_ROOM_HARD_BATTLE compare VAR_RESULT, PIKE_ROOM_HARD_BATTLE
goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_2C3F35 goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_InitTwoObjectRoom
compare VAR_RESULT, PIKE_ROOM_DOUBLE_BATTLE compare VAR_RESULT, PIKE_ROOM_DOUBLE_BATTLE
goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_2C3F35 goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_InitTwoObjectRoom
compare VAR_RESULT, PIKE_ROOM_BRAIN compare VAR_RESULT, PIKE_ROOM_BRAIN
goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_2C3F3F goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_InitBrainRoomObjects
hideobjectat 2, MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL hideobjectat 2, MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL
setvar VAR_TEMP_4, 1 setvar VAR_TEMP_4, 1
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_2C3F35:: @ 82C3F35 BattleFrontier_BattlePikeRoomNormal_EventScript_InitTwoObjectRoom:: @ 82C3F35
setvar VAR_TEMP_4, 1 setvar VAR_TEMP_4, 1
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_2C3F3F:: @ 82C3F3F BattleFrontier_BattlePikeRoomNormal_EventScript_InitBrainRoomObjects:: @ 82C3F3F
setvar VAR_TEMP_4, 1 setvar VAR_TEMP_4, 1
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
hideobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL hideobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL @ Pike Queen hidden initially
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_LeftRoomWarp:: @ 82C3F4E BattleFrontier_BattlePikeThreePathRoom_EventScript_LeftRoomWarp:: @ 82C3F4E
@@ -125,12 +125,12 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpWildMonRoom:: @ 82C4049
waitstate waitstate
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_2C4062:: @ 82C4062 BattleFrontier_BattlePikeThreePathRoom_EventScript_SetEnteredRoom:: @ 82C4062
setvar VAR_TEMP_3, 1 setvar VAR_TEMP_3, 1
setvar VAR_TEMP_2, 1 setvar VAR_TEMP_2, 1
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_2C406D:: @ 82C406D BattleFrontier_BattlePikeThreePathRoom_EventScript_NoTurningBack:: @ 82C406D
setvar VAR_TEMP_3, 0 setvar VAR_TEMP_3, 0
setvar VAR_TEMP_2, 0 setvar VAR_TEMP_2, 0
lockall lockall
@@ -138,12 +138,12 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_2C406D:: @ 82C406D
closemessage closemessage
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_2C4082:: @ 82C4082 BattleFrontier_BattlePikeRoomNormal_EventScript_SetEnteredRoom:: @ 82C4082
setvar VAR_TEMP_3, 1 setvar VAR_TEMP_3, 1
setvar VAR_TEMP_2, 1 setvar VAR_TEMP_2, 1
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_2C408D:: @ 82C408D BattleFrontier_BattlePikeRoomNormal_EventScript_NoTurningBack:: @ 82C408D
setvar VAR_TEMP_3, 0 setvar VAR_TEMP_3, 0
setvar VAR_TEMP_2, 0 setvar VAR_TEMP_2, 0
lockall lockall
@@ -193,7 +193,7 @@ BattleFrontier_BattlePikeRoom_EventScript_WarpToThreePathRoom:: @ 82C415C
warpsilent MAP_BATTLE_FRONTIER_BATTLE_PIKE_THREE_PATH_ROOM, 255, 6, 10 warpsilent MAP_BATTLE_FRONTIER_BATTLE_PIKE_THREE_PATH_ROOM, 255, 6, 10
return return
BattleFrontier_BattlePikeRoomWildMons_EventScript_2C4174:: @ 82C4174 BattleFrontier_BattlePikeRoomWildMons_EventScript_Exit:: @ 82C4174
pike_exitwildmonroom pike_exitwildmonroom
pike_ispartyfullhealth pike_ispartyfullhealth
compare VAR_RESULT, TRUE compare VAR_RESULT, TRUE
@@ -214,12 +214,12 @@ BattleFrontier_BattlePikeRoomWildMons_EventScript_2C4174:: @ 82C4174
waitstate waitstate
end end
BattleFrontier_BattlePikeRoomWildMons_EventScript_2C4202:: @ 82C4202 BattleFrontier_BattlePikeRoomWildMons_EventScript_SetEnteredRoom:: @ 82C4202
setvar VAR_TEMP_3, 1 setvar VAR_TEMP_3, 1
setvar VAR_TEMP_2, 1 setvar VAR_TEMP_2, 1
end end
BattleFrontier_BattlePikeRoomWildMons_EventScript_2C420D:: @ 82C420D BattleFrontier_BattlePikeRoomWildMons_EventScript_NoTurningBack:: @ 82C420D
setvar VAR_TEMP_3, 0 setvar VAR_TEMP_3, 0
setvar VAR_TEMP_2, 0 setvar VAR_TEMP_2, 0
lockall lockall
@@ -234,14 +234,14 @@ BattleFrontier_BattlePike_EventScript_Retire:: @ 82C4222
end end
BattleFrontier_BattlePikeRoom_OnResume: @ 82C423E BattleFrontier_BattlePikeRoom_OnResume: @ 82C423E
setorcopyvar VAR_0x8006, VAR_RESULT setorcopyvar VAR_0x8006, VAR_RESULT @ Save VAR_RESULT from being overwritten
frontier_get FRONTIER_DATA_CHALLENGE_STATUS frontier_get FRONTIER_DATA_CHALLENGE_STATUS
compare VAR_RESULT, CHALLENGE_STATUS_PAUSED compare VAR_RESULT, CHALLENGE_STATUS_PAUSED
goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_2C426B goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_EndOnResume
compare VAR_RESULT, CHALLENGE_STATUS_SAVING compare VAR_RESULT, CHALLENGE_STATUS_SAVING
goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_2C426B goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_EndOnResume
call BattleFrontier_BattlePikeRoom_EventScript_ResetSketchedMoves call BattleFrontier_BattlePikeRoom_EventScript_ResetSketchedMoves
BattleFrontier_BattlePikeThreePathRoom_EventScript_2C426B:: @ 82C426B BattleFrontier_BattlePikeThreePathRoom_EventScript_EndOnResume:: @ 82C426B
setorcopyvar VAR_RESULT, VAR_0x8006 setorcopyvar VAR_RESULT, VAR_0x8006
end end
+3 -3
View File
@@ -23,8 +23,8 @@
#define PIKE_HINT_BRAIN 4 #define PIKE_HINT_BRAIN 4
// For the room with a status effect. // For the room with a status effect.
#define PIKE_STATUS_KIRLIA 0 #define PIKE_STATUSMON_KIRLIA 0
#define PIKE_STATUS_DUSCLOPS 1 #define PIKE_STATUSMON_DUSCLOPS 1
#define PIKE_STATUS_FREEZE 0 #define PIKE_STATUS_FREEZE 0
#define PIKE_STATUS_BURN 1 #define PIKE_STATUS_BURN 1
@@ -48,7 +48,7 @@
#define BATTLE_PIKE_FUNC_GET_ROOM_STATUS_MON 12 #define BATTLE_PIKE_FUNC_GET_ROOM_STATUS_MON 12
#define BATTLE_PIKE_FUNC_HEAL_ONE_TWO_MONS 13 #define BATTLE_PIKE_FUNC_HEAL_ONE_TWO_MONS 13
#define BATTLE_PIKE_FUNC_BUFFER_NPC_MSG 14 #define BATTLE_PIKE_FUNC_BUFFER_NPC_MSG 14
#define BATTLE_PIKE_FUNC_STATUS_SCREEN_FADE 15 #define BATTLE_PIKE_FUNC_STATUS_SCREEN_FLASH 15
#define BATTLE_PIKE_FUNC_IS_IN 16 #define BATTLE_PIKE_FUNC_IS_IN 16
#define BATTLE_PIKE_FUNC_SET_HINT_ROOM 17 #define BATTLE_PIKE_FUNC_SET_HINT_ROOM 17
#define BATTLE_PIKE_FUNC_GET_HINT_ROOM_ID 18 #define BATTLE_PIKE_FUNC_GET_HINT_ROOM_ID 18
+21 -21
View File
@@ -64,7 +64,7 @@ static void GetRoomInflictedStatus(void);
static void GetRoomInflictedStatusMon(void); static void GetRoomInflictedStatusMon(void);
static void HealOneOrTwoMons(void); static void HealOneOrTwoMons(void);
static void BufferNPCMessage(void); static void BufferNPCMessage(void);
static void StatusInflictionScreenFade(void); static void StatusInflictionScreenFlash(void);
static void GetInBattlePike(void); static void GetInBattlePike(void);
static void SetHintedRoom(void); static void SetHintedRoom(void);
static void GetHintedRoomIndex(void); static void GetHintedRoomIndex(void);
@@ -83,7 +83,7 @@ static void PrepareOneTrainer(bool8 difficult);
static u16 GetNPCRoomGraphicsId(void); static u16 GetNPCRoomGraphicsId(void);
static void PrepareTwoTrainers(void); static void PrepareTwoTrainers(void);
static void TryHealMons(u8 healCount); static void TryHealMons(u8 healCount);
static void Task_DoStatusInflictionScreenFade(u8 taskId); static void Task_DoStatusInflictionScreenFlash(u8 taskId);
static bool8 AtLeastTwoAliveMons(void); static bool8 AtLeastTwoAliveMons(void);
static u8 SpeciesToPikeMonId(u16 species); static u8 SpeciesToPikeMonId(u16 species);
static bool8 CanEncounterWildMon(u8 monLevel); static bool8 CanEncounterWildMon(u8 monLevel);
@@ -495,7 +495,7 @@ static void (* const sBattlePikeFunctions[])(void) =
[BATTLE_PIKE_FUNC_GET_ROOM_STATUS_MON] = GetRoomInflictedStatusMon, [BATTLE_PIKE_FUNC_GET_ROOM_STATUS_MON] = GetRoomInflictedStatusMon,
[BATTLE_PIKE_FUNC_HEAL_ONE_TWO_MONS] = HealOneOrTwoMons, [BATTLE_PIKE_FUNC_HEAL_ONE_TWO_MONS] = HealOneOrTwoMons,
[BATTLE_PIKE_FUNC_BUFFER_NPC_MSG] = BufferNPCMessage, [BATTLE_PIKE_FUNC_BUFFER_NPC_MSG] = BufferNPCMessage,
[BATTLE_PIKE_FUNC_STATUS_SCREEN_FADE] = StatusInflictionScreenFade, [BATTLE_PIKE_FUNC_STATUS_SCREEN_FLASH] = StatusInflictionScreenFlash,
[BATTLE_PIKE_FUNC_IS_IN] = GetInBattlePike, [BATTLE_PIKE_FUNC_IS_IN] = GetInBattlePike,
[BATTLE_PIKE_FUNC_SET_HINT_ROOM] = SetHintedRoom, [BATTLE_PIKE_FUNC_SET_HINT_ROOM] = SetHintedRoom,
[BATTLE_PIKE_FUNC_GET_HINT_ROOM_ID] = GetHintedRoomIndex, [BATTLE_PIKE_FUNC_GET_HINT_ROOM_ID] = GetHintedRoomIndex,
@@ -533,7 +533,7 @@ static const u8 sNumMonsToHealBeforePikeQueen[][3] =
{0, 1, 2}, {0, 1, 2},
}; };
static bool8 (* const sStatusInflictionScreenFadeFuncs[])(struct Task *) = static bool8 (* const sStatusInflictionScreenFlashFuncs[])(struct Task *) =
{ {
StatusInflictionFadeOut, StatusInflictionFadeIn StatusInflictionFadeOut, StatusInflictionFadeIn
}; };
@@ -579,7 +579,7 @@ static void SetupRoomEventObjects(void)
break; break;
case PIKE_ROOM_STATUS: case PIKE_ROOM_STATUS:
objGfx1 = EVENT_OBJ_GFX_GENTLEMAN; objGfx1 = EVENT_OBJ_GFX_GENTLEMAN;
if (sStatusMon == PIKE_STATUS_DUSCLOPS) if (sStatusMon == PIKE_STATUSMON_DUSCLOPS)
objGfx2 = EVENT_OBJ_GFX_DUSCLOPS; objGfx2 = EVENT_OBJ_GFX_DUSCLOPS;
else else
objGfx2 = EVENT_OBJ_GFX_KIRLIA; objGfx2 = EVENT_OBJ_GFX_KIRLIA;
@@ -774,9 +774,9 @@ static void BufferNPCMessage(void)
FrontierSpeechToString(sNPCSpeeches[speechId]); FrontierSpeechToString(sNPCSpeeches[speechId]);
} }
static void StatusInflictionScreenFade(void) static void StatusInflictionScreenFlash(void)
{ {
CreateTask(Task_DoStatusInflictionScreenFade, 2); CreateTask(Task_DoStatusInflictionScreenFlash, 2);
} }
static void HealMon(struct Pokemon *mon) static void HealMon(struct Pokemon *mon)
@@ -946,19 +946,19 @@ static bool8 TryInflictRandomStatus(void)
switch (sStatusFlags) switch (sStatusFlags)
{ {
case STATUS1_FREEZE: case STATUS1_FREEZE:
sStatusMon = PIKE_STATUS_DUSCLOPS; sStatusMon = PIKE_STATUSMON_DUSCLOPS;
break; break;
case STATUS1_BURN: case STATUS1_BURN:
if (Random() % 2 != 0) if (Random() % 2 != 0)
sStatusMon = PIKE_STATUS_DUSCLOPS; sStatusMon = PIKE_STATUSMON_DUSCLOPS;
else else
sStatusMon = PIKE_STATUS_KIRLIA; sStatusMon = PIKE_STATUSMON_KIRLIA;
break; break;
case STATUS1_PARALYSIS: case STATUS1_PARALYSIS:
case STATUS1_SLEEP: case STATUS1_SLEEP:
case STATUS1_TOXIC_POISON: case STATUS1_TOXIC_POISON:
default: default:
sStatusMon = PIKE_STATUS_KIRLIA; sStatusMon = PIKE_STATUSMON_KIRLIA;
break; break;
} }
@@ -1172,9 +1172,9 @@ u8 GetBattlePikeWildMonHeaderId(void)
return headerId; return headerId;
} }
static void DoStatusInflictionScreenFade(u8 taskId) static void DoStatusInflictionScreenFlash(u8 taskId)
{ {
while (sStatusInflictionScreenFadeFuncs[gTasks[taskId].data[0]](&gTasks[taskId])); while (sStatusInflictionScreenFlashFuncs[gTasks[taskId].data[0]](&gTasks[taskId]));
} }
static bool8 StatusInflictionFadeOut(struct Task *task) static bool8 StatusInflictionFadeOut(struct Task *task)
@@ -1211,7 +1211,7 @@ static bool8 StatusInflictionFadeIn(struct Task *task)
{ {
if (--task->data[3] == 0) if (--task->data[3] == 0)
{ {
DestroyTask(FindTaskIdByFunc(DoStatusInflictionScreenFade)); DestroyTask(FindTaskIdByFunc(DoStatusInflictionScreenFlash));
} }
else else
{ {
@@ -1222,9 +1222,9 @@ static bool8 StatusInflictionFadeIn(struct Task *task)
return FALSE; return FALSE;
} }
static void StartStatusInflictionScreenFade(s16 fadeOutDelay, s16 fadeInDelay, s16 numFades, s16 fadeOutSpeed, s16 fadeInSpped) static void StartStatusInflictionScreenFlash(s16 fadeOutDelay, s16 fadeInDelay, s16 numFades, s16 fadeOutSpeed, s16 fadeInSpped)
{ {
u8 taskId = CreateTask(DoStatusInflictionScreenFade, 3); u8 taskId = CreateTask(DoStatusInflictionScreenFlash, 3);
gTasks[taskId].data[1] = fadeOutDelay; gTasks[taskId].data[1] = fadeOutDelay;
gTasks[taskId].data[2] = fadeInDelay; gTasks[taskId].data[2] = fadeInDelay;
@@ -1234,24 +1234,24 @@ static void StartStatusInflictionScreenFade(s16 fadeOutDelay, s16 fadeInDelay, s
gTasks[taskId].data[6] = fadeOutDelay; gTasks[taskId].data[6] = fadeOutDelay;
} }
static bool8 IsStatusInflictionScreenFadeTaskFinished(void) static bool8 IsStatusInflictionScreenFlashTaskFinished(void)
{ {
if (FindTaskIdByFunc(DoStatusInflictionScreenFade) == 0xFF) if (FindTaskIdByFunc(DoStatusInflictionScreenFlash) == 0xFF)
return TRUE; return TRUE;
else else
return FALSE; return FALSE;
} }
static void Task_DoStatusInflictionScreenFade(u8 taskId) static void Task_DoStatusInflictionScreenFlash(u8 taskId)
{ {
if (gTasks[taskId].data[0] == 0) if (gTasks[taskId].data[0] == 0)
{ {
gTasks[taskId].data[0]++; gTasks[taskId].data[0]++;
StartStatusInflictionScreenFade(0, 0, 3, 2, 2); StartStatusInflictionScreenFlash(0, 0, 3, 2, 2);
} }
else else
{ {
if (IsStatusInflictionScreenFadeTaskFinished()) if (IsStatusInflictionScreenFlashTaskFinished())
{ {
EnableBothScriptContexts(); EnableBothScriptContexts();
DestroyTask(taskId); DestroyTask(taskId);