Merge master into ObjEvent rename

This commit is contained in:
GriffinR
2019-12-15 02:00:00 -05:00
49 changed files with 1845 additions and 1829 deletions
+11 -13
View File
@@ -1,5 +1,3 @@
@ TODO: Add explanatory comments to macros
@ Initialize the Battle Factory challenge @ Initialize the Battle Factory challenge
.macro factory_init .macro factory_init
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_INIT setvar VAR_0x8004, BATTLE_FACTORY_FUNC_INIT
@@ -34,68 +32,68 @@
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Select the initial rental mons for the challenge
.macro factory_rentmons .macro factory_rentmons
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SELECT_RENT_MONS setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SELECT_RENT_MONS
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Select a mon to swap for from the previously defeated team
.macro factory_swapmons .macro factory_swapmons
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SWAP_RENT_MONS setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SWAP_RENT_MONS
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Allows FACTORY_DATA_WIN_STREAK_SWAPS to be incremented once
.macro factory_setswapped .macro factory_setswapped
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SET_SWAPPED setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SET_SWAPPED
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Update gEnemyParty with the next set of rental mons
.macro factory_setopponentmons .macro factory_setopponentmons
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SET_OPPONENT_MONS setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SET_OPPONENT_MONS
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Populate gPlayerParty and gEnemyParty with the rental mons. Only needed when resuming a challenge, otherwise only factory_setopponentmons and factory_rentmons/factory_swapmons are needed
.macro factory_setparties arg:req .macro factory_setparties arg:req
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SET_PARTIES setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SET_PARTIES
setvar VAR_0x8005, \arg setvar VAR_0x8005, \arg
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Set the object event gfx for the opponent trainer
.macro factory_setopponentgfx .macro factory_setopponentgfx
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SET_OPPONENT_GFX setvar VAR_0x8004, BATTLE_FACTORY_FUNC_SET_OPPONENT_GFX
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Generate the mons for the opponents team
.macro factory_generateopponentmons .macro factory_generateopponentmons
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_GENERATE_OPPONENT_MONS setvar VAR_0x8004, BATTLE_FACTORY_FUNC_GENERATE_OPPONENT_MONS
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Generate the random 6 mons to choose from for the initial rental
.macro factory_generaterentalmons .macro factory_generaterentalmons
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_GENERATE_RENTAL_MONS setvar VAR_0x8004, BATTLE_FACTORY_FUNC_GENERATE_RENTAL_MONS
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Return the pokemon type most common in the opponents team, or NUMBER_OF_MON_TYPES if there is no standout type
.macro factory_getopponentmontype .macro factory_getopponentmontype
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_GET_OPPONENT_MON_TYPE setvar VAR_0x8004, BATTLE_FACTORY_FUNC_GET_OPPONENT_MON_TYPE
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Return the FACTORY_STYLE_* dependent on what types of moves the opponents team has, or FACTORY_NUM_STYLES if multiple styles tie for the same amount of moves
.macro factory_getopponentstyle .macro factory_getopponentstyle
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_GET_OPPONENT_STYLE setvar VAR_0x8004, BATTLE_FACTORY_FUNC_GET_OPPONENT_STYLE
special CallBattleFactoryFunction special CallBattleFactoryFunction
.endm .endm
@ @ Restore the held items for the players party to what they were pre-battle
.macro factory_resethelditems .macro factory_resethelditems
setvar VAR_0x8004, BATTLE_FACTORY_FUNC_RESET_HELD_ITEMS setvar VAR_0x8004, BATTLE_FACTORY_FUNC_RESET_HELD_ITEMS
special CallBattleFactoryFunction special CallBattleFactoryFunction
+23 -16
View File
@@ -1,5 +1,3 @@
@ TODO: Add explanatory comments to macros
@ Initialize the Battle Pyramid challenge @ Initialize the Battle Pyramid challenge
.macro pyramid_init .macro pyramid_init
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_INIT setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_INIT
@@ -28,37 +26,43 @@
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Set the prize item to give from one of two lists of possible prizes, depending on streak.
.macro pyramid_setprize .macro pyramid_setprize
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_PRIZE setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_PRIZE
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Unused. Give the set prize item to the player. TRUE if room in Bag for prize, FALSE otherwise
.macro pyramid_giveprize
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_GIVE_PRIZE
special CallBattlePyramidFunction
.endm
@ Set the random values for the floor (used to determine object positions, e.g.), and clear trainer flags
.macro pyramid_seedfloor .macro pyramid_seedfloor
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SEED_FLOOR setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SEED_FLOOR
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Set the item to pick up depending on the random seed and quantity (always 1) to the arguments for STD_FIND_ITEM
.macro pyramid_setitem .macro pyramid_setitem
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_ITEM setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_ITEM
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Hide the picked-up item (technically it moves the item far offscreen)
.macro pyramid_hideitem .macro pyramid_hideitem
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_HIDE_ITEM setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_HIDE_ITEM
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Set the facility trainers to gBattleFrontierTrainers
.macro pyramid_inittrainers .macro pyramid_settrainers
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_INIT_TRAINERS setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_TRAINERS
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Show the post-battle hint text
.macro pyramid_showhint .macro pyramid_showhint
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SHOW_HINT_TEXT setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SHOW_HINT_TEXT
special CallBattlePyramidFunction special CallBattlePyramidFunction
@@ -70,28 +74,31 @@
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Update the light around the player. 2 different modes, for setting or incrementing light. See PYRAMID_LIGHT_*
.macro pyramid_updatelight radius:req, mode:req .macro pyramid_updatelight radius:req, mode:req, sound=0xFFFF
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_UPDATE_LIGHT setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_UPDATE_LIGHT
setvar VAR_0x8005, \radius setvar VAR_0x8005, \radius
setvar VAR_0x8006, \mode setvar VAR_0x8006, \mode
.if \sound != 0xFFFF
setvar VAR_0x8007, \sound
.endif
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Reset the held items to what they were at the start of the challenge
.macro pyramid_clearhelditems .macro pyramid_clearhelditems
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_CLEAR_HELD_ITEMS setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_CLEAR_HELD_ITEMS
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Set the palette depending on current floor number
.macro pyramid_setfloorpal .macro pyramid_setfloorpal
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_FLOOR_PALETTE setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_FLOOR_PALETTE
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
@ @ Reset sketched moves and update the party order in the saveblock
.macro pyramid_healparty .macro pyramid_resetparty
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_RESTORE_PARTY setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_RESTORE_PARTY
special CallBattlePyramidFunction special CallBattlePyramidFunction
.endm .endm
+8 -2
View File
@@ -1665,10 +1665,16 @@
callstd \type callstd \type
.endm .endm
.macro giveitem_std item:req, amount=1, function=0 .macro giveitem_std item:req, amount=1
setorcopyvar VAR_0x8000, \item setorcopyvar VAR_0x8000, \item
setorcopyvar VAR_0x8001, \amount setorcopyvar VAR_0x8001, \amount
callstd \function callstd STD_OBTAIN_ITEM
.endm
.macro finditem_std item:req, amount=1
setorcopyvar VAR_0x8000, \item
setorcopyvar VAR_0x8001, \amount
callstd STD_FIND_ITEM
.endm .endm
.macro givedecoration_std decoration:req .macro givedecoration_std decoration:req
+11 -11
View File
@@ -86,16 +86,16 @@ gSpecialVars:: @ 81DBA0C
.include "data/specials.inc" .include "data/specials.inc"
gStdScripts:: @ 81DC2A0 gStdScripts:: @ 81DC2A0
.4byte Std_ObtainItem .4byte Std_ObtainItem @ STD_OBTAIN_ITEM
.4byte Std_FindItem .4byte Std_FindItem @ STD_FIND_ITEM
.4byte Std_MsgboxNPC .4byte Std_MsgboxNPC @ MSGBOX_NPC
.4byte Std_MsgboxSign .4byte Std_MsgboxSign @ MSGBOX_SIGN
.4byte Std_MsgboxDefault .4byte Std_MsgboxDefault @ MSGBOX_DEFAULT
.4byte Std_MsgboxYesNo .4byte Std_MsgboxYesNo @ MSGBOX_YESNO
.4byte Std_MsgboxAutoclose .4byte Std_MsgboxAutoclose @ MSGBOX_AUTOCLOSE
.4byte Std_ObtainDecoration .4byte Std_ObtainDecoration @ STD_OBTAIN_DECORATION
.4byte Std_RegisteredInMatchCall .4byte Std_RegisteredInMatchCall @ STD_REGISTER_MATCH_CALL
.4byte Std_MsgboxGetPoints .4byte Std_MsgboxGetPoints @ MSGBOX_GETPOINTS
.4byte Std_10 .4byte Std_10
gStdScripts_End:: @ 81DC2CC gStdScripts_End:: @ 81DC2CC
@@ -483,7 +483,7 @@ gStdScripts_End:: @ 81DC2CC
.include "data/maps/BattleFrontier_BattlePalaceCorridor/scripts.inc" .include "data/maps/BattleFrontier_BattlePalaceCorridor/scripts.inc"
.include "data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc" .include "data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc" .include "data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc"
.include "data/maps/BattleFrontier_BattlePyramidEmptySquare/scripts.inc" .include "data/maps/BattleFrontier_BattlePyramidFloor/scripts.inc"
.include "data/maps/BattleFrontier_BattlePyramidTop/scripts.inc" .include "data/maps/BattleFrontier_BattlePyramidTop/scripts.inc"
.include "data/maps/BattleFrontier_BattleArenaLobby/scripts.inc" .include "data/maps/BattleFrontier_BattleArenaLobby/scripts.inc"
.include "data/maps/BattleFrontier_BattleArenaCorridor/scripts.inc" .include "data/maps/BattleFrontier_BattleArenaCorridor/scripts.inc"
+4 -4
View File
@@ -3602,14 +3602,14 @@
"blockdata_filepath": "data/layouts/BattleFrontier_BattlePyramidLobby/map.bin" "blockdata_filepath": "data/layouts/BattleFrontier_BattlePyramidLobby/map.bin"
}, },
{ {
"id": "LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE", "id": "LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR",
"name": "BattleFrontier_BattlePyramidEmptySquare_Layout", "name": "BattleFrontier_BattlePyramidFloor_Layout",
"width": 8, "width": 8,
"height": 8, "height": 8,
"primary_tileset": "gTileset_Building", "primary_tileset": "gTileset_Building",
"secondary_tileset": "gTileset_BattlePyramid", "secondary_tileset": "gTileset_BattlePyramid",
"border_filepath": "data/layouts/BattleFrontier_BattlePyramidEmptySquare/border.bin", "border_filepath": "data/layouts/BattleFrontier_BattlePyramidFloor/border.bin",
"blockdata_filepath": "data/layouts/BattleFrontier_BattlePyramidEmptySquare/map.bin" "blockdata_filepath": "data/layouts/BattleFrontier_BattlePyramidFloor/map.bin"
}, },
{ {
"id": "LAYOUT_BATTLE_PYRAMID_SQUARE01", "id": "LAYOUT_BATTLE_PYRAMID_SQUARE01",
@@ -1,15 +1,14 @@
BattleFrontier_BattleDomeLobby_MapScripts:: @ 82497E2 BattleFrontier_BattleDomeLobby_MapScripts:: @ 82497E2
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleDomeLobby_MapScript1_2497F2 map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleDomeLobby_MapScript1_2497F2
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeLobby_MapScript2_24980F map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeLobby_MapScript2_24980F
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleDomeLobby_MapScript2_2497FB map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleDomeLobby_OnWarp
.byte 0 .byte 0
BattleFrontier_BattleDomeLobby_MapScript1_2497F2: @ 82497F2 BattleFrontier_BattleDomeLobby_MapScript1_2497F2: @ 82497F2
dome_21 dome_21
end end
BattleFrontier_BattleDomeLobby_MapScript2_2497FB: @ 82497FB BattleFrontier_BattleDomeLobby_OnWarp: @ 82497FB
BattleFrontier_BattlePyramidLobby_MapScript2_2497FB: @ 82497FB
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleDomeLobby_EventScript_249805 map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleDomeLobby_EventScript_249805
.2byte 0 .2byte 0
@@ -1,81 +1,82 @@
BattleFrontier_BattleFactoryBattleRoom_MapScripts:: @ 825ADAB BattleFrontier_BattleFactoryBattleRoom_MapScripts:: @ 825ADAB
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleFactoryBattleRoom_MapScript1_25ADBB map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleFactoryBattleRoom_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryBattleRoom_MapScript2_25AE00 map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryBattleRoom_OnWarp
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryBattleRoom_MapScript2_25AE31 map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryBattleRoom_OnFrame
.byte 0 .byte 0
BattleFrontier_BattleFactoryBattleRoom_MapScript1_25ADBB: @ 825ADBB @ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden
@ The player is represented instead by object event 8, which has the gfx id VAR_OBJ_GFX_ID_F
BattleFrontier_BattleFactoryBattleRoom_OnTransition: @ 825ADBB
frontier_settrainers frontier_settrainers
checkplayergender checkplayergender
compare VAR_RESULT, MALE compare VAR_RESULT, MALE
call_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE25 call_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_SetPlayerGfxMale
compare VAR_RESULT, FEMALE compare VAR_RESULT, FEMALE
call_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE2B call_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_SetPlayerGfxFemale
frontier_getbrainstatus frontier_getbrainstatus
copyvar VAR_TEMP_F, VAR_RESULT copyvar VAR_TEMP_F, VAR_RESULT
compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25ADF3 goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_SetUpFactoryHeadObj
end end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25ADF3:: @ 825ADF3 BattleFrontier_BattleFactoryBattleRoom_EventScript_SetUpFactoryHeadObj:: @ 825ADF3
call BattleFrontier_EventScript_SetBrainObjectGfx call BattleFrontier_EventScript_SetBrainObjectGfx
setobjectxyperm 2, 7, 9 setobjectxyperm 2, 7, 9
end end
BattleFrontier_BattleFactoryBattleRoom_MapScript2_25AE00: @ 825AE00 BattleFrontier_BattleFactoryBattleRoom_OnWarp: @ 825AE00
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE0A map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleFactoryBattleRoom_EventScript_HideObjects
.2byte 0 .2byte 0
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE0A:: @ 825AE0A BattleFrontier_BattleFactoryBattleRoom_EventScript_HideObjects:: @ 825AE0A
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM hideobjectat OBJ_EVENT_ID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM
compare VAR_TEMP_F, 0 compare VAR_TEMP_F, FRONTIER_BRAIN_NOT_READY
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE24 goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_EndHideObjects
hideobjectat 2, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM hideobjectat 2, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM
BattleFrontier_BattleFactoryBattleRoom_EventScript_EndHideObjects:: @ 825AE24
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE24:: @ 825AE24
end end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE25:: @ 825AE25 BattleFrontier_BattleFactoryBattleRoom_EventScript_SetPlayerGfxMale:: @ 825AE25
setvar VAR_OBJ_GFX_ID_F, OBJ_EVENT_GFX_RIVAL_BRENDAN_NORMAL setvar VAR_OBJ_GFX_ID_F, OBJ_EVENT_GFX_RIVAL_BRENDAN_NORMAL
return return
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE2B:: @ 825AE2B BattleFrontier_BattleFactoryBattleRoom_EventScript_SetPlayerGfxFemale:: @ 825AE2B
setvar VAR_OBJ_GFX_ID_F, OBJ_EVENT_GFX_RIVAL_MAY_NORMAL setvar VAR_OBJ_GFX_ID_F, OBJ_EVENT_GFX_RIVAL_MAY_NORMAL
return return
BattleFrontier_BattleFactoryBattleRoom_MapScript2_25AE31: @ 825AE31 BattleFrontier_BattleFactoryBattleRoom_OnFrame: @ 825AE31
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE67 map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoom
.2byte 0 .2byte 0
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE3B:: @ 825AE3B BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoomFactoryHeadBattle:: @ 825AE3B
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B1E2, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_GetAMoveOn, MSGBOX_DEFAULT
closemessage closemessage
applymovement 2, BattleFrontier_BattleFactoryBattleRoom_Movement_25B18B applymovement 2, BattleFrontier_BattleFactoryBattleRoom_Movement_NolandMoveToBattle
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom
waitmovement 0 waitmovement 0
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B1B4 call BattleFrontier_BattleFactoryBattleRoom_EventScript_ScientistsFaceBattle
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEA7 goto BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleOpponent
end end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE67:: @ 825AE67 BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoom:: @ 825AE67
compare VAR_TEMP_F, 0 compare VAR_TEMP_F, FRONTIER_BRAIN_NOT_READY
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE3B goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoomFactoryHeadBattle
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom
waitmovement 0 waitmovement 0
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B1B4 call BattleFrontier_BattleFactoryBattleRoom_EventScript_ScientistsFaceBattle
factory_setopponentgfx factory_setopponentgfx
removeobject 2 removeobject 2
setobjectxyperm 2, 7, 1 setobjectxyperm 2, 7, 1
addobject 2 addobject 2
applymovement 2, BattleFrontier_BattleFactoryBattleRoom_Movement_25B184 applymovement 2, BattleFrontier_BattleFactoryBattleRoom_Movement_OpponentEnter
waitmovement 0 waitmovement 0
BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleOpponent:: @ 825AEA7
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEA7:: @ 825AEA7 compare VAR_TEMP_F, FRONTIER_BRAIN_NOT_READY
compare VAR_TEMP_F, 0 goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleNoland
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF9C
palace_getopponentintro palace_getopponentintro
lockall lockall
msgbox gStringVar4, MSGBOX_DEFAULT msgbox gStringVar4, MSGBOX_DEFAULT
@@ -88,98 +89,96 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEA7:: @ 825AEA7
special DoSpecialTrainerBattle special DoSpecialTrainerBattle
waitstate waitstate
switch VAR_RESULT switch VAR_RESULT
case 1, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF0F case 1, BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedOpponent
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEF8:: @ 825AEF8 BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyLost:: @ 825AEF8
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25AEF8:: @ 825AEF8
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25B190 goto BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobby
@ goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B190
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF0F:: @ 825AF0F BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedOpponent:: @ 825AF0F
factory_get FACTORY_DATA_WIN_STREAK_SWAPS factory_get FACTORY_DATA_WIN_STREAK_SWAPS
compare VAR_RESULT, MAX_STREAK compare VAR_RESULT, MAX_STREAK
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF3E goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_IncrementWinStreak
addvar VAR_RESULT, 1 addvar VAR_RESULT, 1
setorcopyvar VAR_0x8006, VAR_RESULT setorcopyvar VAR_0x8006, VAR_RESULT
factory_set FACTORY_DATA_WIN_STREAK_SWAPS @ uses VAR_0x8006 above factory_set FACTORY_DATA_WIN_STREAK_SWAPS @ uses VAR_0x8006 above
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF3E:: @ 825AF3E BattleFrontier_BattleFactoryBattleRoom_EventScript_IncrementWinStreak:: @ 825AF3E
call BattleFrontier_EventScript_IncrementWinStreak call BattleFrontier_EventScript_IncrementWinStreak
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF43:: @ 825AF43 BattleFrontier_BattleFactoryBattleRoom_EventScript_IncrementBattleNum:: @ 825AF43
frontier_get FRONTIER_DATA_BATTLE_NUM frontier_get FRONTIER_DATA_BATTLE_NUM
addvar VAR_RESULT, 1 addvar VAR_RESULT, 1
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
switch VAR_RESULT switch VAR_RESULT
case 7, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF85 case 7, BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyWon
setvar VAR_0x8006, 1 setvar VAR_0x8006, 1
warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_PRE_BATTLE_ROOM, 255, 8, 8 warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_PRE_BATTLE_ROOM, 255, 8, 8
waitstate waitstate
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF85:: @ 825AF85 BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyWon:: @ 825AF85
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25B190 goto BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobby
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF9C:: @ 825AF9C BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleNoland:: @ 825AF9C
switch VAR_TEMP_F switch VAR_TEMP_F
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleFactoryBattleRoom_EventScript_25B051 case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleFactoryBattleRoom_EventScript_IntroNolandGold
case FRONTIER_BRAIN_STREAK, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AFEF case FRONTIER_BRAIN_STREAK, BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleNolandSilver
case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattleFactoryBattleRoom_EventScript_25B07E case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleNolandGold
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
compare VAR_RESULT, FALSE compare VAR_RESULT, FALSE
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25AFEF goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleNolandSilver
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B1FB, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_NolandImFactoryHead, MSGBOX_DEFAULT
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AFEF:: @ 825AFEF BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleNolandSilver:: @ 825AFEF
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B3F1, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_ShakeOutKnowledgeBringItOn, MSGBOX_DEFAULT
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B0E0 call BattleFrontier_BattleFactoryBattleRoom_EventScript_DoNolandBattle
compare VAR_RESULT, 1 compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25B00C goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNolandSilver
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEF8 goto BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyLost
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B00C:: @ 825B00C BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNolandSilver:: @ 825B00C
frontier_getsymbols frontier_getsymbols
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105 goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B42D, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_NolandLetsSeeFrontierPass, MSGBOX_DEFAULT
closemessage closemessage
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_25B182 applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerApproachNoland
waitmovement 0 waitmovement 0
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
message BattleFrontier_BattleFactoryBattleRoom_Text_25B460 message BattleFrontier_BattleFactoryBattleRoom_Text_ReceivedKnowledgeSymbol
waitmessage waitmessage
waitfanfare waitfanfare
frontier_givesymbol frontier_givesymbol
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B498, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_NextTimeNoHoldsBarred, MSGBOX_DEFAULT
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105 goto BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B051:: @ 825B051 BattleFrontier_BattleFactoryBattleRoom_EventScript_IntroNolandGold:: @ 825B051
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
compare VAR_RESULT, FALSE compare VAR_RESULT, FALSE
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25B07E goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleNolandGold
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B517, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_HarderLookThanLastTime, MSGBOX_DEFAULT
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B07E:: @ 825B07E BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleNolandGold:: @ 825B07E
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B5CF, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_AllRightBringItOn, MSGBOX_DEFAULT
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B0E0 call BattleFrontier_BattleFactoryBattleRoom_EventScript_DoNolandBattle
compare VAR_RESULT, 1 compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25B09B goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNolandGold
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEF8 goto BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyLost
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B09B:: @ 825B09B BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNolandGold:: @ 825B09B
frontier_getsymbols frontier_getsymbols
compare VAR_RESULT, 2 compare VAR_RESULT, 2
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105 goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B5E7, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_OutOfMyLeagueLetsSeePass, MSGBOX_DEFAULT
waitmessage waitmessage
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_25B182 applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerApproachNoland
waitmovement 0 waitmovement 0
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
message BattleFrontier_BattleFactoryBattleRoom_Text_25B640 message BattleFrontier_BattleFactoryBattleRoom_Text_KnowledgeSymbolTookGoldenShine
waitmessage waitmessage
waitfanfare waitfanfare
frontier_givesymbol frontier_givesymbol
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B66D, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_LastTimeILoseToYou, MSGBOX_DEFAULT
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105 goto BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B0E0:: @ 825B0E0 BattleFrontier_BattleFactoryBattleRoom_EventScript_DoNolandBattle:: @ 825B0E0
closemessage closemessage
frontier_set FRONTIER_DATA_6, 0 frontier_set FRONTIER_DATA_6, 0
special HealPlayerParty special HealPlayerParty
@@ -189,24 +188,24 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25B0E0:: @ 825B0E0
waitstate waitstate
return return
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105:: @ 825B105 BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland:: @ 825B105
factory_get FACTORY_DATA_WIN_STREAK_SWAPS factory_get FACTORY_DATA_WIN_STREAK_SWAPS
compare VAR_RESULT, MAX_STREAK compare VAR_RESULT, MAX_STREAK
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF3E goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_IncrementWinStreak
addvar VAR_RESULT, 1 addvar VAR_RESULT, 1
setorcopyvar VAR_0x8006, VAR_RESULT setorcopyvar VAR_0x8006, VAR_RESULT
factory_set FACTORY_DATA_WIN_STREAK_SWAPS @ uses VAR_0x8006 above factory_set FACTORY_DATA_WIN_STREAK_SWAPS @ uses VAR_0x8006 above
factory_get FACTORY_DATA_WIN_STREAK factory_get FACTORY_DATA_WIN_STREAK
compare VAR_RESULT, MAX_STREAK compare VAR_RESULT, MAX_STREAK
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF43 goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_IncrementBattleNum
addvar VAR_RESULT, 1 addvar VAR_RESULT, 1
factory_set FACTORY_DATA_WIN_STREAK, VAR_RESULT factory_set FACTORY_DATA_WIN_STREAK, VAR_RESULT
frontier_get FRONTIER_DATA_BATTLE_NUM frontier_get FRONTIER_DATA_BATTLE_NUM
addvar VAR_RESULT, 1 addvar VAR_RESULT, 1
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF85 goto BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyWon
end end
BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B: @ 825B17B BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom: @ 825B17B
walk_up walk_up
walk_up walk_up
walk_up walk_up
@@ -215,11 +214,11 @@ BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B: @ 825B17B
face_right face_right
step_end step_end
BattleFrontier_BattleFactoryBattleRoom_Movement_25B182: @ 825B182 BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerApproachNoland: @ 825B182
walk_right walk_right
step_end step_end
BattleFrontier_BattleFactoryBattleRoom_Movement_25B184: @ 825B184 BattleFrontier_BattleFactoryBattleRoom_Movement_OpponentEnter: @ 825B184
walk_down walk_down
walk_down walk_down
walk_down walk_down
@@ -228,28 +227,27 @@ BattleFrontier_BattleFactoryBattleRoom_Movement_25B184: @ 825B184
face_left face_left
step_end step_end
BattleFrontier_BattleFactoryBattleRoom_Movement_25B18B: @ 825B18B BattleFrontier_BattleFactoryBattleRoom_Movement_NolandMoveToBattle: @ 825B18B
walk_up walk_up
walk_up walk_up
walk_up walk_up
face_left face_left
step_end step_end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B190:: @ 825B190 BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobby:: @ 825B190
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B190:: @ 825B190
copyvar VAR_RESULT, VAR_FRONTIER_BATTLE_MODE copyvar VAR_RESULT, VAR_FRONTIER_BATTLE_MODE
compare VAR_RESULT, FRONTIER_MODE_DOUBLES compare VAR_RESULT, FRONTIER_MODE_DOUBLES
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B1AA goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyDoubles
warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_LOBBY, 255, 4, 8 warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_LOBBY, 255, 4, 8
waitstate waitstate
end end
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B1AA:: @ 825B1AA BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyDoubles:: @ 825B1AA
warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_LOBBY, 255, 14, 8 warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_LOBBY, 255, 14, 8
waitstate waitstate
end end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B1B4:: @ 825B1B4 BattleFrontier_BattleFactoryBattleRoom_EventScript_ScientistsFaceBattle:: @ 825B1B4
applymovement 1, Common_Movement_WalkInPlaceFastestRight applymovement 1, Common_Movement_WalkInPlaceFastestRight
applymovement 3, Common_Movement_WalkInPlaceFastestRight applymovement 3, Common_Movement_WalkInPlaceFastestRight
applymovement 4, Common_Movement_WalkInPlaceFastestRight applymovement 4, Common_Movement_WalkInPlaceFastestRight
@@ -259,11 +257,11 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25B1B4:: @ 825B1B4
waitmovement 0 waitmovement 0
return return
BattleFrontier_BattleFactoryBattleRoom_Text_25B1E2: @ 825B1E2 BattleFrontier_BattleFactoryBattleRoom_Text_GetAMoveOn: @ 825B1E2
.string "Hey, hey!\n" .string "Hey, hey!\n"
.string "Get a move on!$" .string "Get a move on!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B1FB: @ 825B1FB BattleFrontier_BattleFactoryBattleRoom_Text_NolandImFactoryHead: @ 825B1FB
.string "Hey, my name's NOLAND!\n" .string "Hey, my name's NOLAND!\n"
.string "I'm basically in charge of this place,\l" .string "I'm basically in charge of this place,\l"
.string "which is why I'm the FACTORY HEAD!\p" .string "which is why I'm the FACTORY HEAD!\p"
@@ -280,26 +278,26 @@ BattleFrontier_BattleFactoryBattleRoom_Text_25B1FB: @ 825B1FB
.string "conditions as you.\p" .string "conditions as you.\p"
.string "I'll be using rental POKéMON, too!$" .string "I'll be using rental POKéMON, too!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B3F1: @ 825B3F1 BattleFrontier_BattleFactoryBattleRoom_Text_ShakeOutKnowledgeBringItOn: @ 825B3F1
.string "Shake out every last bit of your\n" .string "Shake out every last bit of your\n"
.string "knowledge and bring it on!$" .string "knowledge and bring it on!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B42D: @ 825B42D BattleFrontier_BattleFactoryBattleRoom_Text_NolandLetsSeeFrontierPass: @ 825B42D
.string "NOLAND: Smart going!\n" .string "NOLAND: Smart going!\n"
.string "Let's see your FRONTIER PASS.$" .string "Let's see your FRONTIER PASS.$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B460: @ 825B460 BattleFrontier_BattleFactoryBattleRoom_Text_ReceivedKnowledgeSymbol: @ 825B460
.string "The Knowledge Symbol was embossed\n" .string "The Knowledge Symbol was embossed\n"
.string "on the FRONTIER PASS!$" .string "on the FRONTIER PASS!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B498: @ 825B498 BattleFrontier_BattleFactoryBattleRoom_Text_NextTimeNoHoldsBarred: @ 825B498
.string "Heh…\n" .string "Heh…\n"
.string "You're a pretty bright spark…\p" .string "You're a pretty bright spark…\p"
.string "Next time, I'll come after you hard.\n" .string "Next time, I'll come after you hard.\n"
.string "No holds barred, understand?\p" .string "No holds barred, understand?\p"
.string "You keep up your studies!$" .string "You keep up your studies!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B517: @ 825B517 BattleFrontier_BattleFactoryBattleRoom_Text_HarderLookThanLastTime: @ 825B517
.string "NOLAND: Hey, hey! How's it going?\n" .string "NOLAND: Hey, hey! How's it going?\n"
.string "You keeping up with your studies?\p" .string "You keeping up with your studies?\p"
.string "…Oh?\p" .string "…Oh?\p"
@@ -308,21 +306,21 @@ BattleFrontier_BattleFactoryBattleRoom_Text_25B517: @ 825B517
.string "Now, this should be fun!\n" .string "Now, this should be fun!\n"
.string "I'm getting excited, hey!$" .string "I'm getting excited, hey!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B5CF: @ 825B5CF BattleFrontier_BattleFactoryBattleRoom_Text_AllRightBringItOn: @ 825B5CF
.string "All right!\n" .string "All right!\n"
.string "Bring it on!$" .string "Bring it on!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B5E7: @ 825B5E7 BattleFrontier_BattleFactoryBattleRoom_Text_OutOfMyLeagueLetsSeePass: @ 825B5E7
.string "NOLAND: What the…\n" .string "NOLAND: What the…\n"
.string "You're getting out of my league!\p" .string "You're getting out of my league!\p"
.string "Sheesh!\n" .string "Sheesh!\n"
.string "Let's see that FRONTIER PASS!$" .string "Let's see that FRONTIER PASS!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B640: @ 825B640 BattleFrontier_BattleFactoryBattleRoom_Text_KnowledgeSymbolTookGoldenShine: @ 825B640
.string "The Knowledge Symbol took on\n" .string "The Knowledge Symbol took on\n"
.string "a golden shine!$" .string "a golden shine!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B66D: @ 825B66D BattleFrontier_BattleFactoryBattleRoom_Text_LastTimeILoseToYou: @ 825B66D
.string "Pfft, man!\p" .string "Pfft, man!\p"
.string "That's absolutely the last time\n" .string "That's absolutely the last time\n"
.string "I lose to you!\p" .string "I lose to you!\p"
@@ -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_BattleFactoryLobby_EventScript_2585CB", "script": "BattleFrontier_BattleFactoryLobby_EventScript_SinglesAttendant",
"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_BattleFactoryLobby_EventScript_258813", "script": "BattleFrontier_BattleFactoryLobby_EventScript_Woman",
"flag": "0" "flag": "0"
}, },
{ {
@@ -50,7 +50,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_BattleFactoryLobby_EventScript_25881C", "script": "BattleFrontier_BattleFactoryLobby_EventScript_Camper",
"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_BattleFactoryLobby_EventScript_258825", "script": "BattleFrontier_BattleFactoryLobby_EventScript_Picnicker",
"flag": "0" "flag": "0"
}, },
{ {
@@ -76,7 +76,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_BattleFactoryLobby_EventScript_258830", "script": "BattleFrontier_BattleFactoryLobby_EventScript_FatMan",
"flag": "0" "flag": "0"
}, },
{ {
@@ -89,7 +89,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_BattleFactoryLobby_EventScript_2585DD", "script": "BattleFrontier_BattleFactoryLobby_EventScript_DoublesAttendant",
"flag": "0" "flag": "0"
} }
], ],
@@ -117,7 +117,7 @@
"y": 7, "y": 7,
"elevation": 0, "elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH", "player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
"script": "BattleFrontier_BattleFactoryLobby_EventScript_2587E1" "script": "BattleFrontier_BattleFactoryLobby_EventScript_ShowSinglesResults"
}, },
{ {
"type": "sign", "type": "sign",
@@ -125,7 +125,7 @@
"y": 7, "y": 7,
"elevation": 0, "elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH", "player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
"script": "BattleFrontier_BattleFactoryLobby_EventScript_2587FA" "script": "BattleFrontier_BattleFactoryLobby_EventScript_ShowDoublesResults"
}, },
{ {
"type": "sign", "type": "sign",
@@ -133,7 +133,7 @@
"y": 4, "y": 4,
"elevation": 0, "elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "BattleFrontier_BattleFactoryLobby_EventScript_258839" "script": "BattleFrontier_BattleFactoryLobby_EventScript_RulesBoard"
} }
] ]
} }
@@ -1,32 +1,32 @@
BattleFrontier_BattleFactoryLobby_MapScripts:: @ 82583E8 BattleFrontier_BattleFactoryLobby_MapScripts:: @ 82583E8
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryLobby_MapScript2_258407 map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryLobby_MapScript2_2583F3 map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryLobby_OnWarp
.byte 0 .byte 0
BattleFrontier_BattleFactoryLobby_MapScript2_2583F3: @ 82583F3 BattleFrontier_BattleFactoryLobby_OnWarp: @ 82583F3
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleFactoryLobby_EventScript_2583FD map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleFactoryLobby_EventScript_TurnPlayerNorth
.2byte 0 .2byte 0
BattleFrontier_BattleFactoryLobby_EventScript_2583FD:: @ 82583FD BattleFrontier_BattleFactoryLobby_EventScript_TurnPlayerNorth:: @ 82583FD
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
end end
BattleFrontier_BattleFactoryLobby_MapScript2_258407: @ 8258407 BattleFrontier_BattleFactoryLobby_OnFrame: @ 8258407
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleFactoryLobby_EventScript_258431 map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleFactoryLobby_EventScript_GetChallengeStatus
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_SAVING, BattleFrontier_BattleFactoryLobby_EventScript_25843A map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_SAVING, BattleFrontier_BattleFactoryLobby_EventScript_QuitWithoutSaving
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_PAUSED, BattleFrontier_BattleFactoryLobby_EventScript_258592 map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_PAUSED, BattleFrontier_BattleFactoryLobby_EventScript_ResumeChallenge
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_WON, BattleFrontier_BattleFactoryLobby_EventScript_25849B map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_WON, BattleFrontier_BattleFactoryLobby_EventScript_WonChallenge
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_LOST, BattleFrontier_BattleFactoryLobby_EventScript_258506 map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_LOST, BattleFrontier_BattleFactoryLobby_EventScript_LostChallenge
.2byte 0 .2byte 0
BattleFrontier_BattleFactoryLobby_EventScript_258431:: @ 8258431 BattleFrontier_BattleFactoryLobby_EventScript_GetChallengeStatus:: @ 8258431
frontier_getstatus frontier_getstatus
end end
BattleFrontier_BattleFactoryLobby_EventScript_25843A:: @ 825843A BattleFrontier_BattleFactoryLobby_EventScript_QuitWithoutSaving:: @ 825843A
lockall lockall
msgbox BattleFrontier_BattleFactoryLobby_Text_258ECA, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_DidntSaveBeforeQuitting, MSGBOX_DEFAULT
closemessage closemessage
factory_setswapped factory_setswapped
factory_set FACTORY_DATA_WIN_STREAK_SWAPS, 0 factory_set FACTORY_DATA_WIN_STREAK_SWAPS, 0
@@ -37,36 +37,35 @@ BattleFrontier_BattleFactoryLobby_EventScript_25843A:: @ 825843A
releaseall releaseall
end end
BattleFrontier_BattleFactoryLobby_EventScript_25849B:: @ 825849B BattleFrontier_BattleFactoryLobby_EventScript_WonChallenge:: @ 825849B
lockall lockall
frontier_isbrain frontier_isbrain
compare VAR_RESULT, TRUE compare VAR_RESULT, TRUE
goto_if_eq BattleFrontier_BattleFactoryLobby_EventScript_2584BD goto_if_eq BattleFrontier_BattleFactoryLobby_EventScript_DefeatedFactoryHead
msgbox BattleFrontier_BattleFactoryLobby_Text_258D93, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_CongratsSevenWins, MSGBOX_DEFAULT
waitmessage waitmessage
goto BattleFrontier_BattleFactoryLobby_EventScript_2584C6 goto BattleFrontier_BattleFactoryLobby_EventScript_GiveBattlePoints
BattleFrontier_BattleFactoryLobby_EventScript_2584BD:: @ 82584BD BattleFrontier_BattleFactoryLobby_EventScript_DefeatedFactoryHead:: @ 82584BD
msgbox BattleFrontier_BattleFactoryLobby_Text_25926A, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_CongratsForDefeatingHead, MSGBOX_DEFAULT
waitmessage waitmessage
BattleFrontier_BattleFactoryLobby_EventScript_GiveBattlePoints:: @ 82584C6
BattleFrontier_BattleFactoryLobby_EventScript_2584C6:: @ 82584C6 msgbox BattleFrontier_BattleFactoryLobby_Text_AwardBattlePoints, MSGBOX_DEFAULT
msgbox BattleFrontier_BattleFactoryLobby_Text_2592BD, MSGBOX_DEFAULT
frontier_givepoints frontier_givepoints
msgbox BattleFrontier_Text_ObtainedXBattlePoints, MSGBOX_GETPOINTS msgbox BattleFrontier_Text_ObtainedXBattlePoints, MSGBOX_GETPOINTS
message BattleFrontier_BattleFactoryLobby_Text_259323 message BattleFrontier_BattleFactoryLobby_Text_ExchangeMonsAndSave
waitmessage waitmessage
frontier_checkairshow frontier_checkairshow
special LoadPlayerParty special LoadPlayerParty
factory_save 0 factory_save 0
playse SE_SAVE playse SE_SAVE
waitse waitse
goto BattleFrontier_BattleFactoryLobby_EventScript_25853B goto BattleFrontier_BattleFactoryLobby_EventScript_AskRecordBattle
end end
BattleFrontier_BattleFactoryLobby_EventScript_258506:: @ 8258506 BattleFrontier_BattleFactoryLobby_EventScript_LostChallenge:: @ 8258506
lockall lockall
message BattleFrontier_BattleFactoryLobby_Text_258CC7 message BattleFrontier_BattleFactoryLobby_Text_ReturnMonsSaveResults
waitmessage waitmessage
frontier_checkairshow frontier_checkairshow
special LoadPlayerParty special LoadPlayerParty
@@ -75,30 +74,30 @@ BattleFrontier_BattleFactoryLobby_EventScript_258506:: @ 8258506
playse SE_SAVE playse SE_SAVE
waitse waitse
BattleFrontier_BattleFactoryLobby_EventScript_25853B:: @ 825853B BattleFrontier_BattleFactoryLobby_EventScript_AskRecordBattle:: @ 825853B
call BattleFrontier_BattleFactoryLobby_EventScript_23E8E0 call BattleFrontier_BattleFactoryLobby_EventScript_23E8E0
compare VAR_RESULT, 1 compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleFactoryLobby_EventScript_258582 goto_if_eq BattleFrontier_BattleFactoryLobby_EventScript_EndRecordBattle
message BattleFrontier_BattleFactoryLobby_Text_259388 message BattleFrontier_BattleFactoryLobby_Text_RecordLastMatch
waitmessage waitmessage
multichoicedefault 20, 8, MULTI_YESNO, 1, 0 multichoicedefault 20, 8, MULTI_YESNO, 1, 0
switch VAR_RESULT switch VAR_RESULT
case 1, BattleFrontier_BattleFactoryLobby_EventScript_258582 case 1, BattleFrontier_BattleFactoryLobby_EventScript_EndRecordBattle
case 0, BattleFrontier_BattleFactoryLobby_EventScript_25857D case 0, BattleFrontier_BattleFactoryLobby_EventScript_RecordBattle
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_258582 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_EndRecordBattle
BattleFrontier_BattleFactoryLobby_EventScript_25857D:: @ 825857D BattleFrontier_BattleFactoryLobby_EventScript_RecordBattle:: @ 825857D
call BattleFrontier_EventScript_SaveBattle call BattleFrontier_EventScript_SaveBattle
BattleFrontier_BattleFactoryLobby_EventScript_258582:: @ 8258582 BattleFrontier_BattleFactoryLobby_EventScript_EndRecordBattle:: @ 8258582
msgbox BattleFrontier_BattleFactoryLobby_Text_258BC5, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_LookForwardToNextVisit, MSGBOX_DEFAULT
closemessage closemessage
setvar VAR_TEMP_0, 255 setvar VAR_TEMP_0, 255
releaseall releaseall
end end
BattleFrontier_BattleFactoryLobby_EventScript_258592:: @ 8258592 BattleFrontier_BattleFactoryLobby_EventScript_ResumeChallenge:: @ 8258592
lockall lockall
message BattleFrontier_BattleFactoryLobby_Text_258E77 message BattleFrontier_BattleFactoryLobby_Text_WaitingForYouToResume
waitmessage waitmessage
factory_save CHALLENGE_STATUS_SAVING factory_save CHALLENGE_STATUS_SAVING
playse SE_SAVE playse SE_SAVE
@@ -106,57 +105,56 @@ BattleFrontier_BattleFactoryLobby_EventScript_258592:: @ 8258592
frontier_set FRONTIER_DATA_PAUSED, FALSE frontier_set FRONTIER_DATA_PAUSED, FALSE
setvar VAR_TEMP_0, 255 setvar VAR_TEMP_0, 255
setvar VAR_0x8006, 2 setvar VAR_0x8006, 2
goto BattleFrontier_BattleFactoryLobby_EventScript_25871A goto BattleFrontier_BattleFactoryLobby_EventScript_EnterChallenge
BattleFrontier_BattleFactoryLobby_EventScript_2585CB:: @ 82585CB BattleFrontier_BattleFactoryLobby_EventScript_SinglesAttendant:: @ 82585CB
lock lock
faceplayer faceplayer
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_FACTORY setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_FACTORY
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
goto BattleFrontier_BattleFactoryLobby_EventScript_2585ED goto BattleFrontier_BattleFactoryLobby_EventScript_Attendant
end end
BattleFrontier_BattleFactoryLobby_EventScript_2585DD:: @ 82585DD BattleFrontier_BattleFactoryLobby_EventScript_DoublesAttendant:: @ 82585DD
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_FACTORY setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_FACTORY
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
goto BattleFrontier_BattleFactoryLobby_EventScript_2585ED goto BattleFrontier_BattleFactoryLobby_EventScript_Attendant
end end
BattleFrontier_BattleFactoryLobby_EventScript_2585ED:: @ 82585ED BattleFrontier_BattleFactoryLobby_EventScript_Attendant:: @ 82585ED
special SavePlayerParty special SavePlayerParty
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_2587B1 call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_WelcomeForSingleBattle
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_2587BA call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_WelcomeForDoubleBattle
BattleFrontier_BattleFactoryLobby_EventScript_AskTakeChallenge:: @ 8258606
BattleFrontier_BattleFactoryLobby_EventScript_258606:: @ 8258606
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_2587C3 call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_TakeSinglesChallenge
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_2587C9 call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_TakeDoublesChallenge
waitmessage waitmessage
multichoice 17, 6, MULTI_CHALLENGEINFO, 0 multichoice 17, 6, MULTI_CHALLENGEINFO, 0
switch VAR_RESULT switch VAR_RESULT
case 0, BattleFrontier_BattleFactoryLobby_EventScript_258653 case 0, BattleFrontier_BattleFactoryLobby_EventScript_TryEnterChallenge
case 1, BattleFrontier_BattleFactoryLobby_EventScript_258768 case 1, BattleFrontier_BattleFactoryLobby_EventScript_ExplainChallenge
case 2, BattleFrontier_BattleFactoryLobby_EventScript_25879D case 2, BattleFrontier_BattleFactoryLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_25879D case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_CancelChallenge
BattleFrontier_BattleFactoryLobby_EventScript_258653:: @ 8258653 BattleFrontier_BattleFactoryLobby_EventScript_TryEnterChallenge:: @ 8258653
message BattleFrontier_BattleFactoryLobby_Text_258BE9 message BattleFrontier_BattleFactoryLobby_Text_WhichLevelMode
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_BattleFactoryLobby_EventScript_25879D case FRONTIER_LVL_TENT, BattleFrontier_BattleFactoryLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_25879D case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_CancelChallenge
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattleFactoryLobby_Text_258C27, MSGBOX_YESNO msgbox BattleFrontier_BattleFactoryLobby_Text_OkayToSaveBeforeChallenge, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
case NO, BattleFrontier_BattleFactoryLobby_EventScript_25879A case NO, BattleFrontier_BattleFactoryLobby_EventScript_LoadPartyAndCancelChallenge
case YES, BattleFrontier_BattleFactoryLobby_EventScript_2586B9 case YES, BattleFrontier_BattleFactoryLobby_EventScript_SaveBeforeChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_25879A case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_LoadPartyAndCancelChallenge
BattleFrontier_BattleFactoryLobby_EventScript_2586B9:: @ 82586B9 BattleFrontier_BattleFactoryLobby_EventScript_SaveBeforeChallenge:: @ 82586B9
setvar VAR_TEMP_0, 0 setvar VAR_TEMP_0, 0
factory_init factory_init
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_SAVING frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_SAVING
@@ -167,90 +165,89 @@ BattleFrontier_BattleFactoryLobby_EventScript_2586B9:: @ 82586B9
call Common_EventScript_SaveGame call Common_EventScript_SaveGame
setvar VAR_TEMP_0, 255 setvar VAR_TEMP_0, 255
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleFactoryLobby_EventScript_258783 goto_if_eq BattleFrontier_BattleFactoryLobby_EventScript_CancelChallengeSaveFailed
setvar VAR_0x8006, 0 setvar VAR_0x8006, 0
BattleFrontier_BattleFactoryLobby_EventScript_EnterChallenge:: @ 825871A
BattleFrontier_BattleFactoryLobby_EventScript_25871A:: @ 825871A
special SavePlayerParty special SavePlayerParty
msgbox BattleFrontier_BattleFactoryLobby_Text_258CB1, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_StepThisWay, MSGBOX_DEFAULT
closemessage closemessage
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_25875C call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_TalkedToSinglesAttendant
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_258762 call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_TalkedToDoublesAttendant
applymovement VAR_LAST_TALKED, BattleFrontier_BattleFactoryLobby_Movement_2587A7 applymovement VAR_LAST_TALKED, BattleFrontier_BattleFactoryLobby_Movement_AttendantEnterDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryLobby_Movement_2587AC applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryLobby_Movement_PlayerEnterDoor
waitmovement 0 waitmovement 0
warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_PRE_BATTLE_ROOM, 255, 8, 13 warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_PRE_BATTLE_ROOM, 255, 8, 13
setvar VAR_TEMP_0, 0 setvar VAR_TEMP_0, 0
waitstate waitstate
end end
BattleFrontier_BattleFactoryLobby_EventScript_25875C:: @ 825875C BattleFrontier_BattleFactoryLobby_EventScript_TalkedToSinglesAttendant:: @ 825875C
setvar VAR_LAST_TALKED, 1 setvar VAR_LAST_TALKED, 1
return return
BattleFrontier_BattleFactoryLobby_EventScript_258762:: @ 8258762 BattleFrontier_BattleFactoryLobby_EventScript_TalkedToDoublesAttendant:: @ 8258762
setvar VAR_LAST_TALKED, 6 setvar VAR_LAST_TALKED, 6
return return
BattleFrontier_BattleFactoryLobby_EventScript_258768:: @ 8258768 BattleFrontier_BattleFactoryLobby_EventScript_ExplainChallenge:: @ 8258768
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_2587CF call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_ExplainSinglesChallenge
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_2587D8 call_if_eq BattleFrontier_BattleFactoryLobby_EventScript_ExplainDoublesChallenge
goto BattleFrontier_BattleFactoryLobby_EventScript_258606 goto BattleFrontier_BattleFactoryLobby_EventScript_AskTakeChallenge
BattleFrontier_BattleFactoryLobby_EventScript_258783:: @ 8258783 BattleFrontier_BattleFactoryLobby_EventScript_CancelChallengeSaveFailed:: @ 8258783
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0 frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
goto BattleFrontier_BattleFactoryLobby_EventScript_25879D goto BattleFrontier_BattleFactoryLobby_EventScript_CancelChallenge
BattleFrontier_BattleFactoryLobby_EventScript_25879A:: @ 825879A BattleFrontier_BattleFactoryLobby_EventScript_LoadPartyAndCancelChallenge:: @ 825879A
special LoadPlayerParty special LoadPlayerParty
BattleFrontier_BattleFactoryLobby_EventScript_25879D:: @ 825879D BattleFrontier_BattleFactoryLobby_EventScript_CancelChallenge:: @ 825879D
msgbox BattleFrontier_BattleFactoryLobby_Text_258BC5, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_LookForwardToNextVisit, MSGBOX_DEFAULT
release release
end end
BattleFrontier_BattleFactoryLobby_Movement_2587A7: @ 82587A7 BattleFrontier_BattleFactoryLobby_Movement_AttendantEnterDoor: @ 82587A7
walk_up walk_up
walk_up walk_up
walk_up walk_up
set_invisible set_invisible
step_end step_end
BattleFrontier_BattleFactoryLobby_Movement_2587AC: @ 82587AC BattleFrontier_BattleFactoryLobby_Movement_PlayerEnterDoor: @ 82587AC
walk_up walk_up
walk_up walk_up
walk_up walk_up
walk_up walk_up
step_end step_end
BattleFrontier_BattleFactoryLobby_EventScript_2587B1:: @ 82587B1 BattleFrontier_BattleFactoryLobby_EventScript_WelcomeForSingleBattle:: @ 82587B1
msgbox BattleFrontier_BattleFactoryLobby_Text_2588EE, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_WelcomeForSingleBattle, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryLobby_EventScript_2587BA:: @ 82587BA BattleFrontier_BattleFactoryLobby_EventScript_WelcomeForDoubleBattle:: @ 82587BA
msgbox BattleFrontier_BattleFactoryLobby_Text_258F93, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_WelcomeForDoubleBattle, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryLobby_EventScript_2587C3:: @ 82587C3 BattleFrontier_BattleFactoryLobby_EventScript_TakeSinglesChallenge:: @ 82587C3
message BattleFrontier_BattleFactoryLobby_Text_25897A message BattleFrontier_BattleFactoryLobby_Text_TakeSinglesChallenge
return return
BattleFrontier_BattleFactoryLobby_EventScript_2587C9:: @ 82587C9 BattleFrontier_BattleFactoryLobby_EventScript_TakeDoublesChallenge:: @ 82587C9
message BattleFrontier_BattleFactoryLobby_Text_25901F message BattleFrontier_BattleFactoryLobby_Text_TakeDoublesChallenge
return return
BattleFrontier_BattleFactoryLobby_EventScript_2587CF:: @ 82587CF BattleFrontier_BattleFactoryLobby_EventScript_ExplainSinglesChallenge:: @ 82587CF
msgbox BattleFrontier_BattleFactoryLobby_Text_2589B3, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_ExplainSinglesChallenge, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryLobby_EventScript_2587D8:: @ 82587D8 BattleFrontier_BattleFactoryLobby_EventScript_ExplainDoublesChallenge:: @ 82587D8
msgbox BattleFrontier_BattleFactoryLobby_Text_259058, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_ExplainDoublesChallenge, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryLobby_EventScript_2587E1:: @ 82587E1 BattleFrontier_BattleFactoryLobby_EventScript_ShowSinglesResults:: @ 82587E1
lockall lockall
frontier_results FRONTIER_FACILITY_FACTORY, FRONTIER_MODE_SINGLES frontier_results FRONTIER_FACILITY_FACTORY, FRONTIER_MODE_SINGLES
waitbuttonpress waitbuttonpress
@@ -258,7 +255,7 @@ BattleFrontier_BattleFactoryLobby_EventScript_2587E1:: @ 82587E1
releaseall releaseall
end end
BattleFrontier_BattleFactoryLobby_EventScript_2587FA:: @ 82587FA BattleFrontier_BattleFactoryLobby_EventScript_ShowDoublesResults:: @ 82587FA
lockall lockall
frontier_results FRONTIER_FACILITY_FACTORY, FRONTIER_MODE_DOUBLES frontier_results FRONTIER_FACILITY_FACTORY, FRONTIER_MODE_DOUBLES
waitbuttonpress waitbuttonpress
@@ -266,85 +263,85 @@ BattleFrontier_BattleFactoryLobby_EventScript_2587FA:: @ 82587FA
releaseall releaseall
end end
BattleFrontier_BattleFactoryLobby_EventScript_258813:: @ 8258813 BattleFrontier_BattleFactoryLobby_EventScript_Woman:: @ 8258813
msgbox BattleFrontier_BattleFactoryLobby_Text_2593D7, MSGBOX_NPC msgbox BattleFrontier_BattleFactoryLobby_Text_NeedKnowledgeOfMonsMoves, MSGBOX_NPC
end end
BattleFrontier_BattleFactoryLobby_EventScript_25881C:: @ 825881C BattleFrontier_BattleFactoryLobby_EventScript_Camper:: @ 825881C
msgbox BattleFrontier_BattleFactoryLobby_Text_2594E5, MSGBOX_NPC msgbox BattleFrontier_BattleFactoryLobby_Text_SwappedForWeakMon, MSGBOX_NPC
end end
BattleFrontier_BattleFactoryLobby_EventScript_258825:: @ 8258825 BattleFrontier_BattleFactoryLobby_EventScript_Picnicker:: @ 8258825
lock lock
msgbox BattleFrontier_BattleFactoryLobby_Text_259547, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_NeedToCheckOpponentsMons, MSGBOX_DEFAULT
release release
end end
BattleFrontier_BattleFactoryLobby_EventScript_258830:: @ 8258830 BattleFrontier_BattleFactoryLobby_EventScript_FatMan:: @ 8258830
msgbox BattleFrontier_BattleFactoryLobby_Text_2595C4, MSGBOX_NPC msgbox BattleFrontier_BattleFactoryLobby_Text_CantFigureOutStaffHints, MSGBOX_NPC
end end
BattleFrontier_BattleFactoryLobby_EventScript_258839:: @ 8258839 BattleFrontier_BattleFactoryLobby_EventScript_RulesBoard:: @ 8258839
lockall lockall
msgbox BattleFrontier_BattleFactoryLobby_Text_259721, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_RulesAreListed, MSGBOX_DEFAULT
goto BattleFrontier_BattleFactoryLobby_EventScript_258848 goto BattleFrontier_BattleFactoryLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattleFactoryLobby_EventScript_258848:: @ 8258848 BattleFrontier_BattleFactoryLobby_EventScript_ReadRulesBoard:: @ 8258848
message BattleFrontier_BattleFactoryLobby_Text_259743 message BattleFrontier_BattleFactoryLobby_Text_ReadWhichHeading
waitmessage waitmessage
multichoice 17, 0, MULTI_BATTLE_FACTORY_RULES, 0 multichoice 17, 0, MULTI_BATTLE_FACTORY_RULES, 0
switch VAR_RESULT switch VAR_RESULT
case 0, BattleFrontier_BattleFactoryLobby_EventScript_2588A6 case 0, BattleFrontier_BattleFactoryLobby_EventScript_RulesBasics
case 1, BattleFrontier_BattleFactoryLobby_EventScript_2588B4 case 1, BattleFrontier_BattleFactoryLobby_EventScript_RulesSwapPartner
case 2, BattleFrontier_BattleFactoryLobby_EventScript_2588C2 case 2, BattleFrontier_BattleFactoryLobby_EventScript_RulesSwapNumber
case 3, BattleFrontier_BattleFactoryLobby_EventScript_2588D0 case 3, BattleFrontier_BattleFactoryLobby_EventScript_RulesSwapNotes
case 4, BattleFrontier_BattleFactoryLobby_EventScript_2588DE case 4, BattleFrontier_BattleFactoryLobby_EventScript_RulesOpenLv
case 5, BattleFrontier_BattleFactoryLobby_EventScript_2588EC case 5, BattleFrontier_BattleFactoryLobby_EventScript_ExitRules
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_2588EC case MULTI_B_PRESSED, BattleFrontier_BattleFactoryLobby_EventScript_ExitRules
end end
BattleFrontier_BattleFactoryLobby_EventScript_2588A6:: @ 82588A6 BattleFrontier_BattleFactoryLobby_EventScript_RulesBasics:: @ 82588A6
msgbox BattleFrontier_BattleFactoryLobby_Text_259766, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_ExplainBasicRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleFactoryLobby_EventScript_258848 goto BattleFrontier_BattleFactoryLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattleFactoryLobby_EventScript_2588B4:: @ 82588B4 BattleFrontier_BattleFactoryLobby_EventScript_RulesSwapPartner:: @ 82588B4
msgbox BattleFrontier_BattleFactoryLobby_Text_2597FB, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_ExplainSwapPartnerRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleFactoryLobby_EventScript_258848 goto BattleFrontier_BattleFactoryLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattleFactoryLobby_EventScript_2588C2:: @ 82588C2 BattleFrontier_BattleFactoryLobby_EventScript_RulesSwapNumber:: @ 82588C2
msgbox BattleFrontier_BattleFactoryLobby_Text_25987E, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_ExplainSwapNumberRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleFactoryLobby_EventScript_258848 goto BattleFrontier_BattleFactoryLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattleFactoryLobby_EventScript_2588D0:: @ 82588D0 BattleFrontier_BattleFactoryLobby_EventScript_RulesSwapNotes:: @ 82588D0
msgbox BattleFrontier_BattleFactoryLobby_Text_259920, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_ExplainSwapNotesRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleFactoryLobby_EventScript_258848 goto BattleFrontier_BattleFactoryLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattleFactoryLobby_EventScript_2588DE:: @ 82588DE BattleFrontier_BattleFactoryLobby_EventScript_RulesOpenLv:: @ 82588DE
msgbox BattleFrontier_BattleFactoryLobby_Text_259A5E, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_ExplainOpenLvRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleFactoryLobby_EventScript_258848 goto BattleFrontier_BattleFactoryLobby_EventScript_ReadRulesBoard
end end
BattleFrontier_BattleFactoryLobby_EventScript_2588EC:: @ 82588EC BattleFrontier_BattleFactoryLobby_EventScript_ExitRules:: @ 82588EC
releaseall releaseall
end end
BattleFrontier_BattleFactoryLobby_Text_2588EE: @ 82588EE BattleFrontier_BattleFactoryLobby_Text_WelcomeForSingleBattle: @ 82588EE
.string "Where the intelligence of TRAINERS\n" .string "Where the intelligence of TRAINERS\n"
.string "is put to the test!\p" .string "is put to the test!\p"
.string "Welcome to the BATTLE FACTORY!\p" .string "Welcome to the BATTLE FACTORY!\p"
.string "I am your guide to the Battle Swap\n" .string "I am your guide to the Battle Swap\n"
.string "Single Tournament.$" .string "Single Tournament.$"
BattleFrontier_BattleFactoryLobby_Text_25897A: @ 825897A BattleFrontier_BattleFactoryLobby_Text_TakeSinglesChallenge: @ 825897A
.string "Would you like to take the Battle\n" .string "Would you like to take the Battle\n"
.string "Swap Single challenge?$" .string "Swap Single challenge?$"
BattleFrontier_BattleFactoryLobby_Text_2589B3: @ 82589B3 BattleFrontier_BattleFactoryLobby_Text_ExplainSinglesChallenge: @ 82589B3
.string "The Battle Swap Single Tournament\n" .string "The Battle Swap Single Tournament\n"
.string "is a SINGLE BATTLE competition using\l" .string "is a SINGLE BATTLE competition using\l"
.string "only rental POKéMON.\p" .string "only rental POKéMON.\p"
@@ -362,79 +359,85 @@ BattleFrontier_BattleFactoryLobby_Text_2589B3: @ 82589B3
.string "If you don't save, you will be\n" .string "If you don't save, you will be\n"
.string "disqualified from your challenge.$" .string "disqualified from your challenge.$"
BattleFrontier_BattleFactoryLobby_Text_258BC5: @ 8258BC5 BattleFrontier_BattleFactoryLobby_Text_LookForwardToNextVisit: @ 8258BC5
.string "We look forward to your next visit.$" .string "We look forward to your next visit.$"
BattleFrontier_BattleFactoryLobby_Text_258BE9: @ 8258BE9 BattleFrontier_BattleFactoryLobby_Text_WhichLevelMode: @ 8258BE9
.string "Which level do you wish to challenge?\n" .string "Which level do you wish to challenge?\n"
.string "Level 50 or Open Level?$" .string "Level 50 or Open Level?$"
BattleFrontier_BattleFactoryLobby_Text_258C27: @ 8258C27 BattleFrontier_BattleFactoryLobby_Text_OkayToSaveBeforeChallenge: @ 8258C27
.string "Before you begin your challenge,\n" .string "Before you begin your challenge,\n"
.string "I need to save the game. Is that okay?$" .string "I need to save the game. Is that okay?$"
BattleFrontier_BattleFactoryLobby_Text_258C6F: @ 8258C6F @ Unused
BattleFrontier_BattleFactoryLobby_Text_WillHoldMonsForSafekeeping: @ 8258C6F
.string "Okay, I will hold your POKéMON for\n" .string "Okay, I will hold your POKéMON for\n"
.string "safekeeping while you compete.$" .string "safekeeping while you compete.$"
BattleFrontier_BattleFactoryLobby_Text_258CB1: @ 8258CB1 BattleFrontier_BattleFactoryLobby_Text_StepThisWay: @ 8258CB1
.string "Please step this way.$" .string "Please step this way.$"
BattleFrontier_BattleFactoryLobby_Text_258CC7: @ 8258CC7 BattleFrontier_BattleFactoryLobby_Text_ReturnMonsSaveResults: @ 8258CC7
.string "Thank you for participating!\p" .string "Thank you for participating!\p"
.string "I will return your POKéMON in exchange\n" .string "I will return your POKéMON in exchange\n"
.string "for our rental POKéMON.\p" .string "for our rental POKéMON.\p"
.string "I must also save the event results.\n" .string "I must also save the event results.\n"
.string "Please wait.$" .string "Please wait.$"
BattleFrontier_BattleFactoryLobby_Text_258D54: @ 8258D54 @ Unused
BattleFrontier_BattleFactoryLobby_Text_ReturnMons: @ 8258D54
.string "I will return your POKéMON in exchange\n" .string "I will return your POKéMON in exchange\n"
.string "for our rental POKéMON.$" .string "for our rental POKéMON.$"
BattleFrontier_BattleFactoryLobby_Text_258D93: @ 8258D93 BattleFrontier_BattleFactoryLobby_Text_CongratsSevenWins: @ 8258D93
.string "Congratulations! You've won seven\n" .string "Congratulations! You've won seven\n"
.string "straight Battle Swap matches!$" .string "straight Battle Swap matches!$"
BattleFrontier_BattleFactoryLobby_Text_258DD3: @ 8258DD3 @ Unused
BattleFrontier_BattleFactoryLobby_Text_AwardBattlePointsForStreak: @ 8258DD3
.string "In recognition of your 7-win streak,\n" .string "In recognition of your 7-win streak,\n"
.string "we award you these Battle Point(s).$" .string "we award you these Battle Point(s).$"
BattleFrontier_BattleFactoryLobby_Text_258E1C: @ 8258E1C @ Unused
BattleFrontier_BattleFactoryLobby_Text_MaxBattlePoints: @ 8258E1C
.string "Oh, oh, oh!\p" .string "Oh, oh, oh!\p"
.string "Your Battle Points are maxed.\p" .string "Your Battle Points are maxed.\p"
.string "Please come back after using\n" .string "Please come back after using\n"
.string "some Battle Points.$" .string "some Battle Points.$"
BattleFrontier_BattleFactoryLobby_Text_258E77: @ 8258E77 BattleFrontier_BattleFactoryLobby_Text_WaitingForYouToResume: @ 8258E77
.string "We've been waiting for you!\p" .string "We've been waiting for you!\p"
.string "Before we resume your challenge,\n" .string "Before we resume your challenge,\n"
.string "I must save the game.$" .string "I must save the game.$"
BattleFrontier_BattleFactoryLobby_Text_258ECA: @ 8258ECA BattleFrontier_BattleFactoryLobby_Text_DidntSaveBeforeQuitting: @ 8258ECA
.string "I'm sorry to say this, but you didn't\n" .string "I'm sorry to say this, but you didn't\n"
.string "save before you quit playing last time.\p" .string "save before you quit playing last time.\p"
.string "As a result, you have been disqualified\n" .string "As a result, you have been disqualified\n"
.string "from your challenge.$" .string "from your challenge.$"
BattleFrontier_BattleFactoryLobby_Text_258F55: @ 8258F55 @ Unused
BattleFrontier_BattleFactoryLobby_Text_WellReturnMons: @ 8258F55
.string "We'll return your personal POKéMON.$" .string "We'll return your personal POKéMON.$"
BattleFrontier_BattleFactoryLobby_Text_258F79: @ 8258F79 @ Unused
BattleFrontier_BattleFactoryLobby_Text_ReceivedPrizeItem: @ 8258F79
.string "{PLAYER} received the prize\n" .string "{PLAYER} received the prize\n"
.string "{STR_VAR_1}.$" .string "{STR_VAR_1}.$"
BattleFrontier_BattleFactoryLobby_Text_258F93: @ 8258F93 BattleFrontier_BattleFactoryLobby_Text_WelcomeForDoubleBattle: @ 8258F93
.string "Where the intelligence of TRAINERS\n" .string "Where the intelligence of TRAINERS\n"
.string "is put to the test!\p" .string "is put to the test!\p"
.string "Welcome to the BATTLE FACTORY!\p" .string "Welcome to the BATTLE FACTORY!\p"
.string "I am your guide to the Battle Swap\n" .string "I am your guide to the Battle Swap\n"
.string "Double Tournament.$" .string "Double Tournament.$"
BattleFrontier_BattleFactoryLobby_Text_25901F: @ 825901F BattleFrontier_BattleFactoryLobby_Text_TakeDoublesChallenge: @ 825901F
.string "Would you like to take the Battle\n" .string "Would you like to take the Battle\n"
.string "Swap Double challenge?$" .string "Swap Double challenge?$"
BattleFrontier_BattleFactoryLobby_Text_259058: @ 8259058 BattleFrontier_BattleFactoryLobby_Text_ExplainDoublesChallenge: @ 8259058
.string "The Battle Swap Double Tournament\n" .string "The Battle Swap Double Tournament\n"
.string "is a DOUBLE BATTLE competition using\l" .string "is a DOUBLE BATTLE competition using\l"
.string "only rental POKéMON.\p" .string "only rental POKéMON.\p"
@@ -452,28 +455,28 @@ BattleFrontier_BattleFactoryLobby_Text_259058: @ 8259058
.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_BattleFactoryLobby_Text_25926A: @ 825926A BattleFrontier_BattleFactoryLobby_Text_CongratsForDefeatingHead: @ 825926A
.string "Congratulations for defeating\n" .string "Congratulations for defeating\n"
.string "the FACTORY HEAD and winning\l" .string "the FACTORY HEAD and winning\l"
.string "seven matches in a row!$" .string "seven matches in a row!$"
BattleFrontier_BattleFactoryLobby_Text_2592BD: @ 82592BD BattleFrontier_BattleFactoryLobby_Text_AwardBattlePoints: @ 82592BD
.string "In recognition of your wealth of\n" .string "In recognition of your wealth of\n"
.string "knowledge and keen intelligence,\l" .string "knowledge and keen intelligence,\l"
.string "we award you these Battle Point(s).$" .string "we award you these Battle Point(s).$"
BattleFrontier_BattleFactoryLobby_Text_259323: @ 8259323 BattleFrontier_BattleFactoryLobby_Text_ExchangeMonsAndSave: @ 8259323
.string "Let me exchange your POKéMON\n" .string "Let me exchange your POKéMON\n"
.string "for our rental POKéMON.\p" .string "for our rental POKéMON.\p"
.string "I need to save the battle data,\n" .string "I need to save the battle data,\n"
.string "so please wait.$" .string "so please wait.$"
BattleFrontier_BattleFactoryLobby_Text_259388: @ 8259388 BattleFrontier_BattleFactoryLobby_Text_RecordLastMatch: @ 8259388
.string "Would you like to record your last\n" .string "Would you like to record your last\n"
.string "BATTLE FACTORY match on your\l" .string "BATTLE FACTORY match on your\l"
.string "FRONTIER PASS?$" .string "FRONTIER PASS?$"
BattleFrontier_BattleFactoryLobby_Text_2593D7: @ 82593D7 BattleFrontier_BattleFactoryLobby_Text_NeedKnowledgeOfMonsMoves: @ 82593D7
.string "Hi!\n" .string "Hi!\n"
.string "You, there!\p" .string "You, there!\p"
.string "Are you thinking that the events here\n" .string "Are you thinking that the events here\n"
@@ -485,25 +488,26 @@ BattleFrontier_BattleFactoryLobby_Text_2593D7: @ 82593D7
.string "about POKéMON and their moves,\l" .string "about POKéMON and their moves,\l"
.string "it will be tough to keep winning.$" .string "it will be tough to keep winning.$"
BattleFrontier_BattleFactoryLobby_Text_2594E5: @ 82594E5 BattleFrontier_BattleFactoryLobby_Text_SwappedForWeakMon: @ 82594E5
.string "I swapped for a weak POKéMON…\n" .string "I swapped for a weak POKéMON…\n"
.string "I thought it was a good kind to have…\p" .string "I thought it was a good kind to have…\p"
.string "They wiped the floor with us…$" .string "They wiped the floor with us…$"
BattleFrontier_BattleFactoryLobby_Text_259547: @ 8259547 BattleFrontier_BattleFactoryLobby_Text_NeedToCheckOpponentsMons: @ 8259547
.string "Things haven't been going my way\n" .string "Things haven't been going my way\n"
.string "at all.\p" .string "at all.\p"
.string "You need to check your opponent's\n" .string "You need to check your opponent's\n"
.string "POKéMON during battle to see if\l" .string "POKéMON during battle to see if\l"
.string "they're any good.$" .string "they're any good.$"
BattleFrontier_BattleFactoryLobby_Text_2595C4: @ 82595C4 BattleFrontier_BattleFactoryLobby_Text_CantFigureOutStaffHints: @ 82595C4
.string "You know how the staff here give you\n" .string "You know how the staff here give you\n"
.string "a few hints about your next opponent?\p" .string "a few hints about your next opponent?\p"
.string "Well, I'm a full-grown man, but I have\n" .string "Well, I'm a full-grown man, but I have\n"
.string "trouble figuring out their hints.$" .string "trouble figuring out their hints.$"
BattleFrontier_BattleFactoryLobby_Text_259658: @ 8259658 @ Unused
BattleFrontier_BattleFactoryLobby_Text_RentalMonsAreVaried: @ 8259658
.string "Like, I'm really tough, but I get bored\n" .string "Like, I'm really tough, but I get bored\n"
.string "really easily, so I just kept swapping\l" .string "really easily, so I just kept swapping\l"
.string "and battling over and over.\p" .string "and battling over and over.\p"
@@ -511,35 +515,33 @@ BattleFrontier_BattleFactoryLobby_Text_259658: @ 8259658
.string "Battle Swap events, I noticed they\l" .string "Battle Swap events, I noticed they\l"
.string "varied the rental POKéMON.$" .string "varied the rental POKéMON.$"
BattleFrontier_BattleFactoryLobby_Text_259721: @ 8259721 BattleFrontier_BattleFactoryLobby_Text_RulesAreListed: @ 8259721
SlateportCity_BattleTentLobby_Text_259721: @ 8259721
.string "The Battle Swap rules are listed.$" .string "The Battle Swap rules are listed.$"
BattleFrontier_BattleFactoryLobby_Text_259743: @ 8259743 BattleFrontier_BattleFactoryLobby_Text_ReadWhichHeading: @ 8259743
SlateportCity_BattleTentLobby_Text_259743: @ 8259743
.string "Which heading do you want to read?$" .string "Which heading do you want to read?$"
BattleFrontier_BattleFactoryLobby_Text_259766: @ 8259766 BattleFrontier_BattleFactoryLobby_Text_ExplainBasicRules: @ 8259766
.string "In a Battle Swap event, you may use\n" .string "In a Battle Swap event, you may use\n"
.string "only three POKéMON.\p" .string "only three POKéMON.\p"
.string "Whether you are renting or swapping,\n" .string "Whether you are renting or swapping,\n"
.string "your team may not have two or more\l" .string "your team may not have two or more\l"
.string "of the same POKéMON.$" .string "of the same POKéMON.$"
BattleFrontier_BattleFactoryLobby_Text_2597FB: @ 82597FB BattleFrontier_BattleFactoryLobby_Text_ExplainSwapPartnerRules: @ 82597FB
.string "You may swap POKéMON only with\n" .string "You may swap POKéMON only with\n"
.string "the TRAINER you have just defeated.\p" .string "the TRAINER you have just defeated.\p"
.string "You may swap for only those POKéMON\n" .string "You may swap for only those POKéMON\n"
.string "used by the beaten TRAINER.$" .string "used by the beaten TRAINER.$"
BattleFrontier_BattleFactoryLobby_Text_25987E: @ 825987E BattleFrontier_BattleFactoryLobby_Text_ExplainSwapNumberRules: @ 825987E
.string "After every battle you win, you may\n" .string "After every battle you win, you may\n"
.string "swap for one of your defeated\l" .string "swap for one of your defeated\l"
.string "opponent's POKéMON.\p" .string "opponent's POKéMON.\p"
.string "You will not be able to swap POKéMON\n" .string "You will not be able to swap POKéMON\n"
.string "with the seventh TRAINER in the event.$" .string "with the seventh TRAINER in the event.$"
BattleFrontier_BattleFactoryLobby_Text_259920: @ 8259920 BattleFrontier_BattleFactoryLobby_Text_ExplainSwapNotesRules: @ 8259920
.string "There are two key points to be aware\n" .string "There are two key points to be aware\n"
.string "of when swapping POKéMON.\p" .string "of when swapping POKéMON.\p"
.string "First, when swapping, you can't check\n" .string "First, when swapping, you can't check\n"
@@ -551,7 +553,7 @@ BattleFrontier_BattleFactoryLobby_Text_259920: @ 8259920
.string "This sequence remains unchanged\n" .string "This sequence remains unchanged\n"
.string "even when swaps are made.$" .string "even when swaps are made.$"
BattleFrontier_BattleFactoryLobby_Text_259A5E: @ 8259A5E BattleFrontier_BattleFactoryLobby_Text_ExplainOpenLvRules: @ 8259A5E
.string "In the Open Level, the rental POKéMON\n" .string "In the Open Level, the rental POKéMON\n"
.string "and the opposing TRAINERS' POKéMON\l" .string "and the opposing TRAINERS' POKéMON\l"
.string "are all Level 100.$" .string "are all Level 100.$"
@@ -1,211 +1,209 @@
BattleFrontier_BattleFactoryPreBattleRoom_MapScripts:: @ 8259ABA BattleFrontier_BattleFactoryPreBattleRoom_MapScripts:: @ 8259ABA
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_MapScript2_259AEF map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_MapScript2_259AC5 map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_OnWarp
.byte 0 .byte 0
BattleFrontier_BattleFactoryPreBattleRoom_MapScript2_259AC5: @ 8259AC5 BattleFrontier_BattleFactoryPreBattleRoom_OnWarp: @ 8259AC5
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259ACF map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SetUpObjects
.2byte 0 .2byte 0
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259ACF:: @ 8259ACF BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SetUpObjects:: @ 8259ACF
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
compare VAR_0x8006, 1 compare VAR_0x8006, 1
goto_if_ne BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259AEA goto_if_ne BattleFrontier_BattleFactoryPreBattleRoom_EventScript_TurnPlayerNorth
setobjectxy 1, 8, 7 setobjectxy 1, 8, 7
turnobject 1, DIR_SOUTH turnobject 1, DIR_SOUTH
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_TurnPlayerNorth:: @ 8259AEA
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259AEA:: @ 8259AEA
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
end end
BattleFrontier_BattleFactoryPreBattleRoom_MapScript2_259AEF: @ 8259AEF BattleFrontier_BattleFactoryPreBattleRoom_OnFrame: @ 8259AEF
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259AF9 map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterRoom
.2byte 0 .2byte 0
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259AF9:: @ 8259AF9 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterRoom:: @ 8259AF9
compare VAR_0x8006, 1 compare VAR_0x8006, 1
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259BA5 goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReturnToRoomFromBattle
setvar VAR_TEMP_0, 1 setvar VAR_TEMP_0, 1
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1AC applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantEnterRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A19A applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerEnterRoom
waitmovement 0 waitmovement 0
compare VAR_0x8006, 2 compare VAR_0x8006, 2
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E69 goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ResumeChallenge
factory_generaterentalmons factory_generaterentalmons
factory_generateopponentmons factory_generateopponentmons
factory_getopponentmontype factory_getopponentmontype
setorcopyvar VAR_0x8005, VAR_RESULT setorcopyvar VAR_0x8005, VAR_RESULT
factory_getopponentstyle factory_getopponentstyle
setorcopyvar VAR_0x8006, VAR_RESULT setorcopyvar VAR_0x8006, VAR_RESULT
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E93 call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentType
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A004 call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentStyle
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A1C8, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_HoldMonsChooseFromSelection, MSGBOX_DEFAULT
fadescreen 1 fadescreen 1
factory_setswapped factory_setswapped
factory_rentmons factory_rentmons
waitstate waitstate
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259B74:: @ 8259B74 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom:: @ 8259B74
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25AB96, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_RightThisWay, MSGBOX_DEFAULT
closemessage closemessage
call BattleFrontier_EventScript_GetLvlMode call BattleFrontier_EventScript_GetLvlMode
compare VAR_RESULT, FRONTIER_LVL_50 compare VAR_RESULT, FRONTIER_LVL_50
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A17C call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLv50
compare VAR_RESULT, FRONTIER_LVL_OPEN compare VAR_RESULT, FRONTIER_LVL_OPEN
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A18B call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLvOpen
waitmovement 0 waitmovement 0
warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM, 255, 6, 11 warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM, 255, 6, 11
waitstate waitstate
end end
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259BA5:: @ 8259BA5 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReturnToRoomFromBattle:: @ 8259BA5
factory_setopponentmons factory_setopponentmons
factory_resethelditems factory_resethelditems
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A22D, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_LetUsRestoreMons, MSGBOX_DEFAULT
playfanfare MUS_ME_ASA playfanfare MUS_ME_ASA
waitfanfare waitfanfare
special HealPlayerParty special HealPlayerParty
frontier_getbrainstatus frontier_getbrainstatus
compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C26 goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForRegularOpponent
playse SE_TOREEYE playse SE_TOREEYE
waitse waitse
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25AC15, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_WaitFewMoments, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1BF applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantMoveToReceiveCall
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25AC58, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_UnderstoodSirWillDo, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1C3 applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantReturnToPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25AC89, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_MessageFromHeadComeRightNow, MSGBOX_DEFAULT
closemessage closemessage
delay 16 delay 16
goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A0B9 goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead
end end
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13:: @ 8259C13 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent:: @ 8259C13
frontier_getbrainstatus frontier_getbrainstatus
compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY
goto_if_ne BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A0B9 goto_if_ne BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForRegularOpponent:: @ 8259C26
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C26:: @ 8259C26
frontier_get FRONTIER_DATA_BATTLE_NUM frontier_get FRONTIER_DATA_BATTLE_NUM
compare VAR_RESULT, 1 compare VAR_RESULT, 1
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E1D call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor2ndOpponent
compare VAR_RESULT, 2 compare VAR_RESULT, 2
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E24 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor3rdOpponent
compare VAR_RESULT, 3 compare VAR_RESULT, 3
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E2B call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor4thOpponent
compare VAR_RESULT, 4 compare VAR_RESULT, 4
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E32 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor5thOpponent
compare VAR_RESULT, 5 compare VAR_RESULT, 5
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E39 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor6thOpponent
compare VAR_RESULT, 6 compare VAR_RESULT, 6
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E40 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor7thOpponent
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_23E8E0 call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_23E8E0
compare VAR_RESULT, 1 compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259CC6 goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponentNoRecord
multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, 1 multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, 1
switch VAR_RESULT switch VAR_RESULT
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D98 case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapMon
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259CFC case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRecordBattle
case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D38 case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge
case 3, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D66 case 3, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259CC6:: @ 8259CC6 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponentNoRecord:: @ 8259CC6
multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, 1 multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, 1
switch VAR_RESULT switch VAR_RESULT
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D98 case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapMon
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D38 case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge
case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D66 case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259CFC:: @ 8259CFC BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRecordBattle:: @ 8259CFC
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25ABD2 message BattleFrontier_BattleFactoryPreBattleRoom_Text_RecordLatestBattle
waitmessage waitmessage
multichoicedefault 20, 8, MULTI_YESNO, 1, 0 multichoicedefault 20, 8, MULTI_YESNO, 1, 0
switch VAR_RESULT switch VAR_RESULT
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D2E case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_RecordBattle
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D2E:: @ 8259D2E BattleFrontier_BattleFactoryPreBattleRoom_EventScript_RecordBattle:: @ 8259D2E
call BattleFrontier_EventScript_SaveBattle call BattleFrontier_EventScript_SaveBattle
goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D38:: @ 8259D38 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge:: @ 8259D38
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A350, MSGBOX_YESNO msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_SaveAndQuitGame, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
case NO, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 case NO, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
case YES, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E47 case YES, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_PauseChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D66:: @ 8259D66 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge:: @ 8259D66
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25A37A message BattleFrontier_BattleFactoryPreBattleRoom_Text_RetireFromChallenge
waitmessage waitmessage
multichoicedefault 20, 8, MULTI_YESNO, 1, 0 multichoicedefault 20, 8, MULTI_YESNO, 1, 0
switch VAR_RESULT switch VAR_RESULT
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25AEF8 case 0, BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyLost
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D98:: @ 8259D98 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapMon:: @ 8259D98
factory_generateopponentmons factory_generateopponentmons
factory_getopponentmontype factory_getopponentmontype
setorcopyvar VAR_0x8005, VAR_RESULT setorcopyvar VAR_0x8005, VAR_RESULT
factory_getopponentstyle factory_getopponentstyle
setorcopyvar VAR_0x8006, VAR_RESULT setorcopyvar VAR_0x8006, VAR_RESULT
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E93 call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentType
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A004 call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentStyle
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25AB2E, MSGBOX_YESNO msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_LikeToSwapMon, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
case NO, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259B74 case NO, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
case YES, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259DF2 case YES, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SwapMons
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259B74 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259DF2:: @ 8259DF2 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SwapMons:: @ 8259DF2
fadescreen 1 fadescreen 1
factory_swapmons factory_swapmons
waitstate waitstate
compare VAR_RESULT, 1 compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259B74 goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
factory_setswapped factory_setswapped
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25AB6C, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_YourSwapIsComplete, MSGBOX_DEFAULT
goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259B74 goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E1D:: @ 8259E1D BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor2ndOpponent:: @ 8259E1D
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25A263 message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor2ndOpponent
waitmessage waitmessage
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E24:: @ 8259E24 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor3rdOpponent:: @ 8259E24
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25A289 message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor3rdOpponent
waitmessage waitmessage
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E2B:: @ 8259E2B BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor4thOpponent:: @ 8259E2B
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25A2AF message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor4thOpponent
waitmessage waitmessage
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E32:: @ 8259E32 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor5thOpponent:: @ 8259E32
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25A2D5 message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor5thOpponent
waitmessage waitmessage
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E39:: @ 8259E39 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor6thOpponent:: @ 8259E39
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25A2FB message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor6thOpponent
waitmessage waitmessage
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E40:: @ 8259E40 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor7thOpponent:: @ 8259E40
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25A321 message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor7thOpponent
waitmessage waitmessage
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E47:: @ 8259E47 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_PauseChallenge:: @ 8259E47
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25ABAE message BattleFrontier_BattleFactoryPreBattleRoom_Text_SavingDataPleaseWait
waitmessage waitmessage
factory_save CHALLENGE_STATUS_PAUSED factory_save CHALLENGE_STATUS_PAUSED
playse SE_SAVE playse SE_SAVE
@@ -214,223 +212,223 @@ BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E47:: @ 8259E47
frontier_reset frontier_reset
end end
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E69:: @ 8259E69 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ResumeChallenge:: @ 8259E69
special SavePlayerParty special SavePlayerParty
factory_setparties 0 factory_setparties 0
frontier_set FRONTIER_DATA_6, 1 frontier_set FRONTIER_DATA_6, 1
special CalculatePlayerPartyCount special CalculatePlayerPartyCount
goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259C13 goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259E93:: @ 8259E93 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentType:: @ 8259E93
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A3B4, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_InvestigatedUpcomingOpponent, MSGBOX_DEFAULT
compare VAR_0x8005, TYPE_NORMAL compare VAR_0x8005, TYPE_NORMAL
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F62 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesNormal
compare VAR_0x8005, TYPE_FIGHTING compare VAR_0x8005, TYPE_FIGHTING
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F6B call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFighting
compare VAR_0x8005, TYPE_FLYING compare VAR_0x8005, TYPE_FLYING
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F74 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFlying
compare VAR_0x8005, TYPE_POISON compare VAR_0x8005, TYPE_POISON
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F7D call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesPoison
compare VAR_0x8005, TYPE_GROUND compare VAR_0x8005, TYPE_GROUND
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F86 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGround
compare VAR_0x8005, TYPE_ROCK compare VAR_0x8005, TYPE_ROCK
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F8F call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesRock
compare VAR_0x8005, TYPE_BUG compare VAR_0x8005, TYPE_BUG
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F98 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesBug
compare VAR_0x8005, TYPE_GHOST compare VAR_0x8005, TYPE_GHOST
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FA1 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGhost
compare VAR_0x8005, TYPE_STEEL compare VAR_0x8005, TYPE_STEEL
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FAA call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesSteel
compare VAR_0x8005, TYPE_FIRE compare VAR_0x8005, TYPE_FIRE
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FB3 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFire
compare VAR_0x8005, TYPE_WATER compare VAR_0x8005, TYPE_WATER
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FBC call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesWater
compare VAR_0x8005, TYPE_GRASS compare VAR_0x8005, TYPE_GRASS
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FC5 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGrass
compare VAR_0x8005, TYPE_ELECTRIC compare VAR_0x8005, TYPE_ELECTRIC
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FCE call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesElectric
compare VAR_0x8005, TYPE_PSYCHIC compare VAR_0x8005, TYPE_PSYCHIC
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FD7 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesPsychic
compare VAR_0x8005, TYPE_ICE compare VAR_0x8005, TYPE_ICE
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FE0 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesIce
compare VAR_0x8005, TYPE_DRAGON compare VAR_0x8005, TYPE_DRAGON
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FE9 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesDragon
compare VAR_0x8005, TYPE_DARK compare VAR_0x8005, TYPE_DARK
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FF2 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesDark
compare VAR_0x8005, NUMBER_OF_MON_TYPES compare VAR_0x8005, NUMBER_OF_MON_TYPES
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FFB call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentHasNoMostCommonType
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F62:: @ 8259F62 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesNormal:: @ 8259F62
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A3F8, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInNormalType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F6B:: @ 8259F6B BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFighting:: @ 8259F6B
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A597, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFightingType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F74:: @ 8259F74 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFlying:: @ 8259F74
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A66B, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFlyingType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F7D:: @ 8259F7D BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesPoison:: @ 8259F7D
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A5DF, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInPoisonType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F86:: @ 8259F86 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGround:: @ 8259F86
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A625, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGroundType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F8F:: @ 8259F8F BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesRock:: @ 8259F8F
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A73B, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInRockType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259F98:: @ 8259F98 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesBug:: @ 8259F98
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A6F8, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInBugType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FA1:: @ 8259FA1 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGhost:: @ 8259FA1
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A77F, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGhostType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FAA:: @ 8259FAA BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesSteel:: @ 8259FAA
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A84E, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInSteelType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FB3:: @ 8259FB3 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFire:: @ 8259FB3
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A43E, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFireType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FBC:: @ 8259FBC BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesWater:: @ 8259FBC
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A482, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInWaterType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FC5:: @ 8259FC5 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGrass:: @ 8259FC5
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A50F, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGrassType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FCE:: @ 8259FCE BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesElectric:: @ 8259FCE
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A4C7, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInElectricType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FD7:: @ 8259FD7 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesPsychic:: @ 8259FD7
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A6B1, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInPsychicType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FE0:: @ 8259FE0 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesIce:: @ 8259FE0
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A554, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInIceType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FE9:: @ 8259FE9 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesDragon:: @ 8259FE9
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A7C4, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInDragonType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FF2:: @ 8259FF2 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesDark:: @ 8259FF2
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A80A, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInDarkType, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259FFB:: @ 8259FFB BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentHasNoMostCommonType:: @ 8259FFB
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25A893, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerHasNoClearFavorite, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A004:: @ 825A004 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentStyle:: @ 825A004
compare VAR_0x8006, FACTORY_STYLE_NONE compare VAR_0x8006, FACTORY_STYLE_NONE
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A068 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleUnrestrained
compare VAR_0x8006, FACTORY_STYLE_PREPARATION compare VAR_0x8006, FACTORY_STYLE_PREPARATION
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A071 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleTotalPreparation
compare VAR_0x8006, FACTORY_STYLE_SLOW_STEADY compare VAR_0x8006, FACTORY_STYLE_SLOW_STEADY
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A07A call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleSlowAndSteady
compare VAR_0x8006, FACTORY_STYLE_ENDURANCE compare VAR_0x8006, FACTORY_STYLE_ENDURANCE
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A083 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleEndurance
compare VAR_0x8006, FACTORY_STYLE_HIGH_RISK compare VAR_0x8006, FACTORY_STYLE_HIGH_RISK
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A08C call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleHighRisk
compare VAR_0x8006, FACTORY_STYLE_WEAKENING compare VAR_0x8006, FACTORY_STYLE_WEAKENING
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A095 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleWeakenFoe
compare VAR_0x8006, FACTORY_STYLE_UNPREDICTABLE compare VAR_0x8006, FACTORY_STYLE_UNPREDICTABLE
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A09E call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleImpossibleToPredict
compare VAR_0x8006, FACTORY_STYLE_WEATHER compare VAR_0x8006, FACTORY_STYLE_WEATHER
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A0A7 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleDependsOnFlow
compare VAR_0x8006, FACTORY_NUM_STYLES compare VAR_0x8006, FACTORY_NUM_STYLES
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A0B0 call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleFlexible
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A068:: @ 825A068 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleUnrestrained:: @ 825A068
msgbox Text_StyleUnrestrained, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleUnrestrained, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A071:: @ 825A071 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleTotalPreparation:: @ 825A071
msgbox Text_StyleTotalPreparation, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleTotalPreparation, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A07A:: @ 825A07A BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleSlowAndSteady:: @ 825A07A
msgbox Text_StyleSlowAndSteady, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleSlowAndSteady, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A083:: @ 825A083 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleEndurance:: @ 825A083
msgbox Text_StyleEndurance, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleEndurance, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A08C:: @ 825A08C BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleHighRisk:: @ 825A08C
msgbox Text_StyleHighRisk, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleHighRisk, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A095:: @ 825A095 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleWeakenFoe:: @ 825A095
msgbox Text_StyleWeakenFoe, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleWeakenFoe, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A09E:: @ 825A09E BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleImpossibleToPredict:: @ 825A09E
msgbox Text_StyleImpossibleToPredict, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleImpossibleToPredict, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A0A7:: @ 825A0A7 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleDependsOnFlow:: @ 825A0A7
msgbox Text_StyleDependsOnFlow, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleDependsOnFlow, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A0B0:: @ 825A0B0 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleFlexible:: @ 825A0B0
msgbox Text_StyleFlexible, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleFlexible, MSGBOX_DEFAULT
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A0B9:: @ 825A0B9 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead:: @ 825A0B9
message BattleFrontier_BattleFactoryPreBattleRoom_Text_25AD20 message BattleFrontier_BattleFactoryPreBattleRoom_Text_PreparedToFaceHead
waitmessage waitmessage
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_23E8E0 call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_23E8E0
compare VAR_RESULT, 1 compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A110 goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHeadNoRecord
multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, 1 multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, 1
switch VAR_RESULT switch VAR_RESULT
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A146 case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapBeforeHead
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259CFC case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRecordBattle
case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D38 case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge
case 3, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D66 case 3, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A0B9 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A110:: @ 825A110 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHeadNoRecord:: @ 825A110
multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, 1 multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, 1
switch VAR_RESULT switch VAR_RESULT
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A146 case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapBeforeHead
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D38 case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge
case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259D66 case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A0B9 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A146:: @ 825A146 BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapBeforeHead:: @ 825A146
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25AD61, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_CantTellAnythingAboutHead, MSGBOX_DEFAULT
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_25AB2E, MSGBOX_YESNO msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_LikeToSwapMon, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
case NO, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259B74 case NO, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
case YES, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259DF2 case YES, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SwapMons
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_259B74 case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A17C:: @ 825A17C BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLv50:: @ 825A17C
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1B3 applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLv50
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1A0 applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLv50
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25A18B:: @ 825A18B BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLvOpen:: @ 825A18B
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1B9 applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLvOpen
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1A6 applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLvOpen
return return
BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A19A: @ 825A19A BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerEnterRoom: @ 825A19A
walk_up walk_up
walk_up walk_up
walk_up walk_up
@@ -438,7 +436,7 @@ BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A19A: @ 825A19A
walk_up walk_up
step_end step_end
BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1A0: @ 825A1A0 BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLv50: @ 825A1A0
walk_up walk_up
walk_left walk_left
walk_left walk_left
@@ -446,7 +444,7 @@ BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1A0: @ 825A1A0
walk_up walk_up
step_end step_end
BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1A6: @ 825A1A6 BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLvOpen: @ 825A1A6
walk_up walk_up
walk_right walk_right
walk_right walk_right
@@ -454,7 +452,7 @@ BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1A6: @ 825A1A6
walk_up walk_up
step_end step_end
BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1AC: @ 825A1AC BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantEnterRoom: @ 825A1AC
walk_up walk_up
walk_up walk_up
walk_up walk_up
@@ -463,7 +461,7 @@ BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1AC: @ 825A1AC
face_down face_down
step_end step_end
BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1B3: @ 825A1B3 BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLv50: @ 825A1B3
walk_left walk_left
walk_left walk_left
walk_up walk_up
@@ -471,7 +469,7 @@ BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1B3: @ 825A1B3
set_invisible set_invisible
step_end step_end
BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1B9: @ 825A1B9 BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLvOpen: @ 825A1B9
walk_right walk_right
walk_right walk_right
walk_up walk_up
@@ -479,211 +477,201 @@ BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1B9: @ 825A1B9
set_invisible set_invisible
step_end step_end
BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1BF: @ 825A1BF BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantMoveToReceiveCall: @ 825A1BF
walk_left walk_left
walk_left walk_left
walk_left walk_left
step_end step_end
BattleFrontier_BattleFactoryPreBattleRoom_Movement_25A1C3: @ 825A1C3 BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantReturnToPlayer: @ 825A1C3
walk_right walk_right
walk_right walk_right
walk_right walk_right
face_down face_down
step_end step_end
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A1C8: @ 825A1C8 BattleFrontier_BattleFactoryPreBattleRoom_Text_HoldMonsChooseFromSelection: @ 825A1C8
SlateportCity_BattleTentCorridor_Text_25A1C8: @ 825A1C8
.string "First, we will hold your POKéMON for\n" .string "First, we will hold your POKéMON for\n"
.string "safekeeping.\p" .string "safekeeping.\p"
.string "You may then choose from our\n" .string "You may then choose from our\n"
.string "selection of POKéMON.$" .string "selection of POKéMON.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A22D: @ 825A22D BattleFrontier_BattleFactoryPreBattleRoom_Text_LetUsRestoreMons: @ 825A22D
SlateportCity_BattleTentCorridor_Text_25A22D: @ 825A22D
.string "Thank you for competing!\n" .string "Thank you for competing!\n"
.string "Let us restore your POKéMON!$" .string "Let us restore your POKéMON!$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A263: @ 825A263 BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor2ndOpponent: @ 825A263
SlateportCity_BattleTentCorridor_Text_25A263: @ 825A263
.string "The 2nd match is next!\n" .string "The 2nd match is next!\n"
.string "Are you ready?$" .string "Are you ready?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A289: @ 825A289 BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor3rdOpponent: @ 825A289
SlateportCity_BattleTentCorridor_Text_25A289: @ 825A289
.string "The 3rd match is next!\n" .string "The 3rd match is next!\n"
.string "Are you ready?$" .string "Are you ready?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A2AF: @ 825A2AF BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor4thOpponent: @ 825A2AF
.string "The 4th match is next!\n" .string "The 4th match is next!\n"
.string "Are you ready?$" .string "Are you ready?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A2D5: @ 825A2D5 BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor5thOpponent: @ 825A2D5
.string "The 5th match is next!\n" .string "The 5th match is next!\n"
.string "Are you ready?$" .string "Are you ready?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A2FB: @ 825A2FB BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor6thOpponent: @ 825A2FB
.string "The 6th match is next!\n" .string "The 6th match is next!\n"
.string "Are you ready?$" .string "Are you ready?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A321: @ 825A321 BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor7thOpponent: @ 825A321
.string "Finally, the 7th match is next!\n" .string "Finally, the 7th match is next!\n"
.string "Are you ready?$" .string "Are you ready?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A350: @ 825A350 BattleFrontier_BattleFactoryPreBattleRoom_Text_SaveAndQuitGame: @ 825A350
SlateportCity_BattleTentCorridor_Text_25A350: @ 825A350
.string "Would you like to save and quit\n" .string "Would you like to save and quit\n"
.string "the game?$" .string "the game?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A37A: @ 825A37A BattleFrontier_BattleFactoryPreBattleRoom_Text_RetireFromChallenge: @ 825A37A
SlateportCity_BattleTentCorridor_Text_25A37A: @ 825A37A
.string "Would you like to retire from your\n" .string "Would you like to retire from your\n"
.string "Battle Swap challenge?$" .string "Battle Swap challenge?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A3B4: @ 825A3B4 BattleFrontier_BattleFactoryPreBattleRoom_Text_InvestigatedUpcomingOpponent: @ 825A3B4
.string "I've conducted a little investigation\n" .string "I've conducted a little investigation\n"
.string "about your upcoming opponent.$" .string "about your upcoming opponent.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A3F8: @ 825A3F8 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInNormalType: @ 825A3F8
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the NORMAL type.$" .string "in the handling of the NORMAL type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A43E: @ 825A43E BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFireType: @ 825A43E
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the FIRE type.$" .string "in the handling of the FIRE type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A482: @ 825A482 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInWaterType: @ 825A482
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the WATER type.$" .string "in the handling of the WATER type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A4C7: @ 825A4C7 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInElectricType: @ 825A4C7
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the ELECTRIC type.$" .string "in the handling of the ELECTRIC type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A50F: @ 825A50F BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGrassType: @ 825A50F
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the GRASS type.$" .string "in the handling of the GRASS type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A554: @ 825A554 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInIceType: @ 825A554
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the ICE type.$" .string "in the handling of the ICE type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A597: @ 825A597 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFightingType: @ 825A597
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the FIGHTING type.$" .string "in the handling of the FIGHTING type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A5DF: @ 825A5DF BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInPoisonType: @ 825A5DF
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the POISON type.$" .string "in the handling of the POISON type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A625: @ 825A625 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGroundType: @ 825A625
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the GROUND type.$" .string "in the handling of the GROUND type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A66B: @ 825A66B BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFlyingType: @ 825A66B
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the FLYING type.$" .string "in the handling of the FLYING type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A6B1: @ 825A6B1 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInPsychicType: @ 825A6B1
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the PSYCHIC type.$" .string "in the handling of the PSYCHIC type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A6F8: @ 825A6F8 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInBugType: @ 825A6F8
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the BUG type.$" .string "in the handling of the BUG type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A73B: @ 825A73B BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInRockType: @ 825A73B
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the ROCK type.$" .string "in the handling of the ROCK type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A77F: @ 825A77F BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGhostType: @ 825A77F
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the GHOST type.$" .string "in the handling of the GHOST type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A7C4: @ 825A7C4 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInDragonType: @ 825A7C4
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the DRAGON type.$" .string "in the handling of the DRAGON type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A80A: @ 825A80A BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInDarkType: @ 825A80A
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the DARK type.$" .string "in the handling of the DARK type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A84E: @ 825A84E BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInSteelType: @ 825A84E
.string "The TRAINER is apparently skilled\n" .string "The TRAINER is apparently skilled\n"
.string "in the handling of the STEEL type.$" .string "in the handling of the STEEL type.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25A893: @ 825A893 BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerHasNoClearFavorite: @ 825A893
.string "The TRAINER appears to have no clear\n" .string "The TRAINER appears to have no clear\n"
.string "favorites when it comes to type.$" .string "favorites when it comes to type.$"
Text_StyleSlowAndSteady: @ 825A8D9 BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleSlowAndSteady: @ 825A8D9
.string "The favorite battle style appears to\n" .string "The favorite battle style appears to\n"
.string "be slow and steady.$" .string "be slow and steady.$"
Text_StyleEndurance: @ 825A912 BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleEndurance: @ 825A912
.string "The favorite battle style appears to\n" .string "The favorite battle style appears to\n"
.string "be one of endurance.$" .string "be one of endurance.$"
Text_StyleHighRisk: @ 825A94C BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleHighRisk: @ 825A94C
.string "The favorite battle style appears to\n" .string "The favorite battle style appears to\n"
.string "be high risk, high return.$" .string "be high risk, high return.$"
Text_StyleDependsOnFlow: @ 825A98C BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleDependsOnFlow: @ 825A98C
.string "The favorite battle style appears to\n" .string "The favorite battle style appears to\n"
.string "depend on the battle's flow.$" .string "depend on the battle's flow.$"
Text_StyleTotalPreparation: @ 825A9CE BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleTotalPreparation: @ 825A9CE
.string "The favorite battle style appears to\n" .string "The favorite battle style appears to\n"
.string "be one based on total preparation.$" .string "be one based on total preparation.$"
Text_StyleWeakenFoe: @ 825AA16 BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleWeakenFoe: @ 825AA16
.string "The favorite battle style appears\n" .string "The favorite battle style appears\n"
.string "to be weakening the foe to start.$" .string "to be weakening the foe to start.$"
Text_StyleFlexible: @ 825AA5A BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleFlexible: @ 825AA5A
.string "The favorite battle style appears to\n" .string "The favorite battle style appears to\n"
.string "be flexibly adaptable to the situation.$" .string "be flexibly adaptable to the situation.$"
Text_StyleImpossibleToPredict: @ 825AAA7 BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleImpossibleToPredict: @ 825AAA7
.string "The favorite battle style appears to\n" .string "The favorite battle style appears to\n"
.string "be impossible to predict.$" .string "be impossible to predict.$"
Text_StyleUnrestrained: @ 825AAE6 BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleUnrestrained: @ 825AAE6
.string "The favorite battle style appears to\n" .string "The favorite battle style appears to\n"
.string "be free-spirited and unrestrained.$" .string "be free-spirited and unrestrained.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25AB2E: @ 825AB2E BattleFrontier_BattleFactoryPreBattleRoom_Text_LikeToSwapMon: @ 825AB2E
SlateportCity_BattleTentCorridor_Text_25AB2E: @ 825AB2E
.string "Before starting the battle, would you\n" .string "Before starting the battle, would you\n"
.string "like to swap a POKéMON?$" .string "like to swap a POKéMON?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25AB6C: @ 825AB6C BattleFrontier_BattleFactoryPreBattleRoom_Text_YourSwapIsComplete: @ 825AB6C
SlateportCity_BattleTentCorridor_Text_25AB6C: @ 825AB6C
.string "Thank you!\n" .string "Thank you!\n"
.string "Your POKéMON swap is complete.$" .string "Your POKéMON swap is complete.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25AB96: @ 825AB96 BattleFrontier_BattleFactoryPreBattleRoom_Text_RightThisWay: @ 825AB96
SlateportCity_BattleTentCorridor_Text_25AB96: @ 825AB96
.string "Right this way, please!$" .string "Right this way, please!$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25ABAE: @ 825ABAE BattleFrontier_BattleFactoryPreBattleRoom_Text_SavingDataPleaseWait: @ 825ABAE
SlateportCity_BattleTentCorridor_Text_25ABAE: @ 825ABAE
.string "I am saving your data.\n" .string "I am saving your data.\n"
.string "Please wait.$" .string "Please wait.$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25ABD2: @ 825ABD2 BattleFrontier_BattleFactoryPreBattleRoom_Text_RecordLatestBattle: @ 825ABD2
.string "Would you like to record your latest\n" .string "Would you like to record your latest\n"
.string "battle on your FRONTIER PASS?$" .string "battle on your FRONTIER PASS?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25AC15: @ 825AC15 BattleFrontier_BattleFactoryPreBattleRoom_Text_WaitFewMoments: @ 825AC15
.string "Excuse me! Excuse me, please!\n" .string "Excuse me! Excuse me, please!\n"
.string "May I get you to wait a few moments?$" .string "May I get you to wait a few moments?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25AC58: @ 825AC58 BattleFrontier_BattleFactoryPreBattleRoom_Text_UnderstoodSirWillDo: @ 825AC58
.string "…Uh-huh? What?! …Whoa!\n" .string "…Uh-huh? What?! …Whoa!\n"
.string "Understood, sir! Will do!$" .string "Understood, sir! Will do!$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25AC89: @ 825AC89 BattleFrontier_BattleFactoryPreBattleRoom_Text_MessageFromHeadComeRightNow: @ 825AC89
.string "Oh, my…\n" .string "Oh, my…\n"
.string "Sorry to keep you waiting!\p" .string "Sorry to keep you waiting!\p"
.string "I have a message from this facility's\n" .string "I have a message from this facility's\n"
@@ -691,10 +679,10 @@ BattleFrontier_BattleFactoryPreBattleRoom_Text_25AC89: @ 825AC89
.string "He says, “We're going to do it!\n" .string "He says, “We're going to do it!\n"
.string "Come here right now!”$" .string "Come here right now!”$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25AD20: @ 825AD20 BattleFrontier_BattleFactoryPreBattleRoom_Text_PreparedToFaceHead: @ 825AD20
.string "The FACTORY HEAD is demanding you.\n" .string "The FACTORY HEAD is demanding you.\n"
.string "Are you prepared to face him?$" .string "Are you prepared to face him?$"
BattleFrontier_BattleFactoryPreBattleRoom_Text_25AD61: @ 825AD61 BattleFrontier_BattleFactoryPreBattleRoom_Text_CantTellAnythingAboutHead: @ 825AD61
.string "I'm terribly sorry, but I can't tell you\n" .string "I'm terribly sorry, but I can't tell you\n"
.string "anything about the FACTORY HEAD.$" .string "anything about the FACTORY HEAD.$"
@@ -1,7 +1,7 @@
{ {
"id": "MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE", "id": "MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR",
"name": "BattleFrontier_BattlePyramidEmptySquare", "name": "BattleFrontier_BattlePyramidFloor",
"layout": "LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE", "layout": "LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR",
"music": "MUS_NONE", "music": "MUS_NONE",
"region_map_section": "MAPSEC_BATTLE_FRONTIER", "region_map_section": "MAPSEC_BATTLE_FRONTIER",
"requires_flash": false, "requires_flash": false,
@@ -1,73 +1,72 @@
BattleFrontier_BattlePyramidEmptySquare_MapScripts:: @ 8252A33 BattleFrontier_BattlePyramidFloor_MapScripts:: @ 8252A33
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePyramidEmptySquare_MapScript1_252AA2 map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePyramidFloor_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePyramidEmptySquare_MapScript2_252A43 map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePyramidFloor_OnFrame
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePyramidEmptySquare_MapScript1_252BCA map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePyramidFloor_OnTransition
.byte 0 .byte 0
BattleFrontier_BattlePyramidEmptySquare_MapScript2_252A43: @ 8252A43 BattleFrontier_BattlePyramidFloor_OnFrame: @ 8252A43
map_script_2 VAR_TEMP_D, 1, BattleFrontier_BattlePyramidEmptySquare_EventScript_252A5D map_script_2 VAR_TEMP_D, 1, BattleFrontier_BattlePyramidFloor_EventScript_UpdateLight
map_script_2 VAR_TEMP_E, 0, BattleFrontier_BattlePyramidEmptySquare_EventScript_252A98 map_script_2 VAR_TEMP_E, 0, BattleFrontier_BattlePyramidFloor_EventScript_PlayPyramidMusic
map_script_2 VAR_TEMP_F, 1, BattleFrontier_BattlePyramidEmptySquare_EventScript_252A8F map_script_2 VAR_TEMP_F, 1, BattleFrontier_BattlePyramidFloor_EventScript_ShowMapName
.2byte 0 .2byte 0
BattleFrontier_BattlePyramidEmptySquare_EventScript_252A5D:: @ 8252A5D BattleFrontier_BattlePyramidFloor_EventScript_UpdateLight:: @ 8252A5D
lockall lockall
@ pyramid_updatelight, cant use macro because it straddles the loop
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_UPDATE_LIGHT setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_UPDATE_LIGHT
setvar VAR_0x8005, 4 setvar VAR_0x8005, 4
setvar VAR_0x8006, PYRAMID_LIGHT_INCR_RADIUS setvar VAR_0x8006, PYRAMID_LIGHT_INCR_RADIUS
setvar VAR_0x8007, SE_SAVE setvar VAR_0x8007, SE_SAVE
setvar VAR_RESULT, 0 setvar VAR_RESULT, 0
BattleFrontier_BattlePyramidEmptySquare_EventScript_252A77:: @ 8252A77 BattleFrontier_BattlePyramidFloor_EventScript_UpdateLightLoop:: @ 8252A77
special CallBattlePyramidFunction special CallBattlePyramidFunction
delay 2 delay 2
compare VAR_RESULT, 2 compare VAR_RESULT, 2
goto_if_ne BattleFrontier_BattlePyramidEmptySquare_EventScript_252A77 goto_if_ne BattleFrontier_BattlePyramidFloor_EventScript_UpdateLightLoop
setvar VAR_TEMP_D, 0 setvar VAR_TEMP_D, 0
releaseall releaseall
end end
BattleFrontier_BattlePyramidEmptySquare_EventScript_252A8F:: @ 8252A8F BattleFrontier_BattlePyramidFloor_EventScript_ShowMapName:: @ 8252A8F
special ShowMapNamePopup special ShowMapNamePopup
setvar VAR_TEMP_F, 0 setvar VAR_TEMP_F, 0
end end
BattleFrontier_BattlePyramidEmptySquare_EventScript_252A98:: @ 8252A98 BattleFrontier_BattlePyramidFloor_EventScript_PlayPyramidMusic:: @ 8252A98
playbgm MUS_PYRAMID, 0 playbgm MUS_PYRAMID, 0
setvar VAR_TEMP_E, 1 setvar VAR_TEMP_E, 1
end end
BattleFrontier_BattlePyramidEmptySquare_MapScript1_252AA2: @ 8252AA2 BattleFrontier_BattlePyramidFloor_OnResume: @ 8252AA2
pyramid_setfloorpal pyramid_setfloorpal
frontier_getstatus frontier_getstatus
switch VAR_TEMP_0 switch VAR_TEMP_0
case 0, BattleFrontier_BattlePyramidEmptySquare_EventScript_252B8D case 0, BattleFrontier_BattlePyramidFloor_EventScript_ReadyChallenge
case CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePyramidEmptySquare_EventScript_252B66 case CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePyramid_EventScript_WarpToLobby
case CHALLENGE_STATUS_PAUSED, BattleFrontier_BattlePyramidEmptySquare_EventScript_252B8D case CHALLENGE_STATUS_PAUSED, BattleFrontier_BattlePyramidFloor_EventScript_ReadyChallenge
frontier_get FRONTIER_DATA_BATTLE_OUTCOME frontier_get FRONTIER_DATA_BATTLE_OUTCOME
compare VAR_RESULT, B_OUTCOME_RAN compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq BattleFrontier_BattlePyramidEmptySquare_EventScript_252B39 goto_if_eq BattleFrontier_BattlePyramidFloor_EventScript_ResetParty
compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq BattleFrontier_BattlePyramidEmptySquare_EventScript_252B39 goto_if_eq BattleFrontier_BattlePyramidFloor_EventScript_ResetParty
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattlePyramidEmptySquare_EventScript_252B39 goto_if_eq BattleFrontier_BattlePyramidFloor_EventScript_ResetParty
compare VAR_RESULT, B_OUTCOME_LOST compare VAR_RESULT, B_OUTCOME_LOST
goto_if_eq BattleFrontier_BattlePyramidEmptySquare_EventScript_252B42 goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
compare VAR_RESULT, B_OUTCOME_DREW compare VAR_RESULT, B_OUTCOME_DREW
goto_if_eq BattleFrontier_BattlePyramidEmptySquare_EventScript_252B42 goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
compare VAR_RESULT, B_OUTCOME_FORFEITED compare VAR_RESULT, B_OUTCOME_FORFEITED
goto_if_eq BattleFrontier_BattlePyramidEmptySquare_EventScript_252B42 goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
frontier_isbattletype BATTLE_TYPE_TRAINER @ VAR_RESULT seems to be ignored here frontier_isbattletype BATTLE_TYPE_TRAINER @ VAR_RESULT seems to be ignored here
setvar VAR_TEMP_D, 1 setvar VAR_TEMP_D, 1
BattleFrontier_BattlePyramidEmptySquare_EventScript_252B39:: @ 8252B39 BattleFrontier_BattlePyramidFloor_EventScript_ResetParty:: @ 8252B39
pyramid_healparty pyramid_resetparty
end end
BattleFrontier_BattlePyramidEmptySquare_EventScript_252B42:: @ 8252B42 BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost:: @ 8252B42
BattleFrontier_BattlePyramidTop_EventScript_252B42:: @ 8252B42
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
pyramid_set PYRAMID_DATA_TRAINER_FLAGS, 255 pyramid_set PYRAMID_DATA_TRAINER_FLAGS, 255
BattleFrontier_BattlePyramidEmptySquare_EventScript_252B66:: @ 8252B66 BattleFrontier_BattlePyramid_EventScript_WarpToLobby:: @ 8252B66
BattleFrontier_BattlePyramidTop_EventScript_252B66:: @ 8252B66
pyramid_updatelight 0, PYRAMID_LIGHT_SET_RADIUS pyramid_updatelight 0, PYRAMID_LIGHT_SET_RADIUS
pyramid_clearhelditems pyramid_clearhelditems
special HealPlayerParty special HealPlayerParty
@@ -75,39 +74,39 @@ BattleFrontier_BattlePyramidTop_EventScript_252B66:: @ 8252B66
waitstate waitstate
end end
BattleFrontier_BattlePyramidEmptySquare_EventScript_252B8D:: @ 8252B8D BattleFrontier_BattlePyramidFloor_EventScript_ReadyChallenge:: @ 8252B8D
pyramid_save CHALLENGE_STATUS_SAVING pyramid_save CHALLENGE_STATUS_SAVING
special SavePlayerParty special SavePlayerParty
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0 frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
pyramid_inittrainers pyramid_settrainers
frontier_setpartyorder FRONTIER_PARTY_SIZE frontier_setpartyorder FRONTIER_PARTY_SIZE
setvar VAR_TEMP_F, 1 setvar VAR_TEMP_F, 1
end end
BattleFrontier_BattlePyramidEmptySquare_MapScript1_252BCA: @ 8252BCA BattleFrontier_BattlePyramidFloor_OnTransition: @ 8252BCA
call BattleFrontier_BattlePyramidEmptySquare_EventScript_252BD5 call BattleFrontier_BattlePyramidFloor_EventScript_SetLightRadius
setvar VAR_TEMP_F, 1 setvar VAR_TEMP_F, 1
end end
BattleFrontier_BattlePyramidEmptySquare_EventScript_252BD5:: @ 8252BD5 BattleFrontier_BattlePyramidFloor_EventScript_SetLightRadius:: @ 8252BD5
pyramid_updatelight 32, PYRAMID_LIGHT_SET_RADIUS pyramid_updatelight 32, PYRAMID_LIGHT_SET_RADIUS
return return
BattleFrontier_BattlePyramidEmptySquare_EventScript_252BE8:: @ 8252BE8 BattlePyramid_WarpToNextFloor:: @ 8252BE8
call BattleFrontier_EventScript_IncrementWinStreak call BattleFrontier_EventScript_IncrementWinStreak
frontier_get FRONTIER_DATA_BATTLE_NUM @ Floor number frontier_get FRONTIER_DATA_BATTLE_NUM @ Floor number
addvar VAR_RESULT, 1 addvar VAR_RESULT, 1
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
compare VAR_RESULT, 7 compare VAR_RESULT, 7
goto_if_eq BattleFrontier_BattlePyramidEmptySquare_EventScript_252C45 goto_if_eq BattlePyramid_WarpToTop
pyramid_seedfloor pyramid_seedfloor
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0 frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
setvar VAR_RESULT, 0 setvar VAR_RESULT, 0
warp MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE, 255, 1, 1 warp MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR, 255, 1, 1
waitstate waitstate
end end
BattleFrontier_BattlePyramidEmptySquare_EventScript_252C45:: @ 8252C45 BattlePyramid_WarpToTop:: @ 8252C45
warp MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP, 255, 17, 17 warp MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP, 255, 17, 17
waitstate waitstate
end end
@@ -126,14 +125,15 @@ BattlePyramid_FindItemBall:: @ 8252C6A
pyramid_setitem pyramid_setitem
callstd STD_FIND_ITEM callstd STD_FIND_ITEM
compare VAR_0x8007, 0 compare VAR_0x8007, 0
goto_if_eq BattlePyramid_FindItemBall_End goto_if_eq BattlePyramid_FindItemBallEnd
pyramid_hideitem pyramid_hideitem
BattlePyramid_FindItemBall_End:: @ 8252C87 BattlePyramid_FindItemBallEnd:: @ 8252C87
end end
BattleFrontier_BattlePyramidEmptySquare_EventScript_252C88:: @ 8252C88 BattlePyramid_Retire:: @ 8252C88
goto BattleFrontier_BattlePyramidTop_EventScript_252B42 goto BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
@ Also used by Trainer Hill
BattleFacility_TrainerBattle_PlaceholderText: @ 8252C8D BattleFacility_TrainerBattle_PlaceholderText: @ 8252C8D
.string "This is a sample message.$" .string "This is a sample message.$"
@@ -146,595 +146,595 @@ gText_BattlePyramidConfirmRetire:: @ 8252CFB
.string "Are you sure you want to quit your\n" .string "Are you sure you want to quit your\n"
.string "PYRAMID quest?$" .string "PYRAMID quest?$"
BattlePyramid_ExitHintUp_Text1:: @ 8252D2D BattlePyramid_Text_ExitHintUp1:: @ 8252D2D
.string "This floor's exit is in\n" .string "This floor's exit is in\n"
.string "that direction: {UP_ARROW}$" .string "that direction: {UP_ARROW}$"
BattlePyramid_ExitHintLeft_Text1:: @ 8252D57 BattlePyramid_Text_ExitHintLeft1:: @ 8252D57
.string "This floor's exit is in\n" .string "This floor's exit is in\n"
.string "that direction: {LEFT_ARROW}$" .string "that direction: {LEFT_ARROW}$"
BattlePyramid_ExitHintRight_Text1:: @ 8252D81 BattlePyramid_Text_ExitHintRight1:: @ 8252D81
.string "This floor's exit is in\n" .string "This floor's exit is in\n"
.string "that direction: {RIGHT_ARROW}$" .string "that direction: {RIGHT_ARROW}$"
BattlePyramid_ExitHintDown_Text1:: @ 8252DAB BattlePyramid_Text_ExitHintDown1:: @ 8252DAB
.string "This floor's exit is in\n" .string "This floor's exit is in\n"
.string "that direction: {DOWN_ARROW}$" .string "that direction: {DOWN_ARROW}$"
BattlePyramid_ExitHintUp_Text2:: @ 8252DD5 BattlePyramid_Text_ExitHintUp2:: @ 8252DD5
.string "The exit on this floor is in\n" .string "The exit on this floor is in\n"
.string "the {UP_ARROW} direction.$" .string "the {UP_ARROW} direction.$"
BattlePyramid_ExitHintLeft_Text2:: @ 8252E03 BattlePyramid_Text_ExitHintLeft2:: @ 8252E03
.string "The exit on this floor is in\n" .string "The exit on this floor is in\n"
.string "the {LEFT_ARROW} direction.$" .string "the {LEFT_ARROW} direction.$"
BattlePyramid_ExitHintRight_Text2:: @ 8252E31 BattlePyramid_Text_ExitHintRight2:: @ 8252E31
.string "The exit on this floor is in\n" .string "The exit on this floor is in\n"
.string "the {RIGHT_ARROW} direction.$" .string "the {RIGHT_ARROW} direction.$"
BattlePyramid_ExitHintDown_Text2:: @ 8252E5F BattlePyramid_Text_ExitHintDown2:: @ 8252E5F
.string "The exit on this floor is in\n" .string "The exit on this floor is in\n"
.string "the {DOWN_ARROW} direction.$" .string "the {DOWN_ARROW} direction.$"
BattlePyramid_ExitHintUp_Text3:: @ 8252E8D BattlePyramid_Text_ExitHintUp3:: @ 8252E8D
.string "The exit is over\n" .string "The exit is over\n"
.string "that {UP_ARROW} way.$" .string "that {UP_ARROW} way.$"
BattlePyramid_ExitHintLeft_Text3:: @ 8252EAA BattlePyramid_Text_ExitHintLeft3:: @ 8252EAA
.string "The exit is over\n" .string "The exit is over\n"
.string "that {LEFT_ARROW} way.$" .string "that {LEFT_ARROW} way.$"
BattlePyramid_ExitHintRight_Text3:: @ 8252EC7 BattlePyramid_Text_ExitHintRight3:: @ 8252EC7
.string "The exit is over\n" .string "The exit is over\n"
.string "that {RIGHT_ARROW} way.$" .string "that {RIGHT_ARROW} way.$"
BattlePyramid_ExitHintDown_Text3:: @ 8252EE4 BattlePyramid_Text_ExitHintDown3:: @ 8252EE4
.string "The exit is over\n" .string "The exit is over\n"
.string "that {DOWN_ARROW} way.$" .string "that {DOWN_ARROW} way.$"
BattlePyramid_ExitHintUp_Text4:: @ 8252F01 BattlePyramid_Text_ExitHintUp4:: @ 8252F01
.string "On this floor, the exit is somewhere\n" .string "On this floor, the exit is somewhere\n"
.string "in the {UP_ARROW} direction.$" .string "in the {UP_ARROW} direction.$"
BattlePyramid_ExitHintLeft_Text4:: @ 8252F3A BattlePyramid_Text_ExitHintLeft4:: @ 8252F3A
.string "On this floor, the exit is somewhere\n" .string "On this floor, the exit is somewhere\n"
.string "in the {LEFT_ARROW} direction.$" .string "in the {LEFT_ARROW} direction.$"
BattlePyramid_ExitHintRight_Text4:: @ 8252F73 BattlePyramid_Text_ExitHintRight4:: @ 8252F73
.string "On this floor, the exit is somewhere\n" .string "On this floor, the exit is somewhere\n"
.string "in the {RIGHT_ARROW} direction.$" .string "in the {RIGHT_ARROW} direction.$"
BattlePyramid_ExitHintDown_Text4:: @ 8252FAC BattlePyramid_Text_ExitHintDown4:: @ 8252FAC
.string "On this floor, the exit is somewhere\n" .string "On this floor, the exit is somewhere\n"
.string "in the {DOWN_ARROW} direction.$" .string "in the {DOWN_ARROW} direction.$"
BattlePyramid_ExitHintUp_Text5:: @ 8252FE5 BattlePyramid_Text_ExitHintUp5:: @ 8252FE5
.string "The exit?\n" .string "The exit?\n"
.string "It's that {UP_ARROW} way.$" .string "It's that {UP_ARROW} way.$"
BattlePyramid_ExitHintLeft_Text5:: @ 8253000 BattlePyramid_Text_ExitHintLeft5:: @ 8253000
.string "The exit?\n" .string "The exit?\n"
.string "It's that {LEFT_ARROW} way.$" .string "It's that {LEFT_ARROW} way.$"
BattlePyramid_ExitHintRight_Text5:: @ 825301B BattlePyramid_Text_ExitHintRight5:: @ 825301B
.string "The exit?\n" .string "The exit?\n"
.string "It's that {RIGHT_ARROW} way.$" .string "It's that {RIGHT_ARROW} way.$"
BattlePyramid_ExitHintDown_Text5:: @ 8253036 BattlePyramid_Text_ExitHintDown5:: @ 8253036
.string "The exit?\n" .string "The exit?\n"
.string "It's that {DOWN_ARROW} way.$" .string "It's that {DOWN_ARROW} way.$"
BattlePyramid_ExitHintUp_Text6:: @ 8253051 BattlePyramid_Text_ExitHintUp6:: @ 8253051
.string "The exit happens to be in\n" .string "The exit happens to be in\n"
.string "the {UP_ARROW} direction.$" .string "the {UP_ARROW} direction.$"
BattlePyramid_ExitHintLeft_Text6:: @ 825307C BattlePyramid_Text_ExitHintLeft6:: @ 825307C
.string "The exit happens to be in\n" .string "The exit happens to be in\n"
.string "the {LEFT_ARROW} direction.$" .string "the {LEFT_ARROW} direction.$"
BattlePyramid_ExitHintRight_Text6:: @ 82530A7 BattlePyramid_Text_ExitHintRight6:: @ 82530A7
.string "The exit happens to be in\n" .string "The exit happens to be in\n"
.string "the {RIGHT_ARROW} direction.$" .string "the {RIGHT_ARROW} direction.$"
BattlePyramid_ExitHintDown_Text6:: @ 82530D2 BattlePyramid_Text_ExitHintDown6:: @ 82530D2
.string "The exit happens to be in\n" .string "The exit happens to be in\n"
.string "the {DOWN_ARROW} direction.$" .string "the {DOWN_ARROW} direction.$"
BattlePyramid_EightItemsRemaining_Text1:: @ 82530FD BattlePyramid_Text_EightItemsRemaining1:: @ 82530FD
.string "Are you looking for items?\p" .string "Are you looking for items?\p"
.string "There are eight items left to\n" .string "There are eight items left to\n"
.string "be found.$" .string "be found.$"
BattlePyramid_SevenItemsRemaining_Text1:: @ 8253140 BattlePyramid_Text_SevenItemsRemaining1:: @ 8253140
.string "Are you looking for items?\p" .string "Are you looking for items?\p"
.string "There are seven items left to\n" .string "There are seven items left to\n"
.string "be found.$" .string "be found.$"
BattlePyramid_SixItemsRemaining_Text1:: @ 8253183 BattlePyramid_Text_SixItemsRemaining1:: @ 8253183
.string "Are you looking for items?\p" .string "Are you looking for items?\p"
.string "There are six items left to\n" .string "There are six items left to\n"
.string "be found.$" .string "be found.$"
BattlePyramid_FiveItemsRemaining_Text1:: @ 82531C4 BattlePyramid_Text_FiveItemsRemaining1:: @ 82531C4
.string "Are you looking for items?\p" .string "Are you looking for items?\p"
.string "There are five items left to\n" .string "There are five items left to\n"
.string "be found.$" .string "be found.$"
BattlePyramid_FourItemsRemaining_Text1:: @ 8253206 BattlePyramid_Text_FourItemsRemaining1:: @ 8253206
.string "Are you looking for items?\p" .string "Are you looking for items?\p"
.string "There are four items left to\n" .string "There are four items left to\n"
.string "be found.$" .string "be found.$"
BattlePyramid_ThreeItemsRemaining_Text1:: @ 8253248 BattlePyramid_Text_ThreeItemsRemaining1:: @ 8253248
.string "Are you looking for items?\p" .string "Are you looking for items?\p"
.string "There are three items left to\n" .string "There are three items left to\n"
.string "be found.$" .string "be found.$"
BattlePyramid_TwoItemsRemaining_Text1:: @ 825328B BattlePyramid_Text_TwoItemsRemaining1:: @ 825328B
.string "Are you looking for items?\p" .string "Are you looking for items?\p"
.string "There are two items left to\n" .string "There are two items left to\n"
.string "be found.$" .string "be found.$"
BattlePyramid_OneItemRemaining_Text1:: @ 82532CC BattlePyramid_Text_OneItemRemaining1:: @ 82532CC
.string "Are you looking for items?\p" .string "Are you looking for items?\p"
.string "There is one item left to\n" .string "There is one item left to\n"
.string "be found.$" .string "be found.$"
BattlePyramid_ZeroItemsRemaining_Text1:: @ 825330B BattlePyramid_Text_ZeroItemsRemaining1:: @ 825330B
.string "Are you looking for items?\p" .string "Are you looking for items?\p"
.string "There isn't anything left to\n" .string "There isn't anything left to\n"
.string "be found!$" .string "be found!$"
BattlePyramid_EightItemsRemaining_Text2:: @ 825334D BattlePyramid_Text_EightItemsRemaining2:: @ 825334D
.string "Because you won, I'll tell you\n" .string "Because you won, I'll tell you\n"
.string "a little secret!\p" .string "a little secret!\p"
.string "There are eight items\n" .string "There are eight items\n"
.string "lying around here.$" .string "lying around here.$"
BattlePyramid_SevenItemsRemaining_Text2:: @ 82533A6 BattlePyramid_Text_SevenItemsRemaining2:: @ 82533A6
.string "Because you won, I'll tell you\n" .string "Because you won, I'll tell you\n"
.string "a little secret!\p" .string "a little secret!\p"
.string "There are seven items left\n" .string "There are seven items left\n"
.string "lying around here.$" .string "lying around here.$"
BattlePyramid_SixItemsRemaining_Text2:: @ 8253404 BattlePyramid_Text_SixItemsRemaining2:: @ 8253404
.string "Because you won, I'll tell you\n" .string "Because you won, I'll tell you\n"
.string "a little secret!\p" .string "a little secret!\p"
.string "There are six items left\n" .string "There are six items left\n"
.string "lying around here.$" .string "lying around here.$"
BattlePyramid_FiveItemsRemaining_Text2:: @ 8253460 BattlePyramid_Text_FiveItemsRemaining2:: @ 8253460
.string "Because you won, I'll tell you\n" .string "Because you won, I'll tell you\n"
.string "a little secret!\p" .string "a little secret!\p"
.string "There are five items left\n" .string "There are five items left\n"
.string "lying around here.$" .string "lying around here.$"
BattlePyramid_FourItemsRemaining_Text2:: @ 82534BD BattlePyramid_Text_FourItemsRemaining2:: @ 82534BD
.string "Because you won, I'll tell you\n" .string "Because you won, I'll tell you\n"
.string "a little secret!\p" .string "a little secret!\p"
.string "There are four items left\n" .string "There are four items left\n"
.string "lying around here.$" .string "lying around here.$"
BattlePyramid_ThreeItemsRemaining_Text2:: @ 825351A BattlePyramid_Text_ThreeItemsRemaining2:: @ 825351A
.string "Because you won, I'll tell you\n" .string "Because you won, I'll tell you\n"
.string "a little secret!\p" .string "a little secret!\p"
.string "There are three items left\n" .string "There are three items left\n"
.string "lying around here.$" .string "lying around here.$"
BattlePyramid_TwoItemsRemaining_Text2:: @ 8253578 BattlePyramid_Text_TwoItemsRemaining2:: @ 8253578
.string "Because you won, I'll tell you\n" .string "Because you won, I'll tell you\n"
.string "a little secret!\p" .string "a little secret!\p"
.string "There are two items left\n" .string "There are two items left\n"
.string "lying around here.$" .string "lying around here.$"
BattlePyramid_OneItemRemaining_Text2:: @ 82535D4 BattlePyramid_Text_OneItemRemaining2:: @ 82535D4
.string "Because you won, I'll tell you\n" .string "Because you won, I'll tell you\n"
.string "a little secret!\p" .string "a little secret!\p"
.string "There is just one item\n" .string "There is just one item\n"
.string "lying around here.$" .string "lying around here.$"
BattlePyramid_ZeroItemsRemaining_Text2:: @ 825362E BattlePyramid_Text_ZeroItemsRemaining2:: @ 825362E
.string "Because you won, I'll tell you\n" .string "Because you won, I'll tell you\n"
.string "a little secret!\p" .string "a little secret!\p"
.string "There isn't anything left\n" .string "There isn't anything left\n"
.string "lying around here.$" .string "lying around here.$"
BattlePyramid_EightItemsRemaining_Text3:: @ 825368B BattlePyramid_Text_EightItemsRemaining3:: @ 825368B
.string "How's your stock of items holding up?\p" .string "How's your stock of items holding up?\p"
.string "I reckon there are eight items left\n" .string "I reckon there are eight items left\n"
.string "waiting to be found on this floor.$" .string "waiting to be found on this floor.$"
BattlePyramid_SevenItemsRemaining_Text3:: @ 82536F8 BattlePyramid_Text_SevenItemsRemaining3:: @ 82536F8
.string "How's your stock of items holding up?\p" .string "How's your stock of items holding up?\p"
.string "I reckon there are seven items left\n" .string "I reckon there are seven items left\n"
.string "waiting to be found on this floor.$" .string "waiting to be found on this floor.$"
BattlePyramid_SixItemsRemaining_Text3:: @ 8253765 BattlePyramid_Text_SixItemsRemaining3:: @ 8253765
.string "How's your stock of items holding up?\p" .string "How's your stock of items holding up?\p"
.string "I reckon there are six items left\n" .string "I reckon there are six items left\n"
.string "waiting to be found on this floor.$" .string "waiting to be found on this floor.$"
BattlePyramid_FiveItemsRemaining_Text3:: @ 82537D0 BattlePyramid_Text_FiveItemsRemaining3:: @ 82537D0
.string "How's your stock of items holding up?\p" .string "How's your stock of items holding up?\p"
.string "I reckon there are five items left\n" .string "I reckon there are five items left\n"
.string "waiting to be found on this floor.$" .string "waiting to be found on this floor.$"
BattlePyramid_FourItemsRemaining_Text3:: @ 825383C BattlePyramid_Text_FourItemsRemaining3:: @ 825383C
.string "How's your stock of items holding up?\p" .string "How's your stock of items holding up?\p"
.string "I reckon there are four items left\n" .string "I reckon there are four items left\n"
.string "waiting to be found on this floor.$" .string "waiting to be found on this floor.$"
BattlePyramid_ThreeItemsRemaining_Text3:: @ 82538A8 BattlePyramid_Text_ThreeItemsRemaining3:: @ 82538A8
.string "How's your stock of items holding up?\p" .string "How's your stock of items holding up?\p"
.string "I reckon there are three items left\n" .string "I reckon there are three items left\n"
.string "waiting to be found on this floor.$" .string "waiting to be found on this floor.$"
BattlePyramid_TwoItemsRemaining_Text3:: @ 8253915 BattlePyramid_Text_TwoItemsRemaining3:: @ 8253915
.string "How's your stock of items holding up?\p" .string "How's your stock of items holding up?\p"
.string "I reckon there are two items left\n" .string "I reckon there are two items left\n"
.string "waiting to be found on this floor.$" .string "waiting to be found on this floor.$"
BattlePyramid_OneItemRemaining_Text3:: @ 8253980 BattlePyramid_Text_OneItemRemaining3:: @ 8253980
.string "How's your stock of items holding up?\p" .string "How's your stock of items holding up?\p"
.string "I reckon there's but one item left\n" .string "I reckon there's but one item left\n"
.string "waiting to be found on this floor.$" .string "waiting to be found on this floor.$"
BattlePyramid_ZeroItemsRemaining_Text3:: @ 82539EC BattlePyramid_Text_ZeroItemsRemaining3:: @ 82539EC
.string "How's your stock of items holding up?\p" .string "How's your stock of items holding up?\p"
.string "I reckon there are no more items\n" .string "I reckon there are no more items\n"
.string "waiting to be found on this floor.\l" .string "waiting to be found on this floor.\l"
.string "You take care now!$" .string "You take care now!$"
BattlePyramid_EightItemsRemaining_Text4:: @ 8253A69 BattlePyramid_Text_EightItemsRemaining4:: @ 8253A69
.string "You're strong, so you've earned\n" .string "You're strong, so you've earned\n"
.string "a hint!\p" .string "a hint!\p"
.string "There appear to be eight more\n" .string "There appear to be eight more\n"
.string "items on the ground.$" .string "items on the ground.$"
BattlePyramid_SevenItemsRemaining_Text4:: @ 8253AC4 BattlePyramid_Text_SevenItemsRemaining4:: @ 8253AC4
.string "You're strong, so you've earned\n" .string "You're strong, so you've earned\n"
.string "a hint!\p" .string "a hint!\p"
.string "There appear to be seven more\n" .string "There appear to be seven more\n"
.string "items on the ground.$" .string "items on the ground.$"
BattlePyramid_SixItemsRemaining_Text4:: @ 8253B1F BattlePyramid_Text_SixItemsRemaining4:: @ 8253B1F
.string "You're strong, so you've earned\n" .string "You're strong, so you've earned\n"
.string "a hint!\p" .string "a hint!\p"
.string "There appear to be six more\n" .string "There appear to be six more\n"
.string "items on the ground.$" .string "items on the ground.$"
BattlePyramid_FiveItemsRemaining_Text4:: @ 8253B78 BattlePyramid_Text_FiveItemsRemaining4:: @ 8253B78
.string "You're strong, so you've earned\n" .string "You're strong, so you've earned\n"
.string "a hint!\p" .string "a hint!\p"
.string "There appear to be five more\n" .string "There appear to be five more\n"
.string "items on the ground.$" .string "items on the ground.$"
BattlePyramid_FourItemsRemaining_Text4:: @ 8253BD2 BattlePyramid_Text_FourItemsRemaining4:: @ 8253BD2
.string "You're strong, so you've earned\n" .string "You're strong, so you've earned\n"
.string "a hint!\p" .string "a hint!\p"
.string "There appear to be four more\n" .string "There appear to be four more\n"
.string "items on the ground.$" .string "items on the ground.$"
BattlePyramid_ThreeItemsRemaining_Text4:: @ 8253C2C BattlePyramid_Text_ThreeItemsRemaining4:: @ 8253C2C
.string "You're strong, so you've earned\n" .string "You're strong, so you've earned\n"
.string "a hint!\p" .string "a hint!\p"
.string "There appear to be three more\n" .string "There appear to be three more\n"
.string "items on the ground.$" .string "items on the ground.$"
BattlePyramid_TwoItemsRemaining_Text4:: @ 8253C87 BattlePyramid_Text_TwoItemsRemaining4:: @ 8253C87
.string "You're strong, so you've earned\n" .string "You're strong, so you've earned\n"
.string "a hint!\p" .string "a hint!\p"
.string "There appear to be two more\n" .string "There appear to be two more\n"
.string "items on the ground.$" .string "items on the ground.$"
BattlePyramid_OneItemRemaining_Text4:: @ 8253CE0 BattlePyramid_Text_OneItemRemaining4:: @ 8253CE0
.string "You're strong, so you've earned\n" .string "You're strong, so you've earned\n"
.string "a hint!\p" .string "a hint!\p"
.string "There appears to be only one more\n" .string "There appears to be only one more\n"
.string "item on the ground.$" .string "item on the ground.$"
BattlePyramid_ZeroItemsRemaining_Text4:: @ 8253D3E BattlePyramid_Text_ZeroItemsRemaining4:: @ 8253D3E
.string "You're strong, so you've earned\n" .string "You're strong, so you've earned\n"
.string "a hint!\p" .string "a hint!\p"
.string "There appear to be no more\n" .string "There appear to be no more\n"
.string "items on the ground.$" .string "items on the ground.$"
BattlePyramid_EightItemsRemaining_Text5:: @ 8253D96 BattlePyramid_Text_EightItemsRemaining5:: @ 8253D96
.string "On this floor of the PYRAMID,\n" .string "On this floor of the PYRAMID,\n"
.string "I hear there are eight items…$" .string "I hear there are eight items…$"
BattlePyramid_SevenItemsRemaining_Text5:: @ 8253DD2 BattlePyramid_Text_SevenItemsRemaining5:: @ 8253DD2
.string "On this floor of the PYRAMID,\n" .string "On this floor of the PYRAMID,\n"
.string "I hear there are seven items…$" .string "I hear there are seven items…$"
BattlePyramid_SixItemsRemaining_Text5:: @ 8253E0E BattlePyramid_Text_SixItemsRemaining5:: @ 8253E0E
.string "On this floor of the PYRAMID,\n" .string "On this floor of the PYRAMID,\n"
.string "I hear there are six items…$" .string "I hear there are six items…$"
BattlePyramid_FiveItemsRemaining_Text5:: @ 8253E48 BattlePyramid_Text_FiveItemsRemaining5:: @ 8253E48
.string "On this floor of the PYRAMID,\n" .string "On this floor of the PYRAMID,\n"
.string "I hear there are five items…$" .string "I hear there are five items…$"
BattlePyramid_FourItemsRemaining_Text5:: @ 8253E83 BattlePyramid_Text_FourItemsRemaining5:: @ 8253E83
.string "On this floor of the PYRAMID,\n" .string "On this floor of the PYRAMID,\n"
.string "I hear there are four items…$" .string "I hear there are four items…$"
BattlePyramid_ThreeItemsRemaining_Text5:: @ 8253EBE BattlePyramid_Text_ThreeItemsRemaining5:: @ 8253EBE
.string "On this floor of the PYRAMID,\n" .string "On this floor of the PYRAMID,\n"
.string "I hear there are three items…$" .string "I hear there are three items…$"
BattlePyramid_TwoItemsRemaining_Text5:: @ 8253EFA BattlePyramid_Text_TwoItemsRemaining5:: @ 8253EFA
.string "On this floor of the PYRAMID,\n" .string "On this floor of the PYRAMID,\n"
.string "I hear there are two items…$" .string "I hear there are two items…$"
BattlePyramid_OneItemRemaining_Text5:: @ 8253F34 BattlePyramid_Text_OneItemRemaining5:: @ 8253F34
.string "On this floor of the PYRAMID,\n" .string "On this floor of the PYRAMID,\n"
.string "I hear there is one item…$" .string "I hear there is one item…$"
BattlePyramid_ZeroItemsRemaining_Text5:: @ 8253F6C BattlePyramid_Text_ZeroItemsRemaining5:: @ 8253F6C
.string "On this floor of the PYRAMID,\n" .string "On this floor of the PYRAMID,\n"
.string "I hear there are no items…$" .string "I hear there are no items…$"
BattlePyramid_EightItemsRemaining_Text6:: @ 8253FA5 BattlePyramid_Text_EightItemsRemaining6:: @ 8253FA5
.string "Have you collected any items?\p" .string "Have you collected any items?\p"
.string "I believe there are eight more\n" .string "I believe there are eight more\n"
.string "items on this floor.$" .string "items on this floor.$"
BattlePyramid_SevenItemsRemaining_Text6:: @ 8253FF7 BattlePyramid_Text_SevenItemsRemaining6:: @ 8253FF7
.string "Have you collected any items?\p" .string "Have you collected any items?\p"
.string "I believe there are seven more\n" .string "I believe there are seven more\n"
.string "items on this floor.$" .string "items on this floor.$"
BattlePyramid_SixItemsRemaining_Text6:: @ 8254049 BattlePyramid_Text_SixItemsRemaining6:: @ 8254049
.string "Have you collected any items?\p" .string "Have you collected any items?\p"
.string "I believe there are six more\n" .string "I believe there are six more\n"
.string "items on this floor.$" .string "items on this floor.$"
BattlePyramid_FiveItemsRemaining_Text6:: @ 8254099 BattlePyramid_Text_FiveItemsRemaining6:: @ 8254099
.string "Have you collected any items?\p" .string "Have you collected any items?\p"
.string "I believe there are five more\n" .string "I believe there are five more\n"
.string "items on this floor.$" .string "items on this floor.$"
BattlePyramid_FourItemsRemaining_Text6:: @ 82540EA BattlePyramid_Text_FourItemsRemaining6:: @ 82540EA
.string "Have you collected any items?\p" .string "Have you collected any items?\p"
.string "I believe there are four more\n" .string "I believe there are four more\n"
.string "items on this floor.$" .string "items on this floor.$"
BattlePyramid_ThreeItemsRemaining_Text6:: @ 825413B BattlePyramid_Text_ThreeItemsRemaining6:: @ 825413B
.string "Have you collected any items?\p" .string "Have you collected any items?\p"
.string "I believe there are three more\n" .string "I believe there are three more\n"
.string "items on this floor.$" .string "items on this floor.$"
BattlePyramid_TwoItemsRemaining_Text6:: @ 825418D BattlePyramid_Text_TwoItemsRemaining6:: @ 825418D
.string "Have you collected any items?\p" .string "Have you collected any items?\p"
.string "I believe there are two more\n" .string "I believe there are two more\n"
.string "items on this floor.$" .string "items on this floor.$"
BattlePyramid_OneItemRemaining_Text6:: @ 82541DD BattlePyramid_Text_OneItemRemaining6:: @ 82541DD
.string "Have you collected any items?\p" .string "Have you collected any items?\p"
.string "I believe there is one more\n" .string "I believe there is one more\n"
.string "item on this floor.$" .string "item on this floor.$"
BattlePyramid_ZeroItemsRemaining_Text6:: @ 825422B BattlePyramid_Text_ZeroItemsRemaining6:: @ 825422B
.string "Have you collected any items?\p" .string "Have you collected any items?\p"
.string "I believe there are no more\n" .string "I believe there are no more\n"
.string "items on this floor.$" .string "items on this floor.$"
BattlePyramid_SevenTrainersRemaining_Text1:: @ 825427A BattlePyramid_Text_SevenTrainersRemaining1:: @ 825427A
.string "You were really awesome!\p" .string "You were really awesome!\p"
.string "But there are still seven tough\n" .string "But there are still seven tough\n"
.string "TRAINERS other than me!$" .string "TRAINERS other than me!$"
BattlePyramid_SixTrainersRemaining_Text1:: @ 82542CB BattlePyramid_Text_SixTrainersRemaining1:: @ 82542CB
.string "You were really awesome!\p" .string "You were really awesome!\p"
.string "But there are still six tough\n" .string "But there are still six tough\n"
.string "TRAINERS other than me!$" .string "TRAINERS other than me!$"
BattlePyramid_FiveTrainersRemaining_Text1:: @ 825431A BattlePyramid_Text_FiveTrainersRemaining1:: @ 825431A
.string "You were really awesome!\p" .string "You were really awesome!\p"
.string "But there are still five tough\n" .string "But there are still five tough\n"
.string "TRAINERS other than me!$" .string "TRAINERS other than me!$"
BattlePyramid_FourTrainersRemaining_Text1:: @ 825436A BattlePyramid_Text_FourTrainersRemaining1:: @ 825436A
.string "You were really awesome!\p" .string "You were really awesome!\p"
.string "But there are still four tough\n" .string "But there are still four tough\n"
.string "TRAINERS other than me!$" .string "TRAINERS other than me!$"
BattlePyramid_ThreeTrainersRemaining_Text1:: @ 82543BA BattlePyramid_Text_ThreeTrainersRemaining1:: @ 82543BA
.string "You were really awesome!\p" .string "You were really awesome!\p"
.string "But there are still three tough\n" .string "But there are still three tough\n"
.string "TRAINERS other than me!$" .string "TRAINERS other than me!$"
BattlePyramid_TwoTrainersRemaining_Text1:: @ 825440B BattlePyramid_Text_TwoTrainersRemaining1:: @ 825440B
.string "You were really awesome!\p" .string "You were really awesome!\p"
.string "But there are still two tough\n" .string "But there are still two tough\n"
.string "TRAINERS other than me!$" .string "TRAINERS other than me!$"
BattlePyramid_OneTrainersRemaining_Text1:: @ 825445A BattlePyramid_Text_OneTrainersRemaining1:: @ 825445A
.string "You were really awesome!\p" .string "You were really awesome!\p"
.string "But there's still one tough\n" .string "But there's still one tough\n"
.string "TRAINER other than me!$" .string "TRAINER other than me!$"
BattlePyramid_ZeroTrainersRemaining_Text1:: @ 82544A6 BattlePyramid_Text_ZeroTrainersRemaining1:: @ 82544A6
.string "You were really awesome!\p" .string "You were really awesome!\p"
.string "There's no one left that\n" .string "There's no one left that\n"
.string "can beat you!$" .string "can beat you!$"
BattlePyramid_SevenTrainersRemaining_Text2:: @ 82544E6 BattlePyramid_Text_SevenTrainersRemaining2:: @ 82544E6
.string "This is so upsetting!\p" .string "This is so upsetting!\p"
.string "But there are seven TRAINERS left!\n" .string "But there are seven TRAINERS left!\n"
.string "Someone will humble you!$" .string "Someone will humble you!$"
BattlePyramid_SixTrainersRemaining_Text2:: @ 8254538 BattlePyramid_Text_SixTrainersRemaining2:: @ 8254538
.string "This is so upsetting!\p" .string "This is so upsetting!\p"
.string "But there are six TRAINERS left!\n" .string "But there are six TRAINERS left!\n"
.string "Someone will humble you!$" .string "Someone will humble you!$"
BattlePyramid_FiveTrainersRemaining_Text2:: @ 8254588 BattlePyramid_Text_FiveTrainersRemaining2:: @ 8254588
.string "This is so upsetting!\p" .string "This is so upsetting!\p"
.string "But there are five TRAINERS left!\n" .string "But there are five TRAINERS left!\n"
.string "Someone will humble you!$" .string "Someone will humble you!$"
BattlePyramid_FourTrainersRemaining_Text2:: @ 82545D9 BattlePyramid_Text_FourTrainersRemaining2:: @ 82545D9
.string "This is so upsetting!\p" .string "This is so upsetting!\p"
.string "But there are four TRAINERS left!\n" .string "But there are four TRAINERS left!\n"
.string "Someone will humble you!$" .string "Someone will humble you!$"
BattlePyramid_ThreeTrainersRemaining_Text2:: @ 825462A BattlePyramid_Text_ThreeTrainersRemaining2:: @ 825462A
.string "This is so upsetting!\p" .string "This is so upsetting!\p"
.string "But there are three TRAINERS left!\n" .string "But there are three TRAINERS left!\n"
.string "Someone will humble you!$" .string "Someone will humble you!$"
BattlePyramid_TwoTrainersRemaining_Text2:: @ 825467C BattlePyramid_Text_TwoTrainersRemaining2:: @ 825467C
.string "This is so upsetting!\p" .string "This is so upsetting!\p"
.string "But there are two TRAINERS left!\n" .string "But there are two TRAINERS left!\n"
.string "Someone will humble you!$" .string "Someone will humble you!$"
BattlePyramid_OneTrainersRemaining_Text2:: @ 82546CC BattlePyramid_Text_OneTrainersRemaining2:: @ 82546CC
.string "This is so upsetting!\p" .string "This is so upsetting!\p"
.string "But there's one TRAINER left!\n" .string "But there's one TRAINER left!\n"
.string "I'm sure you will be humbled!$" .string "I'm sure you will be humbled!$"
BattlePyramid_ZeroTrainersRemaining_Text2:: @ 825471E BattlePyramid_Text_ZeroTrainersRemaining2:: @ 825471E
.string "This is so upsetting!\p" .string "This is so upsetting!\p"
.string "But there are no more TRAINERS\n" .string "But there are no more TRAINERS\n"
.string "who can engage you!$" .string "who can engage you!$"
BattlePyramid_SevenTrainersRemaining_Text3:: @ 8254767 BattlePyramid_Text_SevenTrainersRemaining3:: @ 8254767
.string "That's pretty impressive!\p" .string "That's pretty impressive!\p"
.string "But there are seven more TRAINERS\n" .string "But there are seven more TRAINERS\n"
.string "on this floor. Can you beat them all?$" .string "on this floor. Can you beat them all?$"
BattlePyramid_SixTrainersRemaining_Text3:: @ 82547C9 BattlePyramid_Text_SixTrainersRemaining3:: @ 82547C9
.string "That's pretty impressive!\p" .string "That's pretty impressive!\p"
.string "But there are six more TRAINERS\n" .string "But there are six more TRAINERS\n"
.string "on this floor. Can you beat them all?$" .string "on this floor. Can you beat them all?$"
BattlePyramid_FiveTrainersRemaining_Text3:: @ 8254829 BattlePyramid_Text_FiveTrainersRemaining3:: @ 8254829
.string "That's pretty impressive!\p" .string "That's pretty impressive!\p"
.string "But there are five more TRAINERS\n" .string "But there are five more TRAINERS\n"
.string "on this floor. Can you beat them all?$" .string "on this floor. Can you beat them all?$"
BattlePyramid_FourTrainersRemaining_Text3:: @ 825488A BattlePyramid_Text_FourTrainersRemaining3:: @ 825488A
.string "That's pretty impressive!\p" .string "That's pretty impressive!\p"
.string "But there are four more TRAINERS\n" .string "But there are four more TRAINERS\n"
.string "on this floor. Can you beat them all?$" .string "on this floor. Can you beat them all?$"
BattlePyramid_ThreeTrainersRemaining_Text3:: @ 82548EB BattlePyramid_Text_ThreeTrainersRemaining3:: @ 82548EB
.string "That's pretty impressive!\p" .string "That's pretty impressive!\p"
.string "But there are three more TRAINERS\n" .string "But there are three more TRAINERS\n"
.string "on this floor. Can you beat them all?$" .string "on this floor. Can you beat them all?$"
BattlePyramid_TwoTrainersRemaining_Text3:: @ 825494D BattlePyramid_Text_TwoTrainersRemaining3:: @ 825494D
.string "That's pretty impressive!\p" .string "That's pretty impressive!\p"
.string "But there are two more TRAINERS\n" .string "But there are two more TRAINERS\n"
.string "on this floor. Can you beat them both?$" .string "on this floor. Can you beat them both?$"
BattlePyramid_OneTrainersRemaining_Text3:: @ 82549AE BattlePyramid_Text_OneTrainersRemaining3:: @ 82549AE
.string "That's pretty impressive!\p" .string "That's pretty impressive!\p"
.string "But there's still one more TRAINER\n" .string "But there's still one more TRAINER\n"
.string "on this floor. Can you prevail?$" .string "on this floor. Can you prevail?$"
BattlePyramid_ZeroTrainersRemaining_Text3:: @ 8254A0B BattlePyramid_Text_ZeroTrainersRemaining3:: @ 8254A0B
.string "That's pretty impressive!\p" .string "That's pretty impressive!\p"
.string "You've gone through all the TRAINERS\n" .string "You've gone through all the TRAINERS\n"
.string "on this floor.$" .string "on this floor.$"
BattlePyramid_SevenTrainersRemaining_Text4:: @ 8254A59 BattlePyramid_Text_SevenTrainersRemaining4:: @ 8254A59
.string "Maybe you could sweep through\n" .string "Maybe you could sweep through\n"
.string "the seven TRAINERS left on this floor.$" .string "the seven TRAINERS left on this floor.$"
BattlePyramid_SixTrainersRemaining_Text4:: @ 8254A9E BattlePyramid_Text_SixTrainersRemaining4:: @ 8254A9E
.string "Maybe you could sweep through\n" .string "Maybe you could sweep through\n"
.string "the six TRAINERS left on this floor.$" .string "the six TRAINERS left on this floor.$"
BattlePyramid_FiveTrainersRemaining_Text4:: @ 8254AE1 BattlePyramid_Text_FiveTrainersRemaining4:: @ 8254AE1
.string "Maybe you could sweep through\n" .string "Maybe you could sweep through\n"
.string "the five TRAINERS left on this floor.$" .string "the five TRAINERS left on this floor.$"
BattlePyramid_FourTrainersRemaining_Text4:: @ 8254B25 BattlePyramid_Text_FourTrainersRemaining4:: @ 8254B25
.string "Maybe you could sweep through\n" .string "Maybe you could sweep through\n"
.string "the four TRAINERS left on this floor.$" .string "the four TRAINERS left on this floor.$"
BattlePyramid_ThreeTrainersRemaining_Text4:: @ 8254B69 BattlePyramid_Text_ThreeTrainersRemaining4:: @ 8254B69
.string "Maybe you could sweep through\n" .string "Maybe you could sweep through\n"
.string "the three TRAINERS left on this floor.$" .string "the three TRAINERS left on this floor.$"
BattlePyramid_TwoTrainersRemaining_Text4:: @ 8254BAE BattlePyramid_Text_TwoTrainersRemaining4:: @ 8254BAE
.string "Maybe you could sweep through\n" .string "Maybe you could sweep through\n"
.string "the two TRAINERS left on this floor.$" .string "the two TRAINERS left on this floor.$"
BattlePyramid_OneTrainersRemaining_Text4:: @ 8254BF1 BattlePyramid_Text_OneTrainersRemaining4:: @ 8254BF1
.string "Maybe you could complete your sweep\n" .string "Maybe you could complete your sweep\n"
.string "with the one TRAINER left on this floor.$" .string "with the one TRAINER left on this floor.$"
BattlePyramid_ZeroTrainersRemaining_Text4:: @ 8254C3E BattlePyramid_Text_ZeroTrainersRemaining4:: @ 8254C3E
.string "There isn't a single person left who\n" .string "There isn't a single person left who\n"
.string "can defeat you now…$" .string "can defeat you now…$"
BattlePyramid_SevenTrainersRemaining_Text5:: @ 8254C77 BattlePyramid_Text_SevenTrainersRemaining5:: @ 8254C77
.string "You may have what it takes to beat\n" .string "You may have what it takes to beat\n"
.string "the seven expert TRAINERS who remain.$" .string "the seven expert TRAINERS who remain.$"
BattlePyramid_SixTrainersRemaining_Text5:: @ 8254CC0 BattlePyramid_Text_SixTrainersRemaining5:: @ 8254CC0
.string "You may have what it takes to beat\n" .string "You may have what it takes to beat\n"
.string "the six expert TRAINERS who remain.$" .string "the six expert TRAINERS who remain.$"
BattlePyramid_FiveTrainersRemaining_Text5:: @ 8254D07 BattlePyramid_Text_FiveTrainersRemaining5:: @ 8254D07
.string "You may have what it takes to beat\n" .string "You may have what it takes to beat\n"
.string "the five expert TRAINERS who remain.$" .string "the five expert TRAINERS who remain.$"
BattlePyramid_FourTrainersRemaining_Text5:: @ 8254D4F BattlePyramid_Text_FourTrainersRemaining5:: @ 8254D4F
.string "You may have what it takes to beat\n" .string "You may have what it takes to beat\n"
.string "the four expert TRAINERS who remain.$" .string "the four expert TRAINERS who remain.$"
BattlePyramid_ThreeTrainersRemaining_Text5:: @ 8254D97 BattlePyramid_Text_ThreeTrainersRemaining5:: @ 8254D97
.string "You may have what it takes to beat\n" .string "You may have what it takes to beat\n"
.string "the three expert TRAINERS who remain.$" .string "the three expert TRAINERS who remain.$"
BattlePyramid_TwoTrainersRemaining_Text5:: @ 8254DE0 BattlePyramid_Text_TwoTrainersRemaining5:: @ 8254DE0
.string "You may have what it takes to beat\n" .string "You may have what it takes to beat\n"
.string "the two expert TRAINERS who remain.$" .string "the two expert TRAINERS who remain.$"
BattlePyramid_OneTrainersRemaining_Text5:: @ 8254E27 BattlePyramid_Text_OneTrainersRemaining5:: @ 8254E27
.string "You may have what it takes to beat\n" .string "You may have what it takes to beat\n"
.string "the one expert TRAINER who remains.$" .string "the one expert TRAINER who remains.$"
BattlePyramid_ZeroTrainersRemaining_Text5:: @ 8254E6E BattlePyramid_Text_ZeroTrainersRemaining5:: @ 8254E6E
.string "Your skills are beyond reproach.\p" .string "Your skills are beyond reproach.\p"
.string "There are no more TRAINERS here\n" .string "There are no more TRAINERS here\n"
.string "who have any chance of beating you.$" .string "who have any chance of beating you.$"
BattlePyramid_SevenTrainersRemaining_Text6:: @ 8254ED3 BattlePyramid_Text_SevenTrainersRemaining6:: @ 8254ED3
.string "Can you keep winning against\n" .string "Can you keep winning against\n"
.string "the seven remaining TRAINERS?$" .string "the seven remaining TRAINERS?$"
BattlePyramid_SixTrainersRemaining_Text6:: @ 8254F0E BattlePyramid_Text_SixTrainersRemaining6:: @ 8254F0E
.string "Can you keep winning against\n" .string "Can you keep winning against\n"
.string "the six remaining TRAINERS?$" .string "the six remaining TRAINERS?$"
BattlePyramid_FiveTrainersRemaining_Text6:: @ 8254F47 BattlePyramid_Text_FiveTrainersRemaining6:: @ 8254F47
.string "Can you keep winning against\n" .string "Can you keep winning against\n"
.string "the five remaining TRAINERS?$" .string "the five remaining TRAINERS?$"
BattlePyramid_FourTrainersRemaining_Text6:: @ 8254F81 BattlePyramid_Text_FourTrainersRemaining6:: @ 8254F81
.string "Can you keep winning against\n" .string "Can you keep winning against\n"
.string "the four remaining TRAINERS?$" .string "the four remaining TRAINERS?$"
BattlePyramid_ThreeTrainersRemaining_Text6:: @ 8254FBB BattlePyramid_Text_ThreeTrainersRemaining6:: @ 8254FBB
.string "Can you keep winning against\n" .string "Can you keep winning against\n"
.string "the three remaining TRAINERS?$" .string "the three remaining TRAINERS?$"
BattlePyramid_TwoTrainersRemaining_Text6:: @ 8254FF6 BattlePyramid_Text_TwoTrainersRemaining6:: @ 8254FF6
.string "Can you keep winning against\n" .string "Can you keep winning against\n"
.string "the two remaining TRAINERS?$" .string "the two remaining TRAINERS?$"
BattlePyramid_OneTrainersRemaining_Text6:: @ 825502F BattlePyramid_Text_OneTrainersRemaining6:: @ 825502F
.string "Can you keep winning against\n" .string "Can you keep winning against\n"
.string "the last remaining TRAINER?$" .string "the last remaining TRAINER?$"
BattlePyramid_ZeroTrainersRemaining_Text6:: @ 8255068 BattlePyramid_Text_ZeroTrainersRemaining6:: @ 8255068
.string "There aren't any TRAINERS left that\n" .string "There aren't any TRAINERS left that\n"
.string "can take you on now…$" .string "can take you on now…$"
@@ -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_BattlePyramidLobby_EventScript_2508B1", "script": "BattleFrontier_BattlePyramidLobby_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_BattlePyramidLobby_EventScript_250ACE", "script": "BattleFrontier_BattlePyramidLobby_EventScript_HintGiver",
"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_BattlePyramidLobby_EventScript_250E83", "script": "BattleFrontier_BattlePyramidLobby_EventScript_Woman",
"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_BattlePyramidLobby_EventScript_250E8C", "script": "BattleFrontier_BattlePyramidLobby_EventScript_FatMan",
"flag": "0" "flag": "0"
} }
], ],
@@ -84,7 +84,7 @@
"y": 12, "y": 12,
"elevation": 0, "elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH", "player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
"script": "BattleFrontier_BattlePyramidLobby_EventScript_250D42" "script": "BattleFrontier_BattlePyramidLobby_EventScript_ShowResults"
}, },
{ {
"type": "sign", "type": "sign",
@@ -92,7 +92,7 @@
"y": 12, "y": 12,
"elevation": 0, "elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "BattleFrontier_BattlePyramidLobby_EventScript_250E95" "script": "BattleFrontier_BattlePyramidLobby_EventScript_RulesBoard"
} }
] ]
} }
File diff suppressed because it is too large Load Diff
@@ -24,7 +24,7 @@
"movement_range_y": 1, "movement_range_y": 1,
"trainer_type": "0", "trainer_type": "0",
"trainer_sight_or_berry_tree_id": "3", "trainer_sight_or_berry_tree_id": "3",
"script": "BattleFrontier_BattlePyramidTop_EventScript_2551D0", "script": "BattleFrontier_BattlePyramidTop_EventScript_Attendant",
"flag": "0" "flag": "0"
}, },
{ {
@@ -50,7 +50,7 @@
"elevation": 4, "elevation": 4,
"var": "VAR_TEMP_2", "var": "VAR_TEMP_2",
"var_value": "0", "var_value": "0",
"script": "BattleFrontier_BattlePyramidTop_EventScript_255256" "script": "BattleFrontier_BattlePyramidTop_EventScript_BattleBrandon"
} }
], ],
"bg_events": [] "bg_events": []
@@ -1,201 +1,197 @@
BattleFrontier_BattlePyramidTop_MapScripts:: @ 82550A1 BattleFrontier_BattlePyramidTop_MapScripts:: @ 82550A1
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePyramidTop_MapScript1_2550F4 map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePyramidTop_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePyramidTop_MapScript2_25516E map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePyramidTop_OnFrame
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePyramidTop_MapScript1_2550B6 map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePyramidTop_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePyramidTop_MapScript2_2550CE map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePyramidTop_OnWarp
.byte 0 .byte 0
BattleFrontier_BattlePyramidTop_MapScript1_2550B6: @ 82550B6 BattleFrontier_BattlePyramidTop_OnTransition: @ 82550B6
pyramid_updatelight 200, PYRAMID_LIGHT_SET_RADIUS pyramid_updatelight 200, PYRAMID_LIGHT_SET_RADIUS
setvar VAR_TEMP_F, 1 setvar VAR_TEMP_F, 1
end end
BattleFrontier_BattlePyramidTop_MapScript2_2550CE: @ 82550CE BattleFrontier_BattlePyramidTop_OnWarp: @ 82550CE
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePyramidTop_EventScript_2550D8 map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePyramidTop_EventScript_SetUpObjects
.2byte 0 .2byte 0
BattleFrontier_BattlePyramidTop_EventScript_2550D8:: @ 82550D8 BattleFrontier_BattlePyramidTop_EventScript_SetUpObjects:: @ 82550D8
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
compare VAR_TEMP_C, 0 compare VAR_TEMP_C, 0
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_2550F3 goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_EndSetUpObjects
setobjectxyperm 2, 0, 0 setobjectxyperm 2, 0, 0
BattleFrontier_BattlePyramidTop_EventScript_EndSetUpObjects:: @ 82550F3
BattleFrontier_BattlePyramidTop_EventScript_2550F3:: @ 82550F3
end end
BattleFrontier_BattlePyramidTop_MapScript1_2550F4: @ 82550F4 BattleFrontier_BattlePyramidTop_OnResume: @ 82550F4
frontier_getbrainstatus frontier_getbrainstatus
compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_25510C goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_CheckChallengeStatus
call BattleFrontier_EventScript_SetBrainObjectGfx call BattleFrontier_EventScript_SetBrainObjectGfx
BattleFrontier_BattlePyramidTop_EventScript_25510C:: @ 825510C BattleFrontier_BattlePyramidTop_EventScript_CheckChallengeStatus:: @ 825510C
copyvar VAR_TEMP_C, VAR_RESULT copyvar VAR_TEMP_C, VAR_RESULT
frontier_getstatus frontier_getstatus
switch VAR_TEMP_0 switch VAR_TEMP_0
case 0, BattleFrontier_BattlePyramidTop_EventScript_255193 case 0, BattleFrontier_BattlePyramidTop_EventScript_ReadyChallenge
case CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePyramidTop_EventScript_252B66 case CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePyramid_EventScript_WarpToLobby
case CHALLENGE_STATUS_PAUSED, BattleFrontier_BattlePyramidTop_EventScript_255193 case CHALLENGE_STATUS_PAUSED, BattleFrontier_BattlePyramidTop_EventScript_ReadyChallenge
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_BattlePyramidTop_EventScript_252B42 goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
compare VAR_RESULT, B_OUTCOME_DREW compare VAR_RESULT, B_OUTCOME_DREW
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42 goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
compare VAR_RESULT, B_OUTCOME_FORFEITED compare VAR_RESULT, B_OUTCOME_FORFEITED
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42 goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
end end
BattleFrontier_BattlePyramidTop_MapScript2_25516E: @ 825516E BattleFrontier_BattlePyramidTop_OnFrame: @ 825516E
map_script_2 VAR_TEMP_E, 0, BattleFrontier_BattlePyramidTop_EventScript_255180 map_script_2 VAR_TEMP_E, 0, BattleFrontier_BattlePyramidTop_EventScript_PlayPyramidMusic
map_script_2 VAR_TEMP_F, 1, BattleFrontier_BattlePyramidTop_EventScript_25518A map_script_2 VAR_TEMP_F, 1, BattleFrontier_BattlePyramidTop_EventScript_ShowMapName
.2byte 0 .2byte 0
BattleFrontier_BattlePyramidTop_EventScript_255180:: @ 8255180 BattleFrontier_BattlePyramidTop_EventScript_PlayPyramidMusic:: @ 8255180
playbgm MUS_PYRAMID_TOP, 0 playbgm MUS_PYRAMID_TOP, 0
setvar VAR_TEMP_E, 1 setvar VAR_TEMP_E, 1
end end
BattleFrontier_BattlePyramidTop_EventScript_25518A:: @ 825518A BattleFrontier_BattlePyramidTop_EventScript_ShowMapName:: @ 825518A
special ShowMapNamePopup special ShowMapNamePopup
setvar VAR_TEMP_F, 0 setvar VAR_TEMP_F, 0
end end
BattleFrontier_BattlePyramidTop_EventScript_255193:: @ 8255193 BattleFrontier_BattlePyramidTop_EventScript_ReadyChallenge:: @ 8255193
pyramid_save CHALLENGE_STATUS_SAVING pyramid_save CHALLENGE_STATUS_SAVING
special SavePlayerParty special SavePlayerParty
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0 frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
pyramid_inittrainers pyramid_settrainers
frontier_setpartyorder FRONTIER_PARTY_SIZE frontier_setpartyorder FRONTIER_PARTY_SIZE
setvar VAR_TEMP_F, 1 setvar VAR_TEMP_F, 1
end end
BattleFrontier_BattlePyramidTop_EventScript_2551D0:: @ 82551D0 BattleFrontier_BattlePyramidTop_EventScript_Attendant:: @ 82551D0
lock lock
faceplayer faceplayer
compare VAR_TEMP_D, 0 compare VAR_TEMP_D, 0
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_255236 goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_StepForwardWhenReady
compare VAR_TEMP_C, FRONTIER_BRAIN_NOT_READY compare VAR_TEMP_C, FRONTIER_BRAIN_NOT_READY
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_255240 goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_BrandonHereMoveAside
msgbox BattleFrontier_BattlePyramidTop_Text_255410, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_ReachedSummitUpYouGo, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattlePyramidTop_Movement_2553FD applymovement 1, BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePyramidTop_Movement_255403 applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePyramidTop_Movement_PlayerClimbToTop
waitmovement 0 waitmovement 0
applymovement 1, BattleFrontier_BattlePyramidTop_Movement_255400 applymovement 1, BattleFrontier_BattlePyramidTop_Movement_AttendantBlockPath
waitmovement 0 waitmovement 0
message BattleFrontier_BattlePyramidTop_Text_2554E8 message BattleFrontier_BattlePyramidTop_Text_PlayerConqueredPyramid
waitmessage waitmessage
playfanfare MUS_ME_POINTGET playfanfare MUS_ME_POINTGET
waitfanfare waitfanfare
closemessage closemessage
BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon:: @ 825521A
BattleFrontier_BattlePyramidTop_EventScript_25521A:: @ 825521A
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
warp MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY, 255, 7, 13 warp MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY, 255, 7, 13
waitstate waitstate
end end
BattleFrontier_BattlePyramidTop_EventScript_255236:: @ 8255236 BattleFrontier_BattlePyramidTop_EventScript_StepForwardWhenReady:: @ 8255236
msgbox BattleFrontier_BattlePyramidTop_Text_255BFE, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_StepForwardWhenReady, MSGBOX_DEFAULT
closemessage closemessage
end end
BattleFrontier_BattlePyramidTop_EventScript_255240:: @ 8255240 BattleFrontier_BattlePyramidTop_EventScript_BrandonHereMoveAside:: @ 8255240
msgbox BattleFrontier_BattlePyramidTop_Text_25551F, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_ChiefBeatYouHere, MSGBOX_DEFAULT
applymovement 1, BattleFrontier_BattlePyramidTop_Movement_2553FD applymovement 1, BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside
setvar VAR_TEMP_D, 1 setvar VAR_TEMP_D, 1
closemessage closemessage
end end
BattleFrontier_BattlePyramidTop_EventScript_255256:: @ 8255256 BattleFrontier_BattlePyramidTop_EventScript_BattleBrandon:: @ 8255256
lockall lockall
switch VAR_TEMP_C switch VAR_TEMP_C
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattlePyramidTop_EventScript_255335 case FRONTIER_BRAIN_GOLD, BattleFrontier_BattlePyramidTop_EventScript_BrandonIntroGold
case FRONTIER_BRAIN_STREAK, BattleFrontier_BattlePyramidTop_EventScript_2552D0 case FRONTIER_BRAIN_STREAK, BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardSilverSpeech
case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattlePyramidTop_EventScript_255388 case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardGoldSpeech
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
compare VAR_RESULT, FALSE compare VAR_RESULT, FALSE
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_2552D0 goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardSilverSpeech
special SpawnCameraObject special SpawnCameraObject
applymovement OBJ_EVENT_ID_CAMERA, BattleFrontier_BattlePyramidTop_Movement_25540C applymovement OBJ_EVENT_ID_CAMERA, BattleFrontier_BattlePyramidTop_Movement_CameraPanUp
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_255669, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_ExplorationsAreGrandestAdventure, MSGBOX_DEFAULT
closemessage closemessage
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_25540A applymovement 2, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_25573E, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_ImPyramidKingBrandon, MSGBOX_DEFAULT
goto BattleFrontier_BattlePyramidTop_EventScript_2552DA goto BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonSilver
end end
BattleFrontier_BattlePyramidTop_EventScript_2552D0:: @ 82552D0 BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardSilverSpeech:: @ 82552D0
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_25540A applymovement 2, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
waitmovement 0 waitmovement 0
BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonSilver:: @ 82552DA
BattleFrontier_BattlePyramidTop_EventScript_2552DA:: @ 82552DA msgbox BattleFrontier_BattlePyramidTop_Text_BringCourageToOurBattle, MSGBOX_DEFAULT
msgbox BattleFrontier_BattlePyramidTop_Text_255846, MSGBOX_DEFAULT call BattleFrontier_BattlePyramidTop_EventScript_DoBrandonBattle
call BattleFrontier_BattlePyramidTop_EventScript_2553ED
playbgm MUS_PYRAMID_TOP, 0 playbgm MUS_PYRAMID_TOP, 0
compare VAR_RESULT, 1 compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_2552FB goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonSilver
goto BattleFrontier_BattlePyramidTop_EventScript_252B42 goto BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
BattleFrontier_BattlePyramidTop_EventScript_2552FB:: @ 82552FB BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonSilver:: @ 82552FB
frontier_getsymbols frontier_getsymbols
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_25521A goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon
msgbox BattleFrontier_BattlePyramidTop_Text_255873, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_BrandonFrontierPassPlease, MSGBOX_DEFAULT
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
message BattleFrontier_BattlePyramidTop_Text_2558E9 message BattleFrontier_BattlePyramidTop_Text_ReceivedBraveSymbol
waitmessage waitmessage
waitfanfare waitfanfare
frontier_givesymbol frontier_givesymbol
msgbox BattleFrontier_BattlePyramidTop_Text_25591D, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_LookForwardToNextMeeting, MSGBOX_DEFAULT
goto BattleFrontier_BattlePyramidTop_EventScript_25521A goto BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon
BattleFrontier_BattlePyramidTop_EventScript_255335:: @ 8255335 BattleFrontier_BattlePyramidTop_EventScript_BrandonIntroGold:: @ 8255335
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
compare VAR_RESULT, FALSE compare VAR_RESULT, FALSE
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_255388 goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardGoldSpeech
special SpawnCameraObject special SpawnCameraObject
applymovement OBJ_EVENT_ID_CAMERA, BattleFrontier_BattlePyramidTop_Movement_25540C applymovement OBJ_EVENT_ID_CAMERA, BattleFrontier_BattlePyramidTop_Movement_CameraPanUp
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_255951, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_BrandonYouveReturned, MSGBOX_DEFAULT
closemessage closemessage
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_25540A applymovement 2, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_255A6D, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_MyCourageIsOffMeter, MSGBOX_DEFAULT
goto BattleFrontier_BattlePyramidTop_EventScript_255392 goto BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonGold
end end
BattleFrontier_BattlePyramidTop_EventScript_255388:: @ 8255388 BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardGoldSpeech:: @ 8255388
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_25540A applymovement 2, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
waitmovement 0 waitmovement 0
BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonGold:: @ 8255392
BattleFrontier_BattlePyramidTop_EventScript_255392:: @ 8255392 msgbox BattleFrontier_BattlePyramidTop_Text_EverythingYouHave, MSGBOX_DEFAULT
msgbox BattleFrontier_BattlePyramidTop_Text_255AA1, MSGBOX_DEFAULT call BattleFrontier_BattlePyramidTop_EventScript_DoBrandonBattle
call BattleFrontier_BattlePyramidTop_EventScript_2553ED
playbgm MUS_PYRAMID_TOP, 0 playbgm MUS_PYRAMID_TOP, 0
compare VAR_RESULT, 1 compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_2553B3 goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonGold
goto BattleFrontier_BattlePyramidTop_EventScript_252B42 goto BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
BattleFrontier_BattlePyramidTop_EventScript_2553B3:: @ 82553B3 BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonGold:: @ 82553B3
frontier_getsymbols frontier_getsymbols
compare VAR_RESULT, 2 compare VAR_RESULT, 2
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_25521A goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon
msgbox BattleFrontier_BattlePyramidTop_Text_255ACD, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_BrandonRemarkableHaveThis, MSGBOX_DEFAULT
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
message BattleFrontier_BattlePyramidTop_Text_255B59 message BattleFrontier_BattlePyramidTop_Text_BraveSymbolTookGoldenShine
waitmessage waitmessage
waitfanfare waitfanfare
frontier_givesymbol frontier_givesymbol
msgbox BattleFrontier_BattlePyramidTop_Text_255B82, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_FarewellForNow, MSGBOX_DEFAULT
goto BattleFrontier_BattlePyramidTop_EventScript_25521A goto BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon
BattleFrontier_BattlePyramidTop_EventScript_2553ED:: @ 82553ED BattleFrontier_BattlePyramidTop_EventScript_DoBrandonBattle:: @ 82553ED
closemessage closemessage
setvar VAR_0x8004, SPECIAL_BATTLE_PYRAMID setvar VAR_0x8004, SPECIAL_BATTLE_PYRAMID
setvar VAR_0x8005, 0 setvar VAR_0x8005, 0
@@ -203,17 +199,17 @@ BattleFrontier_BattlePyramidTop_EventScript_2553ED:: @ 82553ED
waitstate waitstate
return return
BattleFrontier_BattlePyramidTop_Movement_2553FD: @ 82553FD BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside: @ 82553FD
walk_right walk_right
walk_in_place_fastest_left walk_in_place_fastest_left
step_end step_end
BattleFrontier_BattlePyramidTop_Movement_255400: @ 8255400 BattleFrontier_BattlePyramidTop_Movement_AttendantBlockPath: @ 8255400
walk_left walk_left
walk_in_place_fastest_up walk_in_place_fastest_up
step_end step_end
BattleFrontier_BattlePyramidTop_Movement_255403: @ 8255403 BattleFrontier_BattlePyramidTop_Movement_PlayerClimbToTop: @ 8255403
walk_up walk_up
walk_up walk_up
walk_up walk_up
@@ -222,17 +218,17 @@ BattleFrontier_BattlePyramidTop_Movement_255403: @ 8255403
walk_in_place_fastest_down walk_in_place_fastest_down
step_end step_end
BattleFrontier_BattlePyramidTop_Movement_25540A: @ 825540A BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer: @ 825540A
walk_fast_down walk_fast_down
step_end step_end
BattleFrontier_BattlePyramidTop_Movement_25540C: @ 825540C BattleFrontier_BattlePyramidTop_Movement_CameraPanUp: @ 825540C
walk_slow_up walk_slow_up
walk_slow_up walk_slow_up
delay_16 delay_16
step_end step_end
BattleFrontier_BattlePyramidTop_Text_255410: @ 8255410 BattleFrontier_BattlePyramidTop_Text_ReachedSummitUpYouGo: @ 8255410
.string "It is a delight to see you here!\n" .string "It is a delight to see you here!\n"
.string "You have reached the summit of\l" .string "You have reached the summit of\l"
.string "the BATTLE PYRAMID!\p" .string "the BATTLE PYRAMID!\p"
@@ -243,11 +239,11 @@ BattleFrontier_BattlePyramidTop_Text_255410: @ 8255410
.string "Now, please!\n" .string "Now, please!\n"
.string "Up you go!$" .string "Up you go!$"
BattleFrontier_BattlePyramidTop_Text_2554E8: @ 82554E8 BattleFrontier_BattlePyramidTop_Text_PlayerConqueredPyramid: @ 82554E8
.string "The PYRAMID's new conqueror!\n" .string "The PYRAMID's new conqueror!\n"
.string "Let the name {PLAYER} be known!$" .string "Let the name {PLAYER} be known!$"
BattleFrontier_BattlePyramidTop_Text_25551F: @ 825551F BattleFrontier_BattlePyramidTop_Text_ChiefBeatYouHere: @ 825551F
.string "It is a delight to see you here!\p" .string "It is a delight to see you here!\p"
.string "Unfortunately, you were second by\n" .string "Unfortunately, you were second by\n"
.string "a mere fraction of time!\p" .string "a mere fraction of time!\p"
@@ -260,7 +256,7 @@ BattleFrontier_BattlePyramidTop_Text_25551F: @ 825551F
.string "Now, please! When you are ready,\n" .string "Now, please! When you are ready,\n"
.string "take one more step of courage!$" .string "take one more step of courage!$"
BattleFrontier_BattlePyramidTop_Text_255669: @ 8255669 BattleFrontier_BattlePyramidTop_Text_ExplorationsAreGrandestAdventure: @ 8255669
.string "Young adventurer…\p" .string "Young adventurer…\p"
.string "Wouldn't you agree that explorations\n" .string "Wouldn't you agree that explorations\n"
.string "are the grandest of adventures?\p" .string "are the grandest of adventures?\p"
@@ -270,7 +266,7 @@ BattleFrontier_BattlePyramidTop_Text_255669: @ 8255669
.string "And, above all, only your own courage\n" .string "And, above all, only your own courage\n"
.string "to lead you through unknown worlds…$" .string "to lead you through unknown worlds…$"
BattleFrontier_BattlePyramidTop_Text_25573E: @ 825573E BattleFrontier_BattlePyramidTop_Text_ImPyramidKingBrandon: @ 825573E
.string "Aah, yes, indeed this life is grand!\n" .string "Aah, yes, indeed this life is grand!\n"
.string "Grand, it is! Eh?\p" .string "Grand, it is! Eh?\p"
.string "I'm BRANDON!\p" .string "I'm BRANDON!\p"
@@ -283,25 +279,25 @@ BattleFrontier_BattlePyramidTop_Text_25573E: @ 825573E
.string "Hahahah!\n" .string "Hahahah!\n"
.string "This should be exciting!$" .string "This should be exciting!$"
BattleFrontier_BattlePyramidTop_Text_255846: @ 8255846 BattleFrontier_BattlePyramidTop_Text_BringCourageToOurBattle: @ 8255846
.string "Now, then!\n" .string "Now, then!\n"
.string "Bring your courage to our battle!$" .string "Bring your courage to our battle!$"
BattleFrontier_BattlePyramidTop_Text_255873: @ 8255873 BattleFrontier_BattlePyramidTop_Text_BrandonFrontierPassPlease: @ 8255873
.string "BRANDON: Hahahah! Grand it was!\n" .string "BRANDON: Hahahah! Grand it was!\n"
.string "Grand, yes, indeed!\p" .string "Grand, yes, indeed!\p"
.string "Well done! You've earned recognition!\n" .string "Well done! You've earned recognition!\n"
.string "Your FRONTIER PASS, please!$" .string "Your FRONTIER PASS, please!$"
BattleFrontier_BattlePyramidTop_Text_2558E9: @ 82558E9 BattleFrontier_BattlePyramidTop_Text_ReceivedBraveSymbol: @ 82558E9
.string "The Brave Symbol was embossed on\n" .string "The Brave Symbol was embossed on\n"
.string "the FRONTIER PASS!$" .string "the FRONTIER PASS!$"
BattleFrontier_BattlePyramidTop_Text_25591D: @ 825591D BattleFrontier_BattlePyramidTop_Text_LookForwardToNextMeeting: @ 825591D
.string "Young explorer!\n" .string "Young explorer!\n"
.string "I look forward to our next meeting!$" .string "I look forward to our next meeting!$"
BattleFrontier_BattlePyramidTop_Text_255951: @ 8255951 BattleFrontier_BattlePyramidTop_Text_BrandonYouveReturned: @ 8255951
.string "BRANDON: …You've finally returned,\n" .string "BRANDON: …You've finally returned,\n"
.string "young explorer…\p" .string "young explorer…\p"
.string "Your love of adventure seems to come\n" .string "Your love of adventure seems to come\n"
@@ -315,16 +311,16 @@ BattleFrontier_BattlePyramidTop_Text_255951: @ 8255951
.string "Those days of death-defying,\n" .string "Those days of death-defying,\n"
.string "life-affirming adventures are back…$" .string "life-affirming adventures are back…$"
BattleFrontier_BattlePyramidTop_Text_255A6D: @ 8255A6D BattleFrontier_BattlePyramidTop_Text_MyCourageIsOffMeter: @ 8255A6D
.string "Now, then!\p" .string "Now, then!\p"
.string "I sense my own courage is off\n" .string "I sense my own courage is off\n"
.string "the meter!$" .string "the meter!$"
BattleFrontier_BattlePyramidTop_Text_255AA1: @ 8255AA1 BattleFrontier_BattlePyramidTop_Text_EverythingYouHave: @ 8255AA1
.string "Everything you have!\n" .string "Everything you have!\n"
.string "I'm braced for it all!$" .string "I'm braced for it all!$"
BattleFrontier_BattlePyramidTop_Text_255ACD: @ 8255ACD BattleFrontier_BattlePyramidTop_Text_BrandonRemarkableHaveThis: @ 8255ACD
.string "BRANDON: Hahahah!\n" .string "BRANDON: Hahahah!\n"
.string "Remarkable!\l" .string "Remarkable!\l"
.string "Yes, it's grand, indeed!\p" .string "Yes, it's grand, indeed!\p"
@@ -332,17 +328,17 @@ BattleFrontier_BattlePyramidTop_Text_255ACD: @ 8255ACD
.string "You've bested me through and through!\n" .string "You've bested me through and through!\n"
.string "Here! I want you to have this!$" .string "Here! I want you to have this!$"
BattleFrontier_BattlePyramidTop_Text_255B59: @ 8255B59 BattleFrontier_BattlePyramidTop_Text_BraveSymbolTookGoldenShine: @ 8255B59
.string "The Brave Symbol took on\n" .string "The Brave Symbol took on\n"
.string "a golden shine!$" .string "a golden shine!$"
BattleFrontier_BattlePyramidTop_Text_255B82: @ 8255B82 BattleFrontier_BattlePyramidTop_Text_FarewellForNow: @ 8255B82
.string "Ah, yes! It just goes to show that\n" .string "Ah, yes! It just goes to show that\n"
.string "I have much to learn still!\p" .string "I have much to learn still!\p"
.string "May our paths cross again!\n" .string "May our paths cross again!\n"
.string "Farewell for now, young explorer!$" .string "Farewell for now, young explorer!$"
BattleFrontier_BattlePyramidTop_Text_255BFE: @ 8255BFE BattleFrontier_BattlePyramidTop_Text_StepForwardWhenReady: @ 8255BFE
.string "Now, when you are ready, take courage\n" .string "Now, when you are ready, take courage\n"
.string "and step forward.$" .string "and step forward.$"
@@ -209,7 +209,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23E984:: @ 823E984
waitmessage waitmessage
multichoice 17, 6, MULTI_LEVEL_MODE, 0 multichoice 17, 6, MULTI_LEVEL_MODE, 0
switch VAR_RESULT switch VAR_RESULT
case 2, BattleFrontier_BattleTowerLobby_EventScript_23F0E6 case FRONTIER_LVL_TENT, BattleFrontier_BattleTowerLobby_EventScript_23F0E6
case MULTI_B_PRESSED, BattleFrontier_BattleTowerLobby_EventScript_23F0E6 case MULTI_B_PRESSED, BattleFrontier_BattleTowerLobby_EventScript_23F0E6
frontier_checkineligible frontier_checkineligible
compare VAR_0x8004, TRUE compare VAR_0x8004, TRUE
@@ -276,7 +276,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23EAED:: @ 823EAED
waitmessage waitmessage
multichoice 17, 6, MULTI_LEVEL_MODE, 0 multichoice 17, 6, MULTI_LEVEL_MODE, 0
switch VAR_RESULT switch VAR_RESULT
case 2, BattleFrontier_BattleTowerLobby_EventScript_23F0E6 case FRONTIER_LVL_TENT, BattleFrontier_BattleTowerLobby_EventScript_23F0E6
case MULTI_B_PRESSED, BattleFrontier_BattleTowerLobby_EventScript_23F0E6 case MULTI_B_PRESSED, BattleFrontier_BattleTowerLobby_EventScript_23F0E6
frontier_checkineligible frontier_checkineligible
compare VAR_0x8004, TRUE compare VAR_0x8004, TRUE
@@ -344,7 +344,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23EC59:: @ 823EC59
waitmessage waitmessage
multichoice 17, 6, MULTI_LEVEL_MODE, 0 multichoice 17, 6, MULTI_LEVEL_MODE, 0
switch VAR_RESULT switch VAR_RESULT
case 2, BattleFrontier_BattleTowerLobby_EventScript_23F0E6 case FRONTIER_LVL_TENT, BattleFrontier_BattleTowerLobby_EventScript_23F0E6
case MULTI_B_PRESSED, BattleFrontier_BattleTowerLobby_EventScript_23F0E6 case MULTI_B_PRESSED, BattleFrontier_BattleTowerLobby_EventScript_23F0E6
frontier_checkineligible frontier_checkineligible
compare VAR_0x8004, TRUE compare VAR_0x8004, TRUE
@@ -411,7 +411,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23EDC2:: @ 823EDC2
waitmessage waitmessage
multichoice 17, 6, MULTI_LEVEL_MODE, 0 multichoice 17, 6, MULTI_LEVEL_MODE, 0
switch VAR_RESULT switch VAR_RESULT
case 2, BattleFrontier_BattleTowerLobby_EventScript_23F0E6 case FRONTIER_LVL_TENT, BattleFrontier_BattleTowerLobby_EventScript_23F0E6
case MULTI_B_PRESSED, BattleFrontier_BattleTowerLobby_EventScript_23F0E6 case MULTI_B_PRESSED, BattleFrontier_BattleTowerLobby_EventScript_23F0E6
frontier_checkineligible frontier_checkineligible
compare VAR_0x8004, TRUE compare VAR_0x8004, TRUE
@@ -6,7 +6,7 @@ BattleFrontier_BattleTowerMultiBattleRoom_MapScripts:: @ 8243D92
.byte 0 .byte 0
BattleFrontier_BattleTowerMultiBattleRoom_MapScript1_243DA7: @ 8243DA7 BattleFrontier_BattleTowerMultiBattleRoom_MapScript1_243DA7: @ 8243DA7
pyramid_healparty pyramid_resetparty
end end
BattleFrontier_BattleTowerMultiBattleRoom_MapScript1_243DB0: @ 8243DB0 BattleFrontier_BattleTowerMultiBattleRoom_MapScript1_243DB0: @ 8243DB0
@@ -149,7 +149,7 @@ MossdeepCity_StevensHouse_EventScript_Letter:: @ 822291B
@ Unused, leftover from RS @ Unused, leftover from RS
MossdeepCity_StevensHouse_EventScript_DiveItemBall:: @ 8222926 MossdeepCity_StevensHouse_EventScript_DiveItemBall:: @ 8222926
giveitem_std ITEM_HM08, 1, 1 finditem_std ITEM_HM08
setflag FLAG_RECEIVED_HM08 setflag FLAG_RECEIVED_HM08
end end
@@ -33,12 +33,12 @@ SlateportCity_BattleTentCorridor_EventScript_208E65:: @ 8208E65
goto_if_eq SlateportCity_BattleTentCorridor_EventScript_209044 goto_if_eq SlateportCity_BattleTentCorridor_EventScript_209044
slateporttent_generaterentalmons slateporttent_generaterentalmons
slateporttent_generateopponentmons slateporttent_generateopponentmons
msgbox SlateportCity_BattleTentCorridor_Text_25A1C8, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_HoldMonsChooseFromSelection, MSGBOX_DEFAULT
fadescreen 1 fadescreen 1
slateporttent_rentmons slateporttent_rentmons
waitstate waitstate
SlateportCity_BattleTentCorridor_EventScript_208EB4:: @ 8208EB4 SlateportCity_BattleTentCorridor_EventScript_208EB4:: @ 8208EB4
msgbox SlateportCity_BattleTentCorridor_Text_25AB96, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_RightThisWay, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_WalkInPlaceFastestUp applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
@@ -56,7 +56,7 @@ SlateportCity_BattleTentCorridor_EventScript_208EB4:: @ 8208EB4
SlateportCity_BattleTentCorridor_EventScript_208EEE:: @ 8208EEE SlateportCity_BattleTentCorridor_EventScript_208EEE:: @ 8208EEE
factory_setopponentmons factory_setopponentmons
factory_resethelditems factory_resethelditems
msgbox SlateportCity_BattleTentCorridor_Text_25A22D, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_LetUsRestoreMons, MSGBOX_DEFAULT
playfanfare MUS_ME_ASA playfanfare MUS_ME_ASA
waitfanfare waitfanfare
special HealPlayerParty special HealPlayerParty
@@ -73,14 +73,14 @@ SlateportCity_BattleTentCorridor_EventScript_208F0D:: @ 8208F0D
case 2, SlateportCity_BattleTentCorridor_EventScript_208F89 case 2, SlateportCity_BattleTentCorridor_EventScript_208F89
SlateportCity_BattleTentCorridor_EventScript_208F5B:: @ 8208F5B SlateportCity_BattleTentCorridor_EventScript_208F5B:: @ 8208F5B
msgbox SlateportCity_BattleTentCorridor_Text_25A350, MSGBOX_YESNO msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_SaveAndQuitGame, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
case NO, SlateportCity_BattleTentCorridor_EventScript_208F0D case NO, SlateportCity_BattleTentCorridor_EventScript_208F0D
case YES, SlateportCity_BattleTentCorridor_EventScript_209022 case YES, SlateportCity_BattleTentCorridor_EventScript_209022
case MULTI_B_PRESSED, SlateportCity_BattleTentCorridor_EventScript_208F0D case MULTI_B_PRESSED, SlateportCity_BattleTentCorridor_EventScript_208F0D
SlateportCity_BattleTentCorridor_EventScript_208F89:: @ 8208F89 SlateportCity_BattleTentCorridor_EventScript_208F89:: @ 8208F89
message SlateportCity_BattleTentCorridor_Text_25A37A message BattleFrontier_BattleFactoryPreBattleRoom_Text_RetireFromChallenge
waitmessage waitmessage
multichoicedefault 20, 8, MULTI_YESNO, 1, 0 multichoicedefault 20, 8, MULTI_YESNO, 1, 0
switch VAR_RESULT switch VAR_RESULT
@@ -90,7 +90,7 @@ SlateportCity_BattleTentCorridor_EventScript_208F89:: @ 8208F89
SlateportCity_BattleTentCorridor_EventScript_208FBB:: @ 8208FBB SlateportCity_BattleTentCorridor_EventScript_208FBB:: @ 8208FBB
slateporttent_generateopponentmons slateporttent_generateopponentmons
msgbox SlateportCity_BattleTentCorridor_Text_25AB2E, MSGBOX_YESNO msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_LikeToSwapMon, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
case NO, SlateportCity_BattleTentCorridor_EventScript_208EB4 case NO, SlateportCity_BattleTentCorridor_EventScript_208EB4
case YES, SlateportCity_BattleTentCorridor_EventScript_208FF1 case YES, SlateportCity_BattleTentCorridor_EventScript_208FF1
@@ -102,21 +102,21 @@ SlateportCity_BattleTentCorridor_EventScript_208FF1:: @ 8208FF1
waitstate waitstate
compare VAR_RESULT, 1 compare VAR_RESULT, 1
goto_if_eq SlateportCity_BattleTentCorridor_EventScript_208EB4 goto_if_eq SlateportCity_BattleTentCorridor_EventScript_208EB4
msgbox SlateportCity_BattleTentCorridor_Text_25AB6C, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_YourSwapIsComplete, MSGBOX_DEFAULT
goto SlateportCity_BattleTentCorridor_EventScript_208EB4 goto SlateportCity_BattleTentCorridor_EventScript_208EB4
SlateportCity_BattleTentCorridor_EventScript_209014:: @ 8209014 SlateportCity_BattleTentCorridor_EventScript_209014:: @ 8209014
message SlateportCity_BattleTentCorridor_Text_25A263 message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor2ndOpponent
waitmessage waitmessage
return return
SlateportCity_BattleTentCorridor_EventScript_20901B:: @ 820901B SlateportCity_BattleTentCorridor_EventScript_20901B:: @ 820901B
message SlateportCity_BattleTentCorridor_Text_25A289 message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor3rdOpponent
waitmessage waitmessage
return return
SlateportCity_BattleTentCorridor_EventScript_209022:: @ 8209022 SlateportCity_BattleTentCorridor_EventScript_209022:: @ 8209022
message SlateportCity_BattleTentCorridor_Text_25ABAE message BattleFrontier_BattleFactoryPreBattleRoom_Text_SavingDataPleaseWait
waitmessage waitmessage
slateporttent_save CHALLENGE_STATUS_PAUSED slateporttent_save CHALLENGE_STATUS_PAUSED
playse SE_SAVE playse SE_SAVE
@@ -228,12 +228,12 @@ SlateportCity_BattleTentLobby_EventScript_208A90:: @ 8208A90
SlateportCity_BattleTentLobby_EventScript_208A99:: @ 8208A99 SlateportCity_BattleTentLobby_EventScript_208A99:: @ 8208A99
lockall lockall
msgbox SlateportCity_BattleTentLobby_Text_259721, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryLobby_Text_RulesAreListed, MSGBOX_DEFAULT
goto SlateportCity_BattleTentLobby_EventScript_208AA8 goto SlateportCity_BattleTentLobby_EventScript_208AA8
end end
SlateportCity_BattleTentLobby_EventScript_208AA8:: @ 8208AA8 SlateportCity_BattleTentLobby_EventScript_208AA8:: @ 8208AA8
message SlateportCity_BattleTentLobby_Text_259743 message BattleFrontier_BattleFactoryLobby_Text_ReadWhichHeading
waitmessage waitmessage
multichoice 17, 0, MULTI_SLATEPORT_TENT_RULES, 0 multichoice 17, 0, MULTI_SLATEPORT_TENT_RULES, 0
switch VAR_RESULT switch VAR_RESULT
+1 -1
View File
@@ -521,7 +521,7 @@
"BattleFrontier_BattlePalaceCorridor", "BattleFrontier_BattlePalaceCorridor",
"BattleFrontier_BattlePalaceBattleRoom", "BattleFrontier_BattlePalaceBattleRoom",
"BattleFrontier_BattlePyramidLobby", "BattleFrontier_BattlePyramidLobby",
"BattleFrontier_BattlePyramidEmptySquare", "BattleFrontier_BattlePyramidFloor",
"BattleFrontier_BattlePyramidTop", "BattleFrontier_BattlePyramidTop",
"BattleFrontier_BattleArenaLobby", "BattleFrontier_BattleArenaLobby",
"BattleFrontier_BattleArenaCorridor", "BattleFrontier_BattleArenaCorridor",
+2 -2
View File
@@ -34,9 +34,9 @@ EventScript_FrontierFieldWhiteOut:: @ 82736F8
goto_if_eq BattleFrontier_BattlePike_EventScript_Retire goto_if_eq BattleFrontier_BattlePike_EventScript_Retire
pyramid_inchallenge pyramid_inchallenge
compare VAR_RESULT, 1 @ On Pyramid floor compare VAR_RESULT, 1 @ On Pyramid floor
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42 goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
compare VAR_RESULT, 2 @ On Pyramid peak compare VAR_RESULT, 2 @ On Pyramid peak
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42 goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
trainerhill_inchallenge trainerhill_inchallenge
compare VAR_RESULT, TRUE compare VAR_RESULT, TRUE
goto_if_eq TrainerHill_1F_EventScript_Lost goto_if_eq TrainerHill_1F_EventScript_Lost
+165 -165
View File
@@ -1,659 +1,659 @@
Route102_EventScript_ItemPotion:: @ 8290CD8 Route102_EventScript_ItemPotion:: @ 8290CD8
giveitem_std ITEM_POTION, 1, 1 finditem_std ITEM_POTION
end end
Route103_EventScript_ItemGuardSpec:: @ 8290CE5 Route103_EventScript_ItemGuardSpec:: @ 8290CE5
giveitem_std ITEM_GUARD_SPEC, 1, 1 finditem_std ITEM_GUARD_SPEC
end end
Route103_EventScript_ItemPPUp:: @ 8290CF2 Route103_EventScript_ItemPPUp:: @ 8290CF2
giveitem_std ITEM_PP_UP, 1, 1 finditem_std ITEM_PP_UP
end end
Route104_EventScript_ItemPPUp:: @ 8290CFF Route104_EventScript_ItemPPUp:: @ 8290CFF
giveitem_std ITEM_PP_UP, 1, 1 finditem_std ITEM_PP_UP
end end
Route104_EventScript_ItemPokeBall:: @ 8290D0C Route104_EventScript_ItemPokeBall:: @ 8290D0C
giveitem_std ITEM_POKE_BALL, 1, 1 finditem_std ITEM_POKE_BALL
end end
Route104_EventScript_ItemXAccuracy:: @ 8290D19 Route104_EventScript_ItemXAccuracy:: @ 8290D19
giveitem_std ITEM_X_ACCURACY, 1, 1 finditem_std ITEM_X_ACCURACY
end end
Route104_EventScript_ItemPotion:: @ 8290D26 Route104_EventScript_ItemPotion:: @ 8290D26
giveitem_std ITEM_POTION, 1, 1 finditem_std ITEM_POTION
end end
Route105_EventScript_ItemIron:: @ 8290D33 Route105_EventScript_ItemIron:: @ 8290D33
giveitem_std ITEM_IRON, 1, 1 finditem_std ITEM_IRON
end end
Route106_EventScript_ItemProtein:: @ 8290D40 Route106_EventScript_ItemProtein:: @ 8290D40
giveitem_std ITEM_PROTEIN, 1, 1 finditem_std ITEM_PROTEIN
end end
Route108_EventScript_ItemStarPiece:: @ 8290D4D Route108_EventScript_ItemStarPiece:: @ 8290D4D
giveitem_std ITEM_STAR_PIECE, 1, 1 finditem_std ITEM_STAR_PIECE
end end
Route109_EventScript_ItemPPUp:: @ 8290D5A Route109_EventScript_ItemPPUp:: @ 8290D5A
giveitem_std ITEM_PP_UP, 1, 1 finditem_std ITEM_PP_UP
end end
Route109_EventScript_ItemPotion:: @ 8290D67 Route109_EventScript_ItemPotion:: @ 8290D67
giveitem_std ITEM_POTION, 1, 1 finditem_std ITEM_POTION
end end
Route110_EventScript_ItemRareCandy:: @ 8290D74 Route110_EventScript_ItemRareCandy:: @ 8290D74
giveitem_std ITEM_RARE_CANDY, 1, 1 finditem_std ITEM_RARE_CANDY
end end
Route110_EventScript_ItemDireHit:: @ 8290D81 Route110_EventScript_ItemDireHit:: @ 8290D81
giveitem_std ITEM_DIRE_HIT, 1, 1 finditem_std ITEM_DIRE_HIT
end end
Route110_EventScript_ItemElixir:: @ 8290D8E Route110_EventScript_ItemElixir:: @ 8290D8E
giveitem_std ITEM_ELIXIR, 1, 1 finditem_std ITEM_ELIXIR
end end
Route111_EventScript_ItemTM37:: @ 8290D9B Route111_EventScript_ItemTM37:: @ 8290D9B
giveitem_std ITEM_TM37, 1, 1 finditem_std ITEM_TM37
end end
Route111_EventScript_ItemStardust:: @ 8290DA8 Route111_EventScript_ItemStardust:: @ 8290DA8
giveitem_std ITEM_STARDUST, 1, 1 finditem_std ITEM_STARDUST
end end
Route111_EventScript_ItemHPUp:: @ 8290DB5 Route111_EventScript_ItemHPUp:: @ 8290DB5
giveitem_std ITEM_HP_UP, 1, 1 finditem_std ITEM_HP_UP
end end
Route111_EventScript_ItemElixir:: @ 8290DC2 Route111_EventScript_ItemElixir:: @ 8290DC2
giveitem_std ITEM_ELIXIR, 1, 1 finditem_std ITEM_ELIXIR
end end
Route112_EventScript_ItemNugget:: @ 8290DCF Route112_EventScript_ItemNugget:: @ 8290DCF
giveitem_std ITEM_NUGGET, 1, 1 finditem_std ITEM_NUGGET
end end
Route113_EventScript_ItemMaxEther:: @ 8290DDC Route113_EventScript_ItemMaxEther:: @ 8290DDC
giveitem_std ITEM_MAX_ETHER, 1, 1 finditem_std ITEM_MAX_ETHER
end end
Route113_EventScript_ItemSuperRepel:: @ 8290DE9 Route113_EventScript_ItemSuperRepel:: @ 8290DE9
giveitem_std ITEM_SUPER_REPEL, 1, 1 finditem_std ITEM_SUPER_REPEL
end end
Route113_EventScript_ItemHyperPotion:: @ 8290DF6 Route113_EventScript_ItemHyperPotion:: @ 8290DF6
giveitem_std ITEM_HYPER_POTION, 1, 1 finditem_std ITEM_HYPER_POTION
end end
Route114_EventScript_ItemRareCandy:: @ 8290E03 Route114_EventScript_ItemRareCandy:: @ 8290E03
giveitem_std ITEM_RARE_CANDY, 1, 1 finditem_std ITEM_RARE_CANDY
end end
Route114_EventScript_ItemProtein:: @ 8290E10 Route114_EventScript_ItemProtein:: @ 8290E10
giveitem_std ITEM_PROTEIN, 1, 1 finditem_std ITEM_PROTEIN
end end
Route114_EventScript_ItemEnergyPowder:: @ 8290E1D Route114_EventScript_ItemEnergyPowder:: @ 8290E1D
giveitem_std ITEM_ENERGY_POWDER, 1, 1 finditem_std ITEM_ENERGY_POWDER
end end
Route115_EventScript_ItemSuperPotion:: @ 8290E2A Route115_EventScript_ItemSuperPotion:: @ 8290E2A
giveitem_std ITEM_SUPER_POTION, 1, 1 finditem_std ITEM_SUPER_POTION
end end
Route115_EventScript_ItemTM01:: @ 8290E37 Route115_EventScript_ItemTM01:: @ 8290E37
giveitem_std ITEM_TM01, 1, 1 finditem_std ITEM_TM01
end end
Route115_EventScript_ItemIron:: @ 8290E44 Route115_EventScript_ItemIron:: @ 8290E44
giveitem_std ITEM_IRON, 1, 1 finditem_std ITEM_IRON
end end
Route115_EventScript_ItemGreatBall:: @ 8290E51 Route115_EventScript_ItemGreatBall:: @ 8290E51
giveitem_std ITEM_GREAT_BALL, 1, 1 finditem_std ITEM_GREAT_BALL
end end
Route115_EventScript_ItemHealPowder:: @ 8290E5E Route115_EventScript_ItemHealPowder:: @ 8290E5E
giveitem_std ITEM_HEAL_POWDER, 1, 1 finditem_std ITEM_HEAL_POWDER
end end
Route115_EventScript_ItemPPUp:: @ 8290E6B Route115_EventScript_ItemPPUp:: @ 8290E6B
giveitem_std ITEM_PP_UP, 1, 1 finditem_std ITEM_PP_UP
end end
Route116_EventScript_ItemXSpecial:: @ 8290E78 Route116_EventScript_ItemXSpecial:: @ 8290E78
giveitem_std ITEM_X_SPECIAL, 1, 1 finditem_std ITEM_X_SPECIAL
end end
Route116_EventScript_ItemEther:: @ 8290E85 Route116_EventScript_ItemEther:: @ 8290E85
giveitem_std ITEM_ETHER, 1, 1 finditem_std ITEM_ETHER
end end
Route116_EventScript_ItemRepel:: @ 8290E92 Route116_EventScript_ItemRepel:: @ 8290E92
giveitem_std ITEM_REPEL, 1, 1 finditem_std ITEM_REPEL
end end
Route116_EventScript_ItemHPUp:: @ 8290E9F Route116_EventScript_ItemHPUp:: @ 8290E9F
giveitem_std ITEM_HP_UP, 1, 1 finditem_std ITEM_HP_UP
end end
Route116_EventScript_ItemPotion:: @ 8290EAC Route116_EventScript_ItemPotion:: @ 8290EAC
giveitem_std ITEM_POTION, 1, 1 finditem_std ITEM_POTION
end end
Route117_EventScript_ItemGreatBall:: @ 8290EB9 Route117_EventScript_ItemGreatBall:: @ 8290EB9
giveitem_std ITEM_GREAT_BALL, 1, 1 finditem_std ITEM_GREAT_BALL
end end
Route117_EventScript_ItemRevive:: @ 8290EC6 Route117_EventScript_ItemRevive:: @ 8290EC6
giveitem_std ITEM_REVIVE, 1, 1 finditem_std ITEM_REVIVE
end end
Route118_EventScript_ItemHyperPotion:: @ 8290ED3 Route118_EventScript_ItemHyperPotion:: @ 8290ED3
giveitem_std ITEM_HYPER_POTION, 1, 1 finditem_std ITEM_HYPER_POTION
end end
Route119_EventScript_ItemSuperRepel:: @ 8290EE0 Route119_EventScript_ItemSuperRepel:: @ 8290EE0
giveitem_std ITEM_SUPER_REPEL, 1, 1 finditem_std ITEM_SUPER_REPEL
end end
Route119_EventScript_ItemZinc:: @ 8290EED Route119_EventScript_ItemZinc:: @ 8290EED
giveitem_std ITEM_ZINC, 1, 1 finditem_std ITEM_ZINC
end end
Route119_EventScript_ItemElixir:: @ 8290EFA Route119_EventScript_ItemElixir:: @ 8290EFA
giveitem_std ITEM_ELIXIR, 1, 1 finditem_std ITEM_ELIXIR
end end
Route119_EventScript_ItemLeafStone:: @ 8290F07 Route119_EventScript_ItemLeafStone:: @ 8290F07
giveitem_std ITEM_LEAF_STONE, 1, 1 finditem_std ITEM_LEAF_STONE
end end
Route119_EventScript_ItemRareCandy:: @ 8290F14 Route119_EventScript_ItemRareCandy:: @ 8290F14
giveitem_std ITEM_RARE_CANDY, 1, 1 finditem_std ITEM_RARE_CANDY
end end
Route119_EventScript_ItemHyperPotion:: @ 8290F21 Route119_EventScript_ItemHyperPotion:: @ 8290F21
giveitem_std ITEM_HYPER_POTION, 1, 1 finditem_std ITEM_HYPER_POTION
end end
Route119_EventScript_ItemHyperPotion2:: @ 8290F2E Route119_EventScript_ItemHyperPotion2:: @ 8290F2E
giveitem_std ITEM_HYPER_POTION, 1, 1 finditem_std ITEM_HYPER_POTION
end end
Route119_EventScript_ItemElixir2:: @ 8290F3B Route119_EventScript_ItemElixir2:: @ 8290F3B
giveitem_std ITEM_ELIXIR, 1, 1 finditem_std ITEM_ELIXIR
end end
Route120_EventScript_ItemNugget:: @ 8290F48 Route120_EventScript_ItemNugget:: @ 8290F48
giveitem_std ITEM_NUGGET, 1, 1 finditem_std ITEM_NUGGET
end end
Route120_EventScript_ItemFullHeal:: @ 8290F55 Route120_EventScript_ItemFullHeal:: @ 8290F55
giveitem_std ITEM_FULL_HEAL, 1, 1 finditem_std ITEM_FULL_HEAL
end end
Route120_EventScript_ItemHyperPotion:: @ 8290F62 Route120_EventScript_ItemHyperPotion:: @ 8290F62
giveitem_std ITEM_HYPER_POTION, 1, 1 finditem_std ITEM_HYPER_POTION
end end
Route120_EventScript_ItemNestBall:: @ 8290F6F Route120_EventScript_ItemNestBall:: @ 8290F6F
giveitem_std ITEM_NEST_BALL, 1, 1 finditem_std ITEM_NEST_BALL
end end
Route120_EventScript_ItemRevive:: @ 8290F7C Route120_EventScript_ItemRevive:: @ 8290F7C
giveitem_std ITEM_REVIVE, 1, 1 finditem_std ITEM_REVIVE
end end
Route121_EventScript_ItemCarbos:: @ 8290F89 Route121_EventScript_ItemCarbos:: @ 8290F89
giveitem_std ITEM_CARBOS, 1, 1 finditem_std ITEM_CARBOS
end end
Route121_EventScript_ItemRevive:: @ 8290F96 Route121_EventScript_ItemRevive:: @ 8290F96
giveitem_std ITEM_REVIVE, 1, 1 finditem_std ITEM_REVIVE
end end
Route121_EventScript_ItemZinc:: @ 8290FA3 Route121_EventScript_ItemZinc:: @ 8290FA3
giveitem_std ITEM_ZINC, 1, 1 finditem_std ITEM_ZINC
end end
Route123_EventScript_ItemCalcium:: @ 8290FB0 Route123_EventScript_ItemCalcium:: @ 8290FB0
giveitem_std ITEM_CALCIUM, 1, 1 finditem_std ITEM_CALCIUM
end end
Route123_EventScript_ItemUltraBall:: @ 8290FBD Route123_EventScript_ItemUltraBall:: @ 8290FBD
giveitem_std ITEM_ULTRA_BALL, 1, 1 finditem_std ITEM_ULTRA_BALL
end end
Route123_EventScript_ItemElixir:: @ 8290FCA Route123_EventScript_ItemElixir:: @ 8290FCA
giveitem_std ITEM_ELIXIR, 1, 1 finditem_std ITEM_ELIXIR
end end
Route123_EventScript_ItemPPUp:: @ 8290FD7 Route123_EventScript_ItemPPUp:: @ 8290FD7
giveitem_std ITEM_PP_UP, 1, 1 finditem_std ITEM_PP_UP
end end
Route123_EventScript_ItemRevivalHerb:: @ 8290FE4 Route123_EventScript_ItemRevivalHerb:: @ 8290FE4
giveitem_std ITEM_REVIVAL_HERB, 1, 1 finditem_std ITEM_REVIVAL_HERB
end end
Route124_EventScript_ItemRedShard:: @ 8290FF1 Route124_EventScript_ItemRedShard:: @ 8290FF1
giveitem_std ITEM_RED_SHARD, 1, 1 finditem_std ITEM_RED_SHARD
end end
Route124_EventScript_ItemBlueShard:: @ 8290FFE Route124_EventScript_ItemBlueShard:: @ 8290FFE
giveitem_std ITEM_BLUE_SHARD, 1, 1 finditem_std ITEM_BLUE_SHARD
end end
Route124_EventScript_ItemYellowShard:: @ 829100B Route124_EventScript_ItemYellowShard:: @ 829100B
giveitem_std ITEM_YELLOW_SHARD, 1, 1 finditem_std ITEM_YELLOW_SHARD
end end
Route125_EventScript_ItemBigPearl:: @ 8291018 Route125_EventScript_ItemBigPearl:: @ 8291018
giveitem_std ITEM_BIG_PEARL, 1, 1 finditem_std ITEM_BIG_PEARL
end end
Route126_EventScript_ItemGreenShard:: @ 8291025 Route126_EventScript_ItemGreenShard:: @ 8291025
giveitem_std ITEM_GREEN_SHARD, 1, 1 finditem_std ITEM_GREEN_SHARD
end end
Route127_EventScript_ItemZinc:: @ 8291032 Route127_EventScript_ItemZinc:: @ 8291032
giveitem_std ITEM_ZINC, 1, 1 finditem_std ITEM_ZINC
end end
Route127_EventScript_ItemCarbos:: @ 829103F Route127_EventScript_ItemCarbos:: @ 829103F
giveitem_std ITEM_CARBOS, 1, 1 finditem_std ITEM_CARBOS
end end
Route127_EventScript_ItemRareCandy:: @ 829104C Route127_EventScript_ItemRareCandy:: @ 829104C
giveitem_std ITEM_RARE_CANDY, 1, 1 finditem_std ITEM_RARE_CANDY
end end
Route132_EventScript_ItemRareCandy:: @ 8291059 Route132_EventScript_ItemRareCandy:: @ 8291059
giveitem_std ITEM_RARE_CANDY, 1, 1 finditem_std ITEM_RARE_CANDY
end end
Route132_EventScript_ItemProtein:: @ 8291066 Route132_EventScript_ItemProtein:: @ 8291066
giveitem_std ITEM_PROTEIN, 1, 1 finditem_std ITEM_PROTEIN
end end
Route133_EventScript_ItemBigPearl:: @ 8291073 Route133_EventScript_ItemBigPearl:: @ 8291073
giveitem_std ITEM_BIG_PEARL, 1, 1 finditem_std ITEM_BIG_PEARL
end end
Route133_EventScript_ItemStarPiece:: @ 8291080 Route133_EventScript_ItemStarPiece:: @ 8291080
giveitem_std ITEM_STAR_PIECE, 1, 1 finditem_std ITEM_STAR_PIECE
end end
Route133_EventScript_ItemMaxRevive:: @ 829108D Route133_EventScript_ItemMaxRevive:: @ 829108D
giveitem_std ITEM_MAX_REVIVE, 1, 1 finditem_std ITEM_MAX_REVIVE
end end
Route134_EventScript_ItemCarbos:: @ 829109A Route134_EventScript_ItemCarbos:: @ 829109A
giveitem_std ITEM_CARBOS, 1, 1 finditem_std ITEM_CARBOS
end end
Route134_EventScript_ItemStarPiece:: @ 82910A7 Route134_EventScript_ItemStarPiece:: @ 82910A7
giveitem_std ITEM_STAR_PIECE, 1, 1 finditem_std ITEM_STAR_PIECE
end end
PetalburgCity_EventScript_ItemMaxRevive:: @ 82910B4 PetalburgCity_EventScript_ItemMaxRevive:: @ 82910B4
giveitem_std ITEM_MAX_REVIVE, 1, 1 finditem_std ITEM_MAX_REVIVE
end end
PetalburgCity_EventScript_ItemEther:: @ 82910C1 PetalburgCity_EventScript_ItemEther:: @ 82910C1
giveitem_std ITEM_ETHER, 1, 1 finditem_std ITEM_ETHER
end end
MauvilleCity_EventScript_ItemXSpeed:: @ 82910CE MauvilleCity_EventScript_ItemXSpeed:: @ 82910CE
giveitem_std ITEM_X_SPEED, 1, 1 finditem_std ITEM_X_SPEED
end end
RustboroCity_EventScript_ItemXDefend:: @ 82910DB RustboroCity_EventScript_ItemXDefend:: @ 82910DB
giveitem_std ITEM_X_DEFEND, 1, 1 finditem_std ITEM_X_DEFEND
end end
LilycoveCity_EventScript_ItemMaxRepel:: @ 82910E8 LilycoveCity_EventScript_ItemMaxRepel:: @ 82910E8
giveitem_std ITEM_MAX_REPEL, 1, 1 finditem_std ITEM_MAX_REPEL
end end
MossdeepCity_EventScript_ItemNetBall:: @ 82910F5 MossdeepCity_EventScript_ItemNetBall:: @ 82910F5
giveitem_std ITEM_NET_BALL, 1, 1 finditem_std ITEM_NET_BALL
end end
PetalburgWoods_EventScript_ItemXAttack:: @ 8291102 PetalburgWoods_EventScript_ItemXAttack:: @ 8291102
giveitem_std ITEM_X_ATTACK, 1, 1 finditem_std ITEM_X_ATTACK
end end
PetalburgWoods_EventScript_ItemGreatBall:: @ 829110F PetalburgWoods_EventScript_ItemGreatBall:: @ 829110F
giveitem_std ITEM_GREAT_BALL, 1, 1 finditem_std ITEM_GREAT_BALL
end end
PetalburgWoods_EventScript_ItemEther:: @ 829111C PetalburgWoods_EventScript_ItemEther:: @ 829111C
giveitem_std ITEM_ETHER, 1, 1 finditem_std ITEM_ETHER
end end
PetalburgWoods_EventScript_ItemParalyzeHeal:: @ 8291129 PetalburgWoods_EventScript_ItemParalyzeHeal:: @ 8291129
giveitem_std ITEM_PARALYZE_HEAL, 1, 1 finditem_std ITEM_PARALYZE_HEAL
end end
RusturfTunnel_EventScript_ItemPokeBall:: @ 8291136 RusturfTunnel_EventScript_ItemPokeBall:: @ 8291136
giveitem_std ITEM_POKE_BALL, 1, 1 finditem_std ITEM_POKE_BALL
end end
RusturfTunnel_EventScript_ItemMaxEther:: @ 8291143 RusturfTunnel_EventScript_ItemMaxEther:: @ 8291143
giveitem_std ITEM_MAX_ETHER, 1, 1 finditem_std ITEM_MAX_ETHER
end end
GraniteCave_1F_EventScript_ItemEscapeRope:: @ 8291150 GraniteCave_1F_EventScript_ItemEscapeRope:: @ 8291150
giveitem_std ITEM_ESCAPE_ROPE, 1, 1 finditem_std ITEM_ESCAPE_ROPE
end end
GraniteCave_B1F_EventScript_ItemPokeBall:: @ 829115D GraniteCave_B1F_EventScript_ItemPokeBall:: @ 829115D
giveitem_std ITEM_POKE_BALL, 1, 1 finditem_std ITEM_POKE_BALL
end end
GraniteCave_B2F_EventScript_ItemRepel:: @ 829116A GraniteCave_B2F_EventScript_ItemRepel:: @ 829116A
giveitem_std ITEM_REPEL, 1, 1 finditem_std ITEM_REPEL
end end
GraniteCave_B2F_EventScript_ItemRareCandy:: @ 8291177 GraniteCave_B2F_EventScript_ItemRareCandy:: @ 8291177
giveitem_std ITEM_RARE_CANDY, 1, 1 finditem_std ITEM_RARE_CANDY
end end
JaggedPass_EventScript_ItemBurnHeal:: @ 8291184 JaggedPass_EventScript_ItemBurnHeal:: @ 8291184
giveitem_std ITEM_BURN_HEAL, 1, 1 finditem_std ITEM_BURN_HEAL
end end
FieryPath_EventScript_ItemFireStone:: @ 8291191 FieryPath_EventScript_ItemFireStone:: @ 8291191
giveitem_std ITEM_FIRE_STONE, 1, 1 finditem_std ITEM_FIRE_STONE
end end
FieryPath_EventScript_ItemTM06:: @ 829119E FieryPath_EventScript_ItemTM06:: @ 829119E
giveitem_std ITEM_TM06, 1, 1 finditem_std ITEM_TM06
end end
MeteorFalls_1F_1R_EventScript_ItemTM23:: @ 82911AB MeteorFalls_1F_1R_EventScript_ItemTM23:: @ 82911AB
giveitem_std ITEM_TM23, 1, 1 finditem_std ITEM_TM23
end end
MeteorFalls_1F_1R_EventScript_ItemFullHeal:: @ 82911B8 MeteorFalls_1F_1R_EventScript_ItemFullHeal:: @ 82911B8
giveitem_std ITEM_FULL_HEAL, 1, 1 finditem_std ITEM_FULL_HEAL
end end
MeteorFalls_1F_1R_EventScript_ItemMoonStone:: @ 82911C5 MeteorFalls_1F_1R_EventScript_ItemMoonStone:: @ 82911C5
giveitem_std ITEM_MOON_STONE, 1, 1 finditem_std ITEM_MOON_STONE
end end
MeteorFalls_1F_1R_EventScript_ItemPPUP:: @ 82911D2 MeteorFalls_1F_1R_EventScript_ItemPPUP:: @ 82911D2
giveitem_std ITEM_PP_UP, 1, 1 finditem_std ITEM_PP_UP
end end
MeteorFalls_B1F_2R_EventScript_ItemTM02:: @ 82911DF MeteorFalls_B1F_2R_EventScript_ItemTM02:: @ 82911DF
giveitem_std ITEM_TM02, 1, 1 finditem_std ITEM_TM02
end end
NewMauville_Inside_EventScript_ItemUltraRope:: @ 82911EC NewMauville_Inside_EventScript_ItemUltraRope:: @ 82911EC
giveitem_std ITEM_ULTRA_BALL, 1, 1 finditem_std ITEM_ULTRA_BALL
end end
NewMauville_Inside_EventScript_ItemEscapeRope:: @ 82911F9 NewMauville_Inside_EventScript_ItemEscapeRope:: @ 82911F9
giveitem_std ITEM_ESCAPE_ROPE, 1, 1 finditem_std ITEM_ESCAPE_ROPE
end end
NewMauville_Inside_EventScript_ItemThunderStone:: @ 8291206 NewMauville_Inside_EventScript_ItemThunderStone:: @ 8291206
giveitem_std ITEM_THUNDER_STONE, 1, 1 finditem_std ITEM_THUNDER_STONE
end end
NewMauville_Inside_EventScript_ItemFullHeal:: @ 8291213 NewMauville_Inside_EventScript_ItemFullHeal:: @ 8291213
giveitem_std ITEM_FULL_HEAL, 1, 1 finditem_std ITEM_FULL_HEAL
end end
NewMauville_Inside_EventScript_ItemParalyzeHeal:: @ 8291220 NewMauville_Inside_EventScript_ItemParalyzeHeal:: @ 8291220
giveitem_std ITEM_PARALYZE_HEAL, 1, 1 finditem_std ITEM_PARALYZE_HEAL
end end
AbandonedShip_Rooms_1F_EventScript_ItemHarborMail:: @ 829122D AbandonedShip_Rooms_1F_EventScript_ItemHarborMail:: @ 829122D
giveitem_std ITEM_HARBOR_MAIL, 1, 1 finditem_std ITEM_HARBOR_MAIL
end end
AbandonedShip_Rooms_B1F_EventScript_ItemEscapeRope:: @ 829123A AbandonedShip_Rooms_B1F_EventScript_ItemEscapeRope:: @ 829123A
giveitem_std ITEM_ESCAPE_ROPE, 1, 1 finditem_std ITEM_ESCAPE_ROPE
end end
AbandonedShip_Rooms2_B1F_EventScript_ItemDiveBall:: @ 8291247 AbandonedShip_Rooms2_B1F_EventScript_ItemDiveBall:: @ 8291247
giveitem_std ITEM_DIVE_BALL, 1, 1 finditem_std ITEM_DIVE_BALL
end end
AbandonedShip_Room_B1F_EventScript_ItemTM13:: @ 8291254 AbandonedShip_Room_B1F_EventScript_ItemTM13:: @ 8291254
giveitem_std ITEM_TM13, 1, 1 finditem_std ITEM_TM13
end end
AbandonedShip_Rooms2_1F_EventScript_ItemRevive:: @ 8291261 AbandonedShip_Rooms2_1F_EventScript_ItemRevive:: @ 8291261
giveitem_std ITEM_REVIVE, 1, 1 finditem_std ITEM_REVIVE
end end
AbandonedShip_CaptainsOffice_EventScript_ItemStorageKey:: @ 829126E AbandonedShip_CaptainsOffice_EventScript_ItemStorageKey:: @ 829126E
giveitem_std ITEM_STORAGE_KEY, 1, 1 finditem_std ITEM_STORAGE_KEY
end end
AbandonedShip_HiddenFloorRooms_EventScript_ItemLuxuryBall:: @ 829127B AbandonedShip_HiddenFloorRooms_EventScript_ItemLuxuryBall:: @ 829127B
giveitem_std ITEM_LUXURY_BALL, 1, 1 finditem_std ITEM_LUXURY_BALL
end end
AbandonedShip_HiddenFloorRooms_EventScript_ItemScanner:: @ 8291288 AbandonedShip_HiddenFloorRooms_EventScript_ItemScanner:: @ 8291288
giveitem_std ITEM_SCANNER, 1, 1 finditem_std ITEM_SCANNER
end end
AbandonedShip_HiddenFloorRooms_EventScript_ItemWaterStone:: @ 8291295 AbandonedShip_HiddenFloorRooms_EventScript_ItemWaterStone:: @ 8291295
giveitem_std ITEM_WATER_STONE, 1, 1 finditem_std ITEM_WATER_STONE
end end
AbandonedShip_HiddenFloorRooms_EventScript_ItemTM18:: @ 82912A2 AbandonedShip_HiddenFloorRooms_EventScript_ItemTM18:: @ 82912A2
giveitem_std ITEM_TM18, 1, 1 finditem_std ITEM_TM18
end end
ScorchedSlab_EventScript_ItemTM11:: @ 82912AF ScorchedSlab_EventScript_ItemTM11:: @ 82912AF
giveitem_std ITEM_TM11, 1, 1 finditem_std ITEM_TM11
end end
SafariZone_Northwest_EventScript_ItemTM22:: @ 82912BC SafariZone_Northwest_EventScript_ItemTM22:: @ 82912BC
giveitem_std ITEM_TM22, 1, 1 finditem_std ITEM_TM22
end end
SafariZone_North_EventScript_ItemCalcium:: @ 82912C9 SafariZone_North_EventScript_ItemCalcium:: @ 82912C9
giveitem_std ITEM_CALCIUM, 1, 1 finditem_std ITEM_CALCIUM
end end
SafariZone_Southwest_EventScript_ItemMaxRevive:: @ 82912D6 SafariZone_Southwest_EventScript_ItemMaxRevive:: @ 82912D6
giveitem_std ITEM_MAX_REVIVE, 1, 1 finditem_std ITEM_MAX_REVIVE
end end
SafariZone_Northeast_EventScript_ItemNugget:: @ 82912E3 SafariZone_Northeast_EventScript_ItemNugget:: @ 82912E3
giveitem_std ITEM_NUGGET, 1, 1 finditem_std ITEM_NUGGET
end end
SafariZone_Southeast_EventScript_ItemBigPearl:: @ 82912F0 SafariZone_Southeast_EventScript_ItemBigPearl:: @ 82912F0
giveitem_std ITEM_BIG_PEARL, 1, 1 finditem_std ITEM_BIG_PEARL
end end
MtPyre_2F_EventScript_ItemUltraBall:: @ 82912FD MtPyre_2F_EventScript_ItemUltraBall:: @ 82912FD
giveitem_std ITEM_ULTRA_BALL, 1, 1 finditem_std ITEM_ULTRA_BALL
end end
MtPyre_3F_EventScript_ItemSuperRepel:: @ 829130A MtPyre_3F_EventScript_ItemSuperRepel:: @ 829130A
giveitem_std ITEM_SUPER_REPEL, 1, 1 finditem_std ITEM_SUPER_REPEL
end end
MtPyre_4F_EventScript_ItemSeaIncense:: @ 8291317 MtPyre_4F_EventScript_ItemSeaIncense:: @ 8291317
giveitem_std ITEM_SEA_INCENSE, 1, 1 finditem_std ITEM_SEA_INCENSE
end end
MtPyre_5F_EventScript_ItemLaxIncense:: @ 8291324 MtPyre_5F_EventScript_ItemLaxIncense:: @ 8291324
giveitem_std ITEM_LAX_INCENSE, 1, 1 finditem_std ITEM_LAX_INCENSE
end end
MtPyre_6F_EventScript_ItemTM30:: @ 8291331 MtPyre_6F_EventScript_ItemTM30:: @ 8291331
giveitem_std ITEM_TM30, 1, 1 finditem_std ITEM_TM30
end end
MtPyre_Exterior_EventScript_ItemMaxPotion:: @ 829133E MtPyre_Exterior_EventScript_ItemMaxPotion:: @ 829133E
giveitem_std ITEM_MAX_POTION, 1, 1 finditem_std ITEM_MAX_POTION
end end
MtPyre_Exterior_EventScript_ItemTM48:: @ 829134B MtPyre_Exterior_EventScript_ItemTM48:: @ 829134B
giveitem_std ITEM_TM48, 1, 1 finditem_std ITEM_TM48
end end
AquaHideout_B1F_EventScript_ItemMasterBall:: @ 8291358 AquaHideout_B1F_EventScript_ItemMasterBall:: @ 8291358
giveitem_std ITEM_MASTER_BALL, 1, 1 finditem_std ITEM_MASTER_BALL
end end
AquaHideout_B1F_EventScript_ItemNugget:: @ 8291365 AquaHideout_B1F_EventScript_ItemNugget:: @ 8291365
giveitem_std ITEM_NUGGET, 1, 1 finditem_std ITEM_NUGGET
end end
AquaHideout_B1F_EventScript_ItemMaxElixir:: @ 8291372 AquaHideout_B1F_EventScript_ItemMaxElixir:: @ 8291372
giveitem_std ITEM_MAX_ELIXIR, 1, 1 finditem_std ITEM_MAX_ELIXIR
end end
AquaHideout_B2F_EventScript_ItemNestBall:: @ 829137F AquaHideout_B2F_EventScript_ItemNestBall:: @ 829137F
giveitem_std ITEM_NEST_BALL, 1, 1 finditem_std ITEM_NEST_BALL
end end
AquaHideout_B2F_EventScript_ItemMasterBall:: @ 829138C AquaHideout_B2F_EventScript_ItemMasterBall:: @ 829138C
giveitem_std ITEM_MASTER_BALL, 1, 1 // Unused finditem_std ITEM_MASTER_BALL // Unused
end end
Route119_EventScript_ItemNugget:: @ 8291399 Route119_EventScript_ItemNugget:: @ 8291399
giveitem_std ITEM_NUGGET, 1, 1 finditem_std ITEM_NUGGET
end end
Route119_EventScript_ItemMaxElixir:: @ 82913A6 Route119_EventScript_ItemMaxElixir:: @ 82913A6
giveitem_std ITEM_MAX_ELIXIR, 1, 1 finditem_std ITEM_MAX_ELIXIR
end end
Route119_EventScript_ItemNestBall:: @ 82913B3 Route119_EventScript_ItemNestBall:: @ 82913B3
giveitem_std ITEM_NEST_BALL, 1, 1 finditem_std ITEM_NEST_BALL
end end
ShoalCave_LowTideEntranceRoom_EventScript_ItemBigPearl:: @ 82913C0 ShoalCave_LowTideEntranceRoom_EventScript_ItemBigPearl:: @ 82913C0
giveitem_std ITEM_BIG_PEARL, 1, 1 finditem_std ITEM_BIG_PEARL
end end
ShoalCave_LowTideInnerRoom_EventScript_ItemRareCandy:: @ 82913CD ShoalCave_LowTideInnerRoom_EventScript_ItemRareCandy:: @ 82913CD
giveitem_std ITEM_RARE_CANDY, 1, 1 finditem_std ITEM_RARE_CANDY
end end
ShoalCave_LowTideStairsRoom_EventScript_ItemIceHeal:: @ 82913DA ShoalCave_LowTideStairsRoom_EventScript_ItemIceHeal:: @ 82913DA
giveitem_std ITEM_ICE_HEAL, 1, 1 finditem_std ITEM_ICE_HEAL
end end
ShoalCave_LowTideIceRoom_EventScript_ItemTM07:: @ 82913E7 ShoalCave_LowTideIceRoom_EventScript_ItemTM07:: @ 82913E7
giveitem_std ITEM_TM07, 1, 1 finditem_std ITEM_TM07
end end
ShoalCave_LowTideIceRoom_EventScript_ItemNeverMeltIce:: @ 82913F4 ShoalCave_LowTideIceRoom_EventScript_ItemNeverMeltIce:: @ 82913F4
giveitem_std ITEM_NEVER_MELT_ICE, 1, 1 finditem_std ITEM_NEVER_MELT_ICE
end end
SeafloorCavern_Room9_EventScript_ItemTM26:: @ 8291401 SeafloorCavern_Room9_EventScript_ItemTM26:: @ 8291401
giveitem_std ITEM_TM26, 1, 1 finditem_std ITEM_TM26
end end
Route110_TrickHousePuzzle1_EventScript_ItemOrangeMail:: @ 829140E Route110_TrickHousePuzzle1_EventScript_ItemOrangeMail:: @ 829140E
giveitem_std ITEM_ORANGE_MAIL, 1, 1 finditem_std ITEM_ORANGE_MAIL
end end
Route110_TrickHousePuzzle2_EventScript_ItemHarborMail:: @ 829141B Route110_TrickHousePuzzle2_EventScript_ItemHarborMail:: @ 829141B
giveitem_std ITEM_HARBOR_MAIL, 1, 1 finditem_std ITEM_HARBOR_MAIL
end end
Route110_TrickHousePuzzle2_EventScript_ItemWaveMail:: @ 8291428 Route110_TrickHousePuzzle2_EventScript_ItemWaveMail:: @ 8291428
giveitem_std ITEM_WAVE_MAIL, 1, 1 finditem_std ITEM_WAVE_MAIL
end end
Route110_TrickHousePuzzle3_EventScript_ItemShadowMail:: @ 8291435 Route110_TrickHousePuzzle3_EventScript_ItemShadowMail:: @ 8291435
giveitem_std ITEM_SHADOW_MAIL, 1, 1 finditem_std ITEM_SHADOW_MAIL
end end
Route110_TrickHousePuzzle3_EventScript_ItemWoodMail:: @ 8291442 Route110_TrickHousePuzzle3_EventScript_ItemWoodMail:: @ 8291442
giveitem_std ITEM_WOOD_MAIL, 1, 1 finditem_std ITEM_WOOD_MAIL
end end
Route110_TrickHousePuzzle4_EventScript_ItemMechMail:: @ 829144F Route110_TrickHousePuzzle4_EventScript_ItemMechMail:: @ 829144F
giveitem_std ITEM_MECH_MAIL, 1, 1 finditem_std ITEM_MECH_MAIL
end end
Route110_TrickHousePuzzle6_EventScript_ItemGlitterMail:: @ 829145C Route110_TrickHousePuzzle6_EventScript_ItemGlitterMail:: @ 829145C
giveitem_std ITEM_GLITTER_MAIL, 1, 1 finditem_std ITEM_GLITTER_MAIL
end end
Route110_TrickHousePuzzle7_EventScript_ItemTropicMail:: @ 8291469 Route110_TrickHousePuzzle7_EventScript_ItemTropicMail:: @ 8291469
giveitem_std ITEM_TROPIC_MAIL, 1, 1 finditem_std ITEM_TROPIC_MAIL
end end
Route110_TrickHousePuzzle8_EventScript_ItemBeadMail:: @ 8291476 Route110_TrickHousePuzzle8_EventScript_ItemBeadMail:: @ 8291476
giveitem_std ITEM_BEAD_MAIL, 1, 1 finditem_std ITEM_BEAD_MAIL
end end
VictoryRoad_1F_EventScript_ItemMaxElixir:: @ 8291483 VictoryRoad_1F_EventScript_ItemMaxElixir:: @ 8291483
giveitem_std ITEM_MAX_ELIXIR, 1, 1 finditem_std ITEM_MAX_ELIXIR
end end
VictoryRoad_1F_EventScript_ItemPPUp:: @ 8291490 VictoryRoad_1F_EventScript_ItemPPUp:: @ 8291490
giveitem_std ITEM_PP_UP, 1, 1 finditem_std ITEM_PP_UP
end end
VictoryRoad_B1F_EventScript_ItemTM29:: @ 829149D VictoryRoad_B1F_EventScript_ItemTM29:: @ 829149D
giveitem_std ITEM_TM29, 1, 1 finditem_std ITEM_TM29
end end
VictoryRoad_B1F_EventScript_ItemFullRestore:: @ 82914AA VictoryRoad_B1F_EventScript_ItemFullRestore:: @ 82914AA
giveitem_std ITEM_FULL_RESTORE, 1, 1 finditem_std ITEM_FULL_RESTORE
end end
VictoryRoad_B2F_EventScript_ItemFullHeal:: @ 82914B7 VictoryRoad_B2F_EventScript_ItemFullHeal:: @ 82914B7
giveitem_std ITEM_FULL_HEAL, 1, 1 finditem_std ITEM_FULL_HEAL
end end
ArtisanCave_B1F_EventScript_ItemHPUp:: @ 82914C4 ArtisanCave_B1F_EventScript_ItemHPUp:: @ 82914C4
giveitem_std ITEM_HP_UP, 1, 1 finditem_std ITEM_HP_UP
end end
ArtisanCave_1F_EventScript_ItemCarbos:: @ 82914D1 ArtisanCave_1F_EventScript_ItemCarbos:: @ 82914D1
giveitem_std ITEM_CARBOS, 1, 1 finditem_std ITEM_CARBOS
end end
MagmaHideout_1F_EventScript_ItemRareCandy:: @ 82914DE MagmaHideout_1F_EventScript_ItemRareCandy:: @ 82914DE
giveitem_std ITEM_RARE_CANDY, 1, 1 finditem_std ITEM_RARE_CANDY
end end
MagmaHideout_2F_2R_EventScript_MaxElixir:: @ 82914EB MagmaHideout_2F_2R_EventScript_MaxElixir:: @ 82914EB
giveitem_std ITEM_MAX_ELIXIR, 1, 1 finditem_std ITEM_MAX_ELIXIR
end end
MagmaHideout_2F_2R_EventScript_ItemFullRestore:: @ 82914F8 MagmaHideout_2F_2R_EventScript_ItemFullRestore:: @ 82914F8
giveitem_std ITEM_FULL_RESTORE, 1, 1 finditem_std ITEM_FULL_RESTORE
end end
MagmaHideout_3F_1R_EventScript_ItemNugget:: @ 8291505 MagmaHideout_3F_1R_EventScript_ItemNugget:: @ 8291505
giveitem_std ITEM_NUGGET, 1, 1 finditem_std ITEM_NUGGET
end end
MagmaHideout_3F_2R_EventScript_ItemPPMax:: @ 8291512 MagmaHideout_3F_2R_EventScript_ItemPPMax:: @ 8291512
giveitem_std ITEM_PP_MAX, 1, 1 finditem_std ITEM_PP_MAX
end end
MagmaHideout_4F_EventScript_MaxRevive:: @ 829151F MagmaHideout_4F_EventScript_MaxRevive:: @ 829151F
giveitem_std ITEM_MAX_REVIVE, 1, 1 finditem_std ITEM_MAX_REVIVE
end end
MagmaHideout_3F_3R_EventScript_ItemEscapeRope:: @ 829152C MagmaHideout_3F_3R_EventScript_ItemEscapeRope:: @ 829152C
giveitem_std ITEM_ESCAPE_ROPE, 1, 1 finditem_std ITEM_ESCAPE_ROPE
end end
+1 -1
View File
@@ -458,7 +458,7 @@ gSpecials:: @ 81DBA64
def_special sub_813A630 def_special sub_813A630
def_special BufferBattleTowerElevatorFloors def_special BufferBattleTowerElevatorFloors
def_special TryStoreHeldItemsInPyramidBag def_special TryStoreHeldItemsInPyramidBag
def_special sub_81C4F24 def_special ChooseItemsToTossFromPyramidBag
def_special DoBattlePyramidMonsHaveHeldItem def_special DoBattlePyramidMonsHaveHeldItem
def_special BattlePyramidChooseMonHeldItems def_special BattlePyramidChooseMonHeldItems
def_special SetBattleTowerLinkPlayerGfx def_special SetBattleTowerLinkPlayerGfx
+1 -1
View File
@@ -9,7 +9,7 @@ void GenerateBattlePyramidWildMon(void);
u8 GetPyramidRunMultiplier(void); u8 GetPyramidRunMultiplier(void);
u8 InBattlePyramid(void); u8 InBattlePyramid(void);
bool8 InBattlePyramid_(void); bool8 InBattlePyramid_(void);
void sub_81A9E90(void); void PausePyramidChallenge(void);
void SoftResetInBattlePyramid(void); void SoftResetInBattlePyramid(void);
void CopyPyramidTrainerSpeechBefore(u16 trainerId); void CopyPyramidTrainerSpeechBefore(u16 trainerId);
void CopyPyramidTrainerWinSpeech(u16 trainerId); void CopyPyramidTrainerWinSpeech(u16 trainerId);
+1 -1
View File
@@ -43,7 +43,7 @@ void sub_81C4EFC(void);
void GoToBattlePyramidBagMenu(u8 a0, void (*callback)(void)); void GoToBattlePyramidBagMenu(u8 a0, void (*callback)(void));
void sub_81C6714(u8 taskId); void sub_81C6714(u8 taskId);
void TryStoreHeldItemsInPyramidBag(void); void TryStoreHeldItemsInPyramidBag(void);
void sub_81C4F24(void); void ChooseItemsToTossFromPyramidBag(void);
void sub_81C5B14(u8 taskId); void sub_81C5B14(u8 taskId);
void DisplayItemMessageInBattlePyramid(u8 taskId, const u8 *str, void (*callback)(u8 taskId)); void DisplayItemMessageInBattlePyramid(u8 taskId, const u8 *str, void (*callback)(u8 taskId));
+2 -2
View File
@@ -36,14 +36,14 @@
#define BATTLE_PYRAMID_FUNC_SEED_FLOOR 6 #define BATTLE_PYRAMID_FUNC_SEED_FLOOR 6
#define BATTLE_PYRAMID_FUNC_SET_ITEM 7 #define BATTLE_PYRAMID_FUNC_SET_ITEM 7
#define BATTLE_PYRAMID_FUNC_HIDE_ITEM 8 #define BATTLE_PYRAMID_FUNC_HIDE_ITEM 8
#define BATTLE_PYRAMID_FUNC_INIT_TRAINERS 9 #define BATTLE_PYRAMID_FUNC_SET_TRAINERS 9
#define BATTLE_PYRAMID_FUNC_SHOW_HINT_TEXT 10 #define BATTLE_PYRAMID_FUNC_SHOW_HINT_TEXT 10
#define BATTLE_PYRAMID_FUNC_UPDATE_STREAK 11 // unused #define BATTLE_PYRAMID_FUNC_UPDATE_STREAK 11 // unused
#define BATTLE_PYRAMID_FUNC_IS_IN 12 #define BATTLE_PYRAMID_FUNC_IS_IN 12
#define BATTLE_PYRAMID_FUNC_UPDATE_LIGHT 13 #define BATTLE_PYRAMID_FUNC_UPDATE_LIGHT 13
#define BATTLE_PYRAMID_FUNC_CLEAR_HELD_ITEMS 14 #define BATTLE_PYRAMID_FUNC_CLEAR_HELD_ITEMS 14
#define BATTLE_PYRAMID_FUNC_SET_FLOOR_PALETTE 15 #define BATTLE_PYRAMID_FUNC_SET_FLOOR_PALETTE 15
#define BATTLE_PYRAMID_FUNC_16 16 // unused #define BATTLE_PYRAMID_FUNC_START_MENU 16 // unused
#define BATTLE_PYRAMID_FUNC_RESTORE_PARTY 17 #define BATTLE_PYRAMID_FUNC_RESTORE_PARTY 17
#define PYRAMID_DATA_PRIZE 0 #define PYRAMID_DATA_PRIZE 0
+108 -101
View File
@@ -5,37 +5,39 @@
// These temporary flags are are cleared every time a map is loaded. They are used // These temporary flags are are cleared every time a map is loaded. They are used
// for things like shortening an NPCs introduction text if the player already spoke // for things like shortening an NPCs introduction text if the player already spoke
// to them once. // to them once.
#define FLAG_TEMP_1 0x1 #define TEMP_FLAGS_START 0x0
#define FLAG_TEMP_2 0x2 #define FLAG_TEMP_1 (TEMP_FLAGS_START + 0x1)
#define FLAG_TEMP_3 0x3 #define FLAG_TEMP_2 (TEMP_FLAGS_START + 0x2)
#define FLAG_TEMP_4 0x4 #define FLAG_TEMP_3 (TEMP_FLAGS_START + 0x3)
#define FLAG_TEMP_5 0x5 // Unused Flag #define FLAG_TEMP_4 (TEMP_FLAGS_START + 0x4)
#define FLAG_TEMP_6 0x6 // Unused Flag #define FLAG_TEMP_5 (TEMP_FLAGS_START + 0x5) // Unused Flag
#define FLAG_TEMP_7 0x7 // Unused Flag #define FLAG_TEMP_6 (TEMP_FLAGS_START + 0x6) // Unused Flag
#define FLAG_TEMP_8 0x8 // Unused Flag #define FLAG_TEMP_7 (TEMP_FLAGS_START + 0x7) // Unused Flag
#define FLAG_TEMP_9 0x9 // Unused Flag #define FLAG_TEMP_8 (TEMP_FLAGS_START + 0x8) // Unused Flag
#define FLAG_TEMP_A 0xA // Unused Flag #define FLAG_TEMP_9 (TEMP_FLAGS_START + 0x9) // Unused Flag
#define FLAG_TEMP_B 0xB // Unused Flag #define FLAG_TEMP_A (TEMP_FLAGS_START + 0xA) // Unused Flag
#define FLAG_TEMP_C 0xC // Unused Flag #define FLAG_TEMP_B (TEMP_FLAGS_START + 0xB) // Unused Flag
#define FLAG_TEMP_D 0xD // Unused Flag #define FLAG_TEMP_C (TEMP_FLAGS_START + 0xC) // Unused Flag
#define FLAG_TEMP_E 0xE // Unused Flag #define FLAG_TEMP_D (TEMP_FLAGS_START + 0xD) // Unused Flag
#define FLAG_TEMP_F 0xF // Unused Flag #define FLAG_TEMP_E (TEMP_FLAGS_START + 0xE) // Unused Flag
#define FLAG_TEMP_10 0x10 // Unused Flag #define FLAG_TEMP_F (TEMP_FLAGS_START + 0xF) // Unused Flag
#define FLAG_TEMP_11 0x11 #define FLAG_TEMP_10 (TEMP_FLAGS_START + 0x10) // Unused Flag
#define FLAG_TEMP_12 0x12 #define FLAG_TEMP_11 (TEMP_FLAGS_START + 0x11)
#define FLAG_TEMP_13 0x13 #define FLAG_TEMP_12 (TEMP_FLAGS_START + 0x12)
#define FLAG_TEMP_14 0x14 #define FLAG_TEMP_13 (TEMP_FLAGS_START + 0x13)
#define FLAG_TEMP_15 0x15 #define FLAG_TEMP_14 (TEMP_FLAGS_START + 0x14)
#define FLAG_TEMP_16 0x16 #define FLAG_TEMP_15 (TEMP_FLAGS_START + 0x15)
#define FLAG_TEMP_17 0x17 #define FLAG_TEMP_16 (TEMP_FLAGS_START + 0x16)
#define FLAG_TEMP_18 0x18 #define FLAG_TEMP_17 (TEMP_FLAGS_START + 0x17)
#define FLAG_TEMP_19 0x19 #define FLAG_TEMP_18 (TEMP_FLAGS_START + 0x18)
#define FLAG_TEMP_1A 0x1A #define FLAG_TEMP_19 (TEMP_FLAGS_START + 0x19)
#define FLAG_TEMP_1B 0x1B #define FLAG_TEMP_1A (TEMP_FLAGS_START + 0x1A)
#define FLAG_TEMP_1C 0x1C #define FLAG_TEMP_1B (TEMP_FLAGS_START + 0x1B)
#define FLAG_TEMP_1D 0x1D #define FLAG_TEMP_1C (TEMP_FLAGS_START + 0x1C)
#define FLAG_TEMP_1E 0x1E #define FLAG_TEMP_1D (TEMP_FLAGS_START + 0x1D)
#define FLAG_TEMP_1F 0x1F #define FLAG_TEMP_1E (TEMP_FLAGS_START + 0x1E)
#define FLAG_TEMP_1F (TEMP_FLAGS_START + 0x1F)
#define TEMP_FLAGS_END FLAG_TEMP_1F
#define FLAG_UNUSED_0x020 0x20 // Unused Flag #define FLAG_UNUSED_0x020 0x20 // Unused Flag
#define FLAG_UNUSED_0x021 0x21 // Unused Flag #define FLAG_UNUSED_0x021 0x21 // Unused Flag
@@ -1566,77 +1568,82 @@
#define FLAG_UNUSED_0x91F (SYSTEM_FLAGS + 0xBF) // Unused Flag #define FLAG_UNUSED_0x91F (SYSTEM_FLAGS + 0xBF) // Unused Flag
// Daily Flags // Daily Flags
#define FLAG_DAILY_0x920 (SYSTEM_FLAGS + 0xC0) #define DAILY_FLAGS_START 0x920
#define FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY (SYSTEM_FLAGS + 0xC1) #define FLAG_UNUSED_0x920 (DAILY_FLAGS_START + 0x0) // Unused Flag
#define FLAG_DAILY_SECRET_BASE (SYSTEM_FLAGS + 0xC2) #define FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY (DAILY_FLAGS_START + 0x1)
#define FLAG_DAILY_0x923 (SYSTEM_FLAGS + 0xC3) #define FLAG_DAILY_SECRET_BASE (DAILY_FLAGS_START + 0x2)
#define FLAG_DAILY_0x924 (SYSTEM_FLAGS + 0xC4) #define FLAG_UNUSED_0x923 (DAILY_FLAGS_START + 0x3) // Unused Flag
#define FLAG_DAILY_0x925 (SYSTEM_FLAGS + 0xC5) #define FLAG_UNUSED_0x924 (DAILY_FLAGS_START + 0x4) // Unused Flag
#define FLAG_DAILY_0x926 (SYSTEM_FLAGS + 0xC6) #define FLAG_UNUSED_0x925 (DAILY_FLAGS_START + 0x5) // Unused Flag
#define FLAG_DAILY_0x927 (SYSTEM_FLAGS + 0xC7) #define FLAG_UNUSED_0x926 (DAILY_FLAGS_START + 0x6) // Unused Flag
#define FLAG_DAILY_0x928 (SYSTEM_FLAGS + 0xC8) #define FLAG_UNUSED_0x927 (DAILY_FLAGS_START + 0x7) // Unused Flag
#define FLAG_DAILY_0x929 (SYSTEM_FLAGS + 0xC9) #define FLAG_UNUSED_0x928 (DAILY_FLAGS_START + 0x8) // Unused Flag
#define FLAG_DAILY_PICKED_LOTO_TICKET (SYSTEM_FLAGS + 0xCA) #define FLAG_UNUSED_0x929 (DAILY_FLAGS_START + 0x9) // Unused Flag
#define FLAG_DAILY_ROUTE_114_RECEIVED_BERRY (SYSTEM_FLAGS + 0xCB) #define FLAG_DAILY_PICKED_LOTO_TICKET (DAILY_FLAGS_START + 0xA)
#define FLAG_DAILY_ROUTE_111_RECEIVED_BERRY (SYSTEM_FLAGS + 0xCC) #define FLAG_DAILY_ROUTE_114_RECEIVED_BERRY (DAILY_FLAGS_START + 0xB)
#define FLAG_DAILY_BERRY_MASTER_RECEIVED_BERRY (SYSTEM_FLAGS + 0xCD) #define FLAG_DAILY_ROUTE_111_RECEIVED_BERRY (DAILY_FLAGS_START + 0xC)
#define FLAG_DAILY_ROUTE_120_RECEIVED_BERRY (SYSTEM_FLAGS + 0xCE) #define FLAG_DAILY_BERRY_MASTER_RECEIVED_BERRY (DAILY_FLAGS_START + 0xD)
#define FLAG_DAILY_LILYCOVE_RECEIVED_BERRY (SYSTEM_FLAGS + 0xCF) #define FLAG_DAILY_ROUTE_120_RECEIVED_BERRY (DAILY_FLAGS_START + 0xE)
#define FLAG_DAILY_FLOWER_SHOP_RECEIVED_BERRY (SYSTEM_FLAGS + 0xD0) #define FLAG_DAILY_LILYCOVE_RECEIVED_BERRY (DAILY_FLAGS_START + 0xF)
#define FLAG_DAILY_BERRY_MASTERS_WIFE (SYSTEM_FLAGS + 0xD1) #define FLAG_DAILY_FLOWER_SHOP_RECEIVED_BERRY (DAILY_FLAGS_START + 0x10)
#define FLAG_DAILY_SOOTOPOLIS_RECEIVED_BERRY (SYSTEM_FLAGS + 0xD2) #define FLAG_DAILY_BERRY_MASTERS_WIFE (DAILY_FLAGS_START + 0x11)
#define FLAG_DAILY_0x933 (SYSTEM_FLAGS + 0xD3) #define FLAG_DAILY_SOOTOPOLIS_RECEIVED_BERRY (DAILY_FLAGS_START + 0x12)
#define FLAG_DAILY_APPRENTICE_LEAVES (SYSTEM_FLAGS + 0xD4) #define FLAG_UNUSED_0x933 (DAILY_FLAGS_START + 0x13) // Unused Flag
#define FLAG_0x935 (SYSTEM_FLAGS + 0xD5) #define FLAG_DAILY_APPRENTICE_LEAVES (DAILY_FLAGS_START + 0x14)
#define FLAG_0x936 (SYSTEM_FLAGS + 0xD6)
#define FLAG_0x937 (SYSTEM_FLAGS + 0xD7)
#define FLAG_0x938 (SYSTEM_FLAGS + 0xD8)
#define FLAG_0x939 (SYSTEM_FLAGS + 0xD9)
#define FLAG_0x93A (SYSTEM_FLAGS + 0xDA)
#define FLAG_0x93B (SYSTEM_FLAGS + 0xDB)
#define FLAG_0x93C (SYSTEM_FLAGS + 0xDC)
#define FLAG_0x93D (SYSTEM_FLAGS + 0xDD)
#define FLAG_0x93E (SYSTEM_FLAGS + 0xDE)
#define FLAG_0x93F (SYSTEM_FLAGS + 0xDF)
#define FLAG_0x940 (SYSTEM_FLAGS + 0xE0)
#define FLAG_0x941 (SYSTEM_FLAGS + 0xE1)
#define FLAG_0x942 (SYSTEM_FLAGS + 0xE2)
#define FLAG_0x943 (SYSTEM_FLAGS + 0xE3)
#define FLAG_0x944 (SYSTEM_FLAGS + 0xE4)
#define FLAG_0x945 (SYSTEM_FLAGS + 0xE5)
#define FLAG_0x946 (SYSTEM_FLAGS + 0xE6)
#define FLAG_0x947 (SYSTEM_FLAGS + 0xE7)
#define FLAG_0x948 (SYSTEM_FLAGS + 0xE8)
#define FLAG_0x949 (SYSTEM_FLAGS + 0xE9)
#define FLAG_0x94A (SYSTEM_FLAGS + 0xEA)
#define FLAG_0x94B (SYSTEM_FLAGS + 0xEB)
#define FLAG_0x94C (SYSTEM_FLAGS + 0xEC)
#define FLAG_0x94D (SYSTEM_FLAGS + 0xED)
#define FLAG_0x94E (SYSTEM_FLAGS + 0xEE)
#define FLAG_0x94F (SYSTEM_FLAGS + 0xEF)
#define FLAG_0x950 (SYSTEM_FLAGS + 0xF0)
#define FLAG_0x951 (SYSTEM_FLAGS + 0xF1)
#define FLAG_0x952 (SYSTEM_FLAGS + 0xF2)
#define FLAG_0x953 (SYSTEM_FLAGS + 0xF3)
#define FLAG_0x954 (SYSTEM_FLAGS + 0xF4)
#define FLAG_0x955 (SYSTEM_FLAGS + 0xF5)
#define FLAG_0x956 (SYSTEM_FLAGS + 0xF6)
#define FLAG_0x957 (SYSTEM_FLAGS + 0xF7)
#define FLAG_0x958 (SYSTEM_FLAGS + 0xF8)
#define FLAG_0x959 (SYSTEM_FLAGS + 0xF9)
#define FLAG_0x95A (SYSTEM_FLAGS + 0xFA)
#define FLAG_0x95B (SYSTEM_FLAGS + 0xFB)
#define FLAG_0x95C (SYSTEM_FLAGS + 0xFC)
#define FLAG_0x95D (SYSTEM_FLAGS + 0xFD)
#define FLAG_0x95E (SYSTEM_FLAGS + 0xFE)
#define FLAG_0x95F (SYSTEM_FLAGS + 0xFF)
// Special Flags (Unknown) #define FLAG_UNUSED_0x935 (DAILY_FLAGS_START + 0x15) // Unused Flag
#define FLAG_UNUSED_0x936 (DAILY_FLAGS_START + 0x16) // Unused Flag
#define FLAG_UNUSED_0x937 (DAILY_FLAGS_START + 0x17) // Unused Flag
#define FLAG_UNUSED_0x938 (DAILY_FLAGS_START + 0x18) // Unused Flag
#define FLAG_UNUSED_0x939 (DAILY_FLAGS_START + 0x19) // Unused Flag
#define FLAG_UNUSED_0x93A (DAILY_FLAGS_START + 0x1A) // Unused Flag
#define FLAG_UNUSED_0x93B (DAILY_FLAGS_START + 0x1B) // Unused Flag
#define FLAG_UNUSED_0x93C (DAILY_FLAGS_START + 0x1C) // Unused Flag
#define FLAG_UNUSED_0x93D (DAILY_FLAGS_START + 0x1D) // Unused Flag
#define FLAG_UNUSED_0x93E (DAILY_FLAGS_START + 0x1E) // Unused Flag
#define FLAG_UNUSED_0x93F (DAILY_FLAGS_START + 0x1F) // Unused Flag
#define FLAG_UNUSED_0x940 (DAILY_FLAGS_START + 0x20) // Unused Flag
#define FLAG_UNUSED_0x941 (DAILY_FLAGS_START + 0x21) // Unused Flag
#define FLAG_UNUSED_0x942 (DAILY_FLAGS_START + 0x22) // Unused Flag
#define FLAG_UNUSED_0x943 (DAILY_FLAGS_START + 0x23) // Unused Flag
#define FLAG_UNUSED_0x944 (DAILY_FLAGS_START + 0x24) // Unused Flag
#define FLAG_UNUSED_0x945 (DAILY_FLAGS_START + 0x25) // Unused Flag
#define FLAG_UNUSED_0x946 (DAILY_FLAGS_START + 0x26) // Unused Flag
#define FLAG_UNUSED_0x947 (DAILY_FLAGS_START + 0x27) // Unused Flag
#define FLAG_UNUSED_0x948 (DAILY_FLAGS_START + 0x28) // Unused Flag
#define FLAG_UNUSED_0x949 (DAILY_FLAGS_START + 0x29) // Unused Flag
#define FLAG_UNUSED_0x94A (DAILY_FLAGS_START + 0x2A) // Unused Flag
#define FLAG_UNUSED_0x94B (DAILY_FLAGS_START + 0x2B) // Unused Flag
#define FLAG_UNUSED_0x94C (DAILY_FLAGS_START + 0x2C) // Unused Flag
#define FLAG_UNUSED_0x94D (DAILY_FLAGS_START + 0x2D) // Unused Flag
#define FLAG_UNUSED_0x94E (DAILY_FLAGS_START + 0x2E) // Unused Flag
#define FLAG_UNUSED_0x94F (DAILY_FLAGS_START + 0x2F) // Unused Flag
#define FLAG_UNUSED_0x950 (DAILY_FLAGS_START + 0x30) // Unused Flag
#define FLAG_UNUSED_0x951 (DAILY_FLAGS_START + 0x31) // Unused Flag
#define FLAG_UNUSED_0x952 (DAILY_FLAGS_START + 0x32) // Unused Flag
#define FLAG_UNUSED_0x953 (DAILY_FLAGS_START + 0x33) // Unused Flag
#define FLAG_UNUSED_0x954 (DAILY_FLAGS_START + 0x34) // Unused Flag
#define FLAG_UNUSED_0x955 (DAILY_FLAGS_START + 0x35) // Unused Flag
#define FLAG_UNUSED_0x956 (DAILY_FLAGS_START + 0x36) // Unused Flag
#define FLAG_UNUSED_0x957 (DAILY_FLAGS_START + 0x37) // Unused Flag
#define FLAG_UNUSED_0x958 (DAILY_FLAGS_START + 0x38) // Unused Flag
#define FLAG_UNUSED_0x959 (DAILY_FLAGS_START + 0x39) // Unused Flag
#define FLAG_UNUSED_0x95A (DAILY_FLAGS_START + 0x3A) // Unused Flag
#define FLAG_UNUSED_0x95B (DAILY_FLAGS_START + 0x3B) // Unused Flag
#define FLAG_UNUSED_0x95C (DAILY_FLAGS_START + 0x3C) // Unused Flag
#define FLAG_UNUSED_0x95D (DAILY_FLAGS_START + 0x3D) // Unused Flag
#define FLAG_UNUSED_0x95E (DAILY_FLAGS_START + 0x3E) // Unused Flag
#define FLAG_UNUSED_0x95F (DAILY_FLAGS_START + 0x3F) // Unused Flag
#define DAILY_FLAGS_END FLAG_UNUSED_0x95F
// Special Flags (Stored in EWRAM (gSpecialFlags), not in the SaveBlock)
#define SPECIAL_FLAGS_START 0x4000 #define SPECIAL_FLAGS_START 0x4000
#define FLAG_HIDE_MAP_NAME_POPUP 0x4000 #define FLAG_HIDE_MAP_NAME_POPUP (SPECIAL_FLAGS_START + 0x0)
#define FLAG_DONT_TRANSITION_MUSIC 0x4001 #define FLAG_DONT_TRANSITION_MUSIC (SPECIAL_FLAGS_START + 0x1)
#define FLAG_SPECIAL_FLAG_0x4002 0x4002 #define FLAG_SPECIAL_FLAG_0x4002 (SPECIAL_FLAGS_START + 0x2)
#define FLAG_SPECIAL_FLAG_0x4003 0x4003 #define FLAG_SPECIAL_FLAG_UNUSED_0x4003 (SPECIAL_FLAGS_START + 0x3) // Unused Flag
#define FLAG_STORING_ITEMS_IN_PYRAMID_BAG 0x4004 #define FLAG_STORING_ITEMS_IN_PYRAMID_BAG (SPECIAL_FLAGS_START + 0x4)
// FLAG_SPECIAL_FLAG_0x4005 - 0x407F also exist and are unused
#define SPECIAL_FLAGS_END (SPECIAL_FLAGS_START + 0x7F)
#endif // GUARD_CONSTANTS_FLAGS_H #endif // GUARD_CONSTANTS_FLAGS_H
+1 -1
View File
@@ -361,7 +361,7 @@
#define LAYOUT_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_WILD_MONS 358 #define LAYOUT_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_WILD_MONS 358
#define LAYOUT_UNKNOWN_084693AC 359 #define LAYOUT_UNKNOWN_084693AC 359
#define LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY 360 #define LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY 360
#define LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE 361 #define LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR 361
#define LAYOUT_BATTLE_PYRAMID_SQUARE01 362 #define LAYOUT_BATTLE_PYRAMID_SQUARE01 362
#define LAYOUT_BATTLE_PYRAMID_SQUARE02 363 #define LAYOUT_BATTLE_PYRAMID_SQUARE02 363
#define LAYOUT_BATTLE_PYRAMID_SQUARE03 364 #define LAYOUT_BATTLE_PYRAMID_SQUARE03 364
+1 -1
View File
@@ -487,7 +487,7 @@
#define MAP_BATTLE_FRONTIER_BATTLE_PALACE_CORRIDOR (23 | (26 << 8)) #define MAP_BATTLE_FRONTIER_BATTLE_PALACE_CORRIDOR (23 | (26 << 8))
#define MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM (24 | (26 << 8)) #define MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM (24 | (26 << 8))
#define MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY (25 | (26 << 8)) #define MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY (25 | (26 << 8))
#define MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE (26 | (26 << 8)) #define MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR (26 | (26 << 8))
#define MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP (27 | (26 << 8)) #define MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP (27 | (26 << 8))
#define MAP_BATTLE_FRONTIER_BATTLE_ARENA_LOBBY (28 | (26 << 8)) #define MAP_BATTLE_FRONTIER_BATTLE_ARENA_LOBBY (28 | (26 << 8))
#define MAP_BATTLE_FRONTIER_BATTLE_ARENA_CORRIDOR (29 | (26 << 8)) #define MAP_BATTLE_FRONTIER_BATTLE_ARENA_CORRIDOR (29 | (26 << 8))
+18 -16
View File
@@ -5,22 +5,24 @@
// temporary vars // temporary vars
// The first 0x10 vars are are temporary--they are cleared every time a map is loaded. // The first 0x10 vars are are temporary--they are cleared every time a map is loaded.
#define VAR_TEMP_0 0x4000 #define TEMP_VARS_START 0x4000
#define VAR_TEMP_1 0x4001 #define VAR_TEMP_0 (TEMP_VARS_START + 0x0)
#define VAR_TEMP_2 0x4002 #define VAR_TEMP_1 (TEMP_VARS_START + 0x1)
#define VAR_TEMP_3 0x4003 #define VAR_TEMP_2 (TEMP_VARS_START + 0x2)
#define VAR_TEMP_4 0x4004 #define VAR_TEMP_3 (TEMP_VARS_START + 0x3)
#define VAR_TEMP_5 0x4005 #define VAR_TEMP_4 (TEMP_VARS_START + 0x4)
#define VAR_TEMP_6 0x4006 #define VAR_TEMP_5 (TEMP_VARS_START + 0x5)
#define VAR_TEMP_7 0x4007 #define VAR_TEMP_6 (TEMP_VARS_START + 0x6)
#define VAR_TEMP_8 0x4008 #define VAR_TEMP_7 (TEMP_VARS_START + 0x7)
#define VAR_TEMP_9 0x4009 #define VAR_TEMP_8 (TEMP_VARS_START + 0x8)
#define VAR_TEMP_A 0x400A #define VAR_TEMP_9 (TEMP_VARS_START + 0x9)
#define VAR_TEMP_B 0x400B #define VAR_TEMP_A (TEMP_VARS_START + 0xA)
#define VAR_TEMP_C 0x400C #define VAR_TEMP_B (TEMP_VARS_START + 0xB)
#define VAR_TEMP_D 0x400D #define VAR_TEMP_C (TEMP_VARS_START + 0xC)
#define VAR_TEMP_E 0x400E #define VAR_TEMP_D (TEMP_VARS_START + 0xD)
#define VAR_TEMP_F 0x400F #define VAR_TEMP_E (TEMP_VARS_START + 0xE)
#define VAR_TEMP_F (TEMP_VARS_START + 0xF)
#define TEMP_VARS_END VAR_TEMP_F
// object gfx id vars // object gfx id vars
// These 0x10 vars are used to dynamically control a map object's sprite. // These 0x10 vars are used to dynamically control a map object's sprite.
+2 -2
View File
@@ -16,8 +16,8 @@ bool32 IsMysteryEventEnabled(void);
void DisableMysteryGift(void); void DisableMysteryGift(void);
void EnableMysteryGift(void); void EnableMysteryGift(void);
bool32 IsMysteryGiftEnabled(void); bool32 IsMysteryGiftEnabled(void);
void sub_809D4D8(void); void ClearMysteryEventFlags(void);
void sub_809D570(void); void ClearMysteryEventVars(void);
void DisableResetRTC(void); void DisableResetRTC(void);
void EnableResetRTC(void); void EnableResetRTC(void);
bool32 CanResetRTC(void); bool32 CanResetRTC(void);
+2 -4
View File
@@ -371,8 +371,6 @@ extern const u8 SecretBase_Text_Trainer7Defeated[];
extern const u8 SecretBase_Text_Trainer8Defeated[]; extern const u8 SecretBase_Text_Trainer8Defeated[];
extern const u8 SecretBase_Text_Trainer9Defeated[]; extern const u8 SecretBase_Text_Trainer9Defeated[];
extern const u8 BattleFrontier_BattlePyramidEmptySquare_EventScript_252C88[];
//field effects //field effects
extern const u8 EventScript_FldEffStrength[]; extern const u8 EventScript_FldEffStrength[];
extern const u8 EventScript_FailSweetScent[]; extern const u8 EventScript_FailSweetScent[];
@@ -543,7 +541,6 @@ extern const u8 EventScript_CannotUseWaterfall[];
extern const u8 EventScript_UseDive[]; extern const u8 EventScript_UseDive[];
extern const u8 EventScript_UseDiveUnderwater[]; extern const u8 EventScript_UseDiveUnderwater[];
extern const u8 EventScript_FallDownHole[]; extern const u8 EventScript_FallDownHole[];
extern const u8 BattleFrontier_BattlePyramidEmptySquare_EventScript_252BE8[];
extern const u8 EventScript_FieldPoison[]; extern const u8 EventScript_FieldPoison[];
extern const u8 EventScript_EggHatch[]; extern const u8 EventScript_EggHatch[];
extern const u8 AbnormalWeather_EventScript_EndEventAndCleanup_1[]; extern const u8 AbnormalWeather_EventScript_EndEventAndCleanup_1[];
@@ -572,7 +569,8 @@ extern const u8 SecretBase_EventScript_PutAwayDecoration[];
extern const u8 SecretBase_EventScript_SetDecoration[]; extern const u8 SecretBase_EventScript_SetDecoration[];
// Battle Pyramid. // Battle Pyramid.
extern const u8 BattleFrontier_BattlePyramidEmptySquare_EventScript_252C88[]; extern const u8 BattlePyramid_Retire[];
extern const u8 BattlePyramid_WarpToNextFloor[];
extern const u8 BattlePyramid_TrainerBattle[]; extern const u8 BattlePyramid_TrainerBattle[];
extern const u8 BattlePyramid_FindItemBall[]; extern const u8 BattlePyramid_FindItemBall[];
+2 -2
View File
@@ -4,9 +4,9 @@
extern bool8 (*gMenuCallback)(void); extern bool8 (*gMenuCallback)(void);
void sub_809FA18(void); void sub_809FA18(void);
void sub_809FA34(u8 taskId); void Task_ShowStartMenu(u8 taskId);
void ShowStartMenu(void); void ShowStartMenu(void);
void sub_809FDD4(void); void ShowBattlePyramidStartMenu(void);
void SaveGame(void); void SaveGame(void);
void sub_80A0514(void); void sub_80A0514(void);
void sub_80A08CC(void); void sub_80A08CC(void);
+126 -126
View File
@@ -1805,132 +1805,132 @@ extern const u8 gBattleDomeWinText6[];
extern const u8 gBattleDomeWinText7[]; extern const u8 gBattleDomeWinText7[];
// Battle Pyramid. // Battle Pyramid.
extern const u8 BattlePyramid_ExitHintUp_Text1[]; extern const u8 BattlePyramid_Text_ExitHintUp1[];
extern const u8 BattlePyramid_ExitHintLeft_Text1[]; extern const u8 BattlePyramid_Text_ExitHintLeft1[];
extern const u8 BattlePyramid_ExitHintRight_Text1[]; extern const u8 BattlePyramid_Text_ExitHintRight1[];
extern const u8 BattlePyramid_ExitHintDown_Text1[]; extern const u8 BattlePyramid_Text_ExitHintDown1[];
extern const u8 BattlePyramid_ZeroItemsRemaining_Text1[]; extern const u8 BattlePyramid_Text_ZeroItemsRemaining1[];
extern const u8 BattlePyramid_OneItemRemaining_Text1[]; extern const u8 BattlePyramid_Text_OneItemRemaining1[];
extern const u8 BattlePyramid_TwoItemsRemaining_Text1[]; extern const u8 BattlePyramid_Text_TwoItemsRemaining1[];
extern const u8 BattlePyramid_ThreeItemsRemaining_Text1[]; extern const u8 BattlePyramid_Text_ThreeItemsRemaining1[];
extern const u8 BattlePyramid_FourItemsRemaining_Text1[]; extern const u8 BattlePyramid_Text_FourItemsRemaining1[];
extern const u8 BattlePyramid_FiveItemsRemaining_Text1[]; extern const u8 BattlePyramid_Text_FiveItemsRemaining1[];
extern const u8 BattlePyramid_SixItemsRemaining_Text1[]; extern const u8 BattlePyramid_Text_SixItemsRemaining1[];
extern const u8 BattlePyramid_SevenItemsRemaining_Text1[]; extern const u8 BattlePyramid_Text_SevenItemsRemaining1[];
extern const u8 BattlePyramid_EightItemsRemaining_Text1[]; extern const u8 BattlePyramid_Text_EightItemsRemaining1[];
extern const u8 BattlePyramid_ZeroTrainersRemaining_Text1[]; extern const u8 BattlePyramid_Text_ZeroTrainersRemaining1[];
extern const u8 BattlePyramid_OneTrainersRemaining_Text1[]; extern const u8 BattlePyramid_Text_OneTrainersRemaining1[];
extern const u8 BattlePyramid_TwoTrainersRemaining_Text1[]; extern const u8 BattlePyramid_Text_TwoTrainersRemaining1[];
extern const u8 BattlePyramid_ThreeTrainersRemaining_Text1[]; extern const u8 BattlePyramid_Text_ThreeTrainersRemaining1[];
extern const u8 BattlePyramid_FourTrainersRemaining_Text1[]; extern const u8 BattlePyramid_Text_FourTrainersRemaining1[];
extern const u8 BattlePyramid_FiveTrainersRemaining_Text1[]; extern const u8 BattlePyramid_Text_FiveTrainersRemaining1[];
extern const u8 BattlePyramid_SixTrainersRemaining_Text1[]; extern const u8 BattlePyramid_Text_SixTrainersRemaining1[];
extern const u8 BattlePyramid_SevenTrainersRemaining_Text1[]; extern const u8 BattlePyramid_Text_SevenTrainersRemaining1[];
extern const u8 BattlePyramid_ExitHintUp_Text2[]; extern const u8 BattlePyramid_Text_ExitHintUp2[];
extern const u8 BattlePyramid_ExitHintLeft_Text2[]; extern const u8 BattlePyramid_Text_ExitHintLeft2[];
extern const u8 BattlePyramid_ExitHintRight_Text2[]; extern const u8 BattlePyramid_Text_ExitHintRight2[];
extern const u8 BattlePyramid_ExitHintDown_Text2[]; extern const u8 BattlePyramid_Text_ExitHintDown2[];
extern const u8 BattlePyramid_ZeroItemsRemaining_Text2[]; extern const u8 BattlePyramid_Text_ZeroItemsRemaining2[];
extern const u8 BattlePyramid_OneItemRemaining_Text2[]; extern const u8 BattlePyramid_Text_OneItemRemaining2[];
extern const u8 BattlePyramid_TwoItemsRemaining_Text2[]; extern const u8 BattlePyramid_Text_TwoItemsRemaining2[];
extern const u8 BattlePyramid_ThreeItemsRemaining_Text2[]; extern const u8 BattlePyramid_Text_ThreeItemsRemaining2[];
extern const u8 BattlePyramid_FourItemsRemaining_Text2[]; extern const u8 BattlePyramid_Text_FourItemsRemaining2[];
extern const u8 BattlePyramid_FiveItemsRemaining_Text2[]; extern const u8 BattlePyramid_Text_FiveItemsRemaining2[];
extern const u8 BattlePyramid_SixItemsRemaining_Text2[]; extern const u8 BattlePyramid_Text_SixItemsRemaining2[];
extern const u8 BattlePyramid_SevenItemsRemaining_Text2[]; extern const u8 BattlePyramid_Text_SevenItemsRemaining2[];
extern const u8 BattlePyramid_EightItemsRemaining_Text2[]; extern const u8 BattlePyramid_Text_EightItemsRemaining2[];
extern const u8 BattlePyramid_ZeroTrainersRemaining_Text2[]; extern const u8 BattlePyramid_Text_ZeroTrainersRemaining2[];
extern const u8 BattlePyramid_OneTrainersRemaining_Text2[]; extern const u8 BattlePyramid_Text_OneTrainersRemaining2[];
extern const u8 BattlePyramid_TwoTrainersRemaining_Text2[]; extern const u8 BattlePyramid_Text_TwoTrainersRemaining2[];
extern const u8 BattlePyramid_ThreeTrainersRemaining_Text2[]; extern const u8 BattlePyramid_Text_ThreeTrainersRemaining2[];
extern const u8 BattlePyramid_FourTrainersRemaining_Text2[]; extern const u8 BattlePyramid_Text_FourTrainersRemaining2[];
extern const u8 BattlePyramid_FiveTrainersRemaining_Text2[]; extern const u8 BattlePyramid_Text_FiveTrainersRemaining2[];
extern const u8 BattlePyramid_SixTrainersRemaining_Text2[]; extern const u8 BattlePyramid_Text_SixTrainersRemaining2[];
extern const u8 BattlePyramid_SevenTrainersRemaining_Text2[]; extern const u8 BattlePyramid_Text_SevenTrainersRemaining2[];
extern const u8 BattlePyramid_ExitHintUp_Text3[]; extern const u8 BattlePyramid_Text_ExitHintUp3[];
extern const u8 BattlePyramid_ExitHintLeft_Text3[]; extern const u8 BattlePyramid_Text_ExitHintLeft3[];
extern const u8 BattlePyramid_ExitHintRight_Text3[]; extern const u8 BattlePyramid_Text_ExitHintRight3[];
extern const u8 BattlePyramid_ExitHintDown_Text3[]; extern const u8 BattlePyramid_Text_ExitHintDown3[];
extern const u8 BattlePyramid_ZeroItemsRemaining_Text3[]; extern const u8 BattlePyramid_Text_ZeroItemsRemaining3[];
extern const u8 BattlePyramid_OneItemRemaining_Text3[]; extern const u8 BattlePyramid_Text_OneItemRemaining3[];
extern const u8 BattlePyramid_TwoItemsRemaining_Text3[]; extern const u8 BattlePyramid_Text_TwoItemsRemaining3[];
extern const u8 BattlePyramid_ThreeItemsRemaining_Text3[]; extern const u8 BattlePyramid_Text_ThreeItemsRemaining3[];
extern const u8 BattlePyramid_FourItemsRemaining_Text3[]; extern const u8 BattlePyramid_Text_FourItemsRemaining3[];
extern const u8 BattlePyramid_FiveItemsRemaining_Text3[]; extern const u8 BattlePyramid_Text_FiveItemsRemaining3[];
extern const u8 BattlePyramid_SixItemsRemaining_Text3[]; extern const u8 BattlePyramid_Text_SixItemsRemaining3[];
extern const u8 BattlePyramid_SevenItemsRemaining_Text3[]; extern const u8 BattlePyramid_Text_SevenItemsRemaining3[];
extern const u8 BattlePyramid_EightItemsRemaining_Text3[]; extern const u8 BattlePyramid_Text_EightItemsRemaining3[];
extern const u8 BattlePyramid_ZeroTrainersRemaining_Text3[]; extern const u8 BattlePyramid_Text_ZeroTrainersRemaining3[];
extern const u8 BattlePyramid_OneTrainersRemaining_Text3[]; extern const u8 BattlePyramid_Text_OneTrainersRemaining3[];
extern const u8 BattlePyramid_TwoTrainersRemaining_Text3[]; extern const u8 BattlePyramid_Text_TwoTrainersRemaining3[];
extern const u8 BattlePyramid_ThreeTrainersRemaining_Text3[]; extern const u8 BattlePyramid_Text_ThreeTrainersRemaining3[];
extern const u8 BattlePyramid_FourTrainersRemaining_Text3[]; extern const u8 BattlePyramid_Text_FourTrainersRemaining3[];
extern const u8 BattlePyramid_FiveTrainersRemaining_Text3[]; extern const u8 BattlePyramid_Text_FiveTrainersRemaining3[];
extern const u8 BattlePyramid_SixTrainersRemaining_Text3[]; extern const u8 BattlePyramid_Text_SixTrainersRemaining3[];
extern const u8 BattlePyramid_SevenTrainersRemaining_Text3[]; extern const u8 BattlePyramid_Text_SevenTrainersRemaining3[];
extern const u8 BattlePyramid_ExitHintUp_Text4[]; extern const u8 BattlePyramid_Text_ExitHintUp4[];
extern const u8 BattlePyramid_ExitHintLeft_Text4[]; extern const u8 BattlePyramid_Text_ExitHintLeft4[];
extern const u8 BattlePyramid_ExitHintRight_Text4[]; extern const u8 BattlePyramid_Text_ExitHintRight4[];
extern const u8 BattlePyramid_ExitHintDown_Text4[]; extern const u8 BattlePyramid_Text_ExitHintDown4[];
extern const u8 BattlePyramid_ZeroItemsRemaining_Text4[]; extern const u8 BattlePyramid_Text_ZeroItemsRemaining4[];
extern const u8 BattlePyramid_OneItemRemaining_Text4[]; extern const u8 BattlePyramid_Text_OneItemRemaining4[];
extern const u8 BattlePyramid_TwoItemsRemaining_Text4[]; extern const u8 BattlePyramid_Text_TwoItemsRemaining4[];
extern const u8 BattlePyramid_ThreeItemsRemaining_Text4[]; extern const u8 BattlePyramid_Text_ThreeItemsRemaining4[];
extern const u8 BattlePyramid_FourItemsRemaining_Text4[]; extern const u8 BattlePyramid_Text_FourItemsRemaining4[];
extern const u8 BattlePyramid_FiveItemsRemaining_Text4[]; extern const u8 BattlePyramid_Text_FiveItemsRemaining4[];
extern const u8 BattlePyramid_SixItemsRemaining_Text4[]; extern const u8 BattlePyramid_Text_SixItemsRemaining4[];
extern const u8 BattlePyramid_SevenItemsRemaining_Text4[]; extern const u8 BattlePyramid_Text_SevenItemsRemaining4[];
extern const u8 BattlePyramid_EightItemsRemaining_Text4[]; extern const u8 BattlePyramid_Text_EightItemsRemaining4[];
extern const u8 BattlePyramid_ZeroTrainersRemaining_Text4[]; extern const u8 BattlePyramid_Text_ZeroTrainersRemaining4[];
extern const u8 BattlePyramid_OneTrainersRemaining_Text4[]; extern const u8 BattlePyramid_Text_OneTrainersRemaining4[];
extern const u8 BattlePyramid_TwoTrainersRemaining_Text4[]; extern const u8 BattlePyramid_Text_TwoTrainersRemaining4[];
extern const u8 BattlePyramid_ThreeTrainersRemaining_Text4[]; extern const u8 BattlePyramid_Text_ThreeTrainersRemaining4[];
extern const u8 BattlePyramid_FourTrainersRemaining_Text4[]; extern const u8 BattlePyramid_Text_FourTrainersRemaining4[];
extern const u8 BattlePyramid_FiveTrainersRemaining_Text4[]; extern const u8 BattlePyramid_Text_FiveTrainersRemaining4[];
extern const u8 BattlePyramid_SixTrainersRemaining_Text4[]; extern const u8 BattlePyramid_Text_SixTrainersRemaining4[];
extern const u8 BattlePyramid_SevenTrainersRemaining_Text4[]; extern const u8 BattlePyramid_Text_SevenTrainersRemaining4[];
extern const u8 BattlePyramid_ExitHintUp_Text5[]; extern const u8 BattlePyramid_Text_ExitHintUp5[];
extern const u8 BattlePyramid_ExitHintLeft_Text5[]; extern const u8 BattlePyramid_Text_ExitHintLeft5[];
extern const u8 BattlePyramid_ExitHintRight_Text5[]; extern const u8 BattlePyramid_Text_ExitHintRight5[];
extern const u8 BattlePyramid_ExitHintDown_Text5[]; extern const u8 BattlePyramid_Text_ExitHintDown5[];
extern const u8 BattlePyramid_ZeroItemsRemaining_Text5[]; extern const u8 BattlePyramid_Text_ZeroItemsRemaining5[];
extern const u8 BattlePyramid_OneItemRemaining_Text5[]; extern const u8 BattlePyramid_Text_OneItemRemaining5[];
extern const u8 BattlePyramid_TwoItemsRemaining_Text5[]; extern const u8 BattlePyramid_Text_TwoItemsRemaining5[];
extern const u8 BattlePyramid_ThreeItemsRemaining_Text5[]; extern const u8 BattlePyramid_Text_ThreeItemsRemaining5[];
extern const u8 BattlePyramid_FourItemsRemaining_Text5[]; extern const u8 BattlePyramid_Text_FourItemsRemaining5[];
extern const u8 BattlePyramid_FiveItemsRemaining_Text5[]; extern const u8 BattlePyramid_Text_FiveItemsRemaining5[];
extern const u8 BattlePyramid_SixItemsRemaining_Text5[]; extern const u8 BattlePyramid_Text_SixItemsRemaining5[];
extern const u8 BattlePyramid_SevenItemsRemaining_Text5[]; extern const u8 BattlePyramid_Text_SevenItemsRemaining5[];
extern const u8 BattlePyramid_EightItemsRemaining_Text5[]; extern const u8 BattlePyramid_Text_EightItemsRemaining5[];
extern const u8 BattlePyramid_ZeroTrainersRemaining_Text5[]; extern const u8 BattlePyramid_Text_ZeroTrainersRemaining5[];
extern const u8 BattlePyramid_OneTrainersRemaining_Text5[]; extern const u8 BattlePyramid_Text_OneTrainersRemaining5[];
extern const u8 BattlePyramid_TwoTrainersRemaining_Text5[]; extern const u8 BattlePyramid_Text_TwoTrainersRemaining5[];
extern const u8 BattlePyramid_ThreeTrainersRemaining_Text5[]; extern const u8 BattlePyramid_Text_ThreeTrainersRemaining5[];
extern const u8 BattlePyramid_FourTrainersRemaining_Text5[]; extern const u8 BattlePyramid_Text_FourTrainersRemaining5[];
extern const u8 BattlePyramid_FiveTrainersRemaining_Text5[]; extern const u8 BattlePyramid_Text_FiveTrainersRemaining5[];
extern const u8 BattlePyramid_SixTrainersRemaining_Text5[]; extern const u8 BattlePyramid_Text_SixTrainersRemaining5[];
extern const u8 BattlePyramid_SevenTrainersRemaining_Text5[]; extern const u8 BattlePyramid_Text_SevenTrainersRemaining5[];
extern const u8 BattlePyramid_ExitHintUp_Text6[]; extern const u8 BattlePyramid_Text_ExitHintUp6[];
extern const u8 BattlePyramid_ExitHintLeft_Text6[]; extern const u8 BattlePyramid_Text_ExitHintLeft6[];
extern const u8 BattlePyramid_ExitHintRight_Text6[]; extern const u8 BattlePyramid_Text_ExitHintRight6[];
extern const u8 BattlePyramid_ExitHintDown_Text6[]; extern const u8 BattlePyramid_Text_ExitHintDown6[];
extern const u8 BattlePyramid_ZeroItemsRemaining_Text6[]; extern const u8 BattlePyramid_Text_ZeroItemsRemaining6[];
extern const u8 BattlePyramid_OneItemRemaining_Text6[]; extern const u8 BattlePyramid_Text_OneItemRemaining6[];
extern const u8 BattlePyramid_TwoItemsRemaining_Text6[]; extern const u8 BattlePyramid_Text_TwoItemsRemaining6[];
extern const u8 BattlePyramid_ThreeItemsRemaining_Text6[]; extern const u8 BattlePyramid_Text_ThreeItemsRemaining6[];
extern const u8 BattlePyramid_FourItemsRemaining_Text6[]; extern const u8 BattlePyramid_Text_FourItemsRemaining6[];
extern const u8 BattlePyramid_FiveItemsRemaining_Text6[]; extern const u8 BattlePyramid_Text_FiveItemsRemaining6[];
extern const u8 BattlePyramid_SixItemsRemaining_Text6[]; extern const u8 BattlePyramid_Text_SixItemsRemaining6[];
extern const u8 BattlePyramid_SevenItemsRemaining_Text6[]; extern const u8 BattlePyramid_Text_SevenItemsRemaining6[];
extern const u8 BattlePyramid_EightItemsRemaining_Text6[]; extern const u8 BattlePyramid_Text_EightItemsRemaining6[];
extern const u8 BattlePyramid_ZeroTrainersRemaining_Text6[]; extern const u8 BattlePyramid_Text_ZeroTrainersRemaining6[];
extern const u8 BattlePyramid_OneTrainersRemaining_Text6[]; extern const u8 BattlePyramid_Text_OneTrainersRemaining6[];
extern const u8 BattlePyramid_TwoTrainersRemaining_Text6[]; extern const u8 BattlePyramid_Text_TwoTrainersRemaining6[];
extern const u8 BattlePyramid_ThreeTrainersRemaining_Text6[]; extern const u8 BattlePyramid_Text_ThreeTrainersRemaining6[];
extern const u8 BattlePyramid_FourTrainersRemaining_Text6[]; extern const u8 BattlePyramid_Text_FourTrainersRemaining6[];
extern const u8 BattlePyramid_FiveTrainersRemaining_Text6[]; extern const u8 BattlePyramid_Text_FiveTrainersRemaining6[];
extern const u8 BattlePyramid_SixTrainersRemaining_Text6[]; extern const u8 BattlePyramid_Text_SixTrainersRemaining6[];
extern const u8 BattlePyramid_SevenTrainersRemaining_Text6[]; extern const u8 BattlePyramid_Text_SevenTrainersRemaining6[];
+156 -154
View File
@@ -77,14 +77,14 @@ static void GiveBattlePyramidPrize(void);
static void SeedPyramidFloor(void); static void SeedPyramidFloor(void);
static void SetPickupItem(void); static void SetPickupItem(void);
static void HidePyramidItem(void); static void HidePyramidItem(void);
static void InitPyramidFacilityTrainers(void); static void SetPyramidFacilityTrainers(void);
static void ShowPostBattleHintText(void); static void ShowPostBattleHintText(void);
static void UpdatePyramidWinStreak(void); static void UpdatePyramidWinStreak(void);
static void GetInBattlePyramid(void); static void GetInBattlePyramid(void);
static void UpdatePyramidLightRadius(void); static void UpdatePyramidLightRadius(void);
static void ClearPyramidPartyHeldItems(void); static void ClearPyramidPartyHeldItems(void);
static void SetPyramidFloorPalette(void); static void SetPyramidFloorPalette(void);
static void sub_81A9828(void); static void BattlePyramidStartMenu(void);
static void RestorePyramidPlayerParty(void); static void RestorePyramidPlayerParty(void);
static void InitPyramidBagItems(u8 lvlMode); static void InitPyramidBagItems(u8 lvlMode);
static u8 GetPyramidFloorTemplateId(void); static u8 GetPyramidFloorTemplateId(void);
@@ -525,200 +525,200 @@ static const u8 sTrainerTextGroups[50][2] =
static const u8 *const sExitDirectionHintTexts1[] = static const u8 *const sExitDirectionHintTexts1[] =
{ {
BattlePyramid_ExitHintUp_Text1, BattlePyramid_Text_ExitHintUp1,
BattlePyramid_ExitHintLeft_Text1, BattlePyramid_Text_ExitHintLeft1,
BattlePyramid_ExitHintRight_Text1, BattlePyramid_Text_ExitHintRight1,
BattlePyramid_ExitHintDown_Text1, BattlePyramid_Text_ExitHintDown1,
}; };
static const u8 *const sRemainingItemsHintTexts1[] = static const u8 *const sRemainingItemsHintTexts1[] =
{ {
BattlePyramid_ZeroItemsRemaining_Text1, BattlePyramid_Text_ZeroItemsRemaining1,
BattlePyramid_OneItemRemaining_Text1, BattlePyramid_Text_OneItemRemaining1,
BattlePyramid_TwoItemsRemaining_Text1, BattlePyramid_Text_TwoItemsRemaining1,
BattlePyramid_ThreeItemsRemaining_Text1, BattlePyramid_Text_ThreeItemsRemaining1,
BattlePyramid_FourItemsRemaining_Text1, BattlePyramid_Text_FourItemsRemaining1,
BattlePyramid_FiveItemsRemaining_Text1, BattlePyramid_Text_FiveItemsRemaining1,
BattlePyramid_SixItemsRemaining_Text1, BattlePyramid_Text_SixItemsRemaining1,
BattlePyramid_SevenItemsRemaining_Text1, BattlePyramid_Text_SevenItemsRemaining1,
BattlePyramid_EightItemsRemaining_Text1, BattlePyramid_Text_EightItemsRemaining1,
}; };
static const u8 *const sRemainingTrainersHintTexts1[] = static const u8 *const sRemainingTrainersHintTexts1[] =
{ {
BattlePyramid_ZeroTrainersRemaining_Text1, BattlePyramid_Text_ZeroTrainersRemaining1,
BattlePyramid_OneTrainersRemaining_Text1, BattlePyramid_Text_OneTrainersRemaining1,
BattlePyramid_TwoTrainersRemaining_Text1, BattlePyramid_Text_TwoTrainersRemaining1,
BattlePyramid_ThreeTrainersRemaining_Text1, BattlePyramid_Text_ThreeTrainersRemaining1,
BattlePyramid_FourTrainersRemaining_Text1, BattlePyramid_Text_FourTrainersRemaining1,
BattlePyramid_FiveTrainersRemaining_Text1, BattlePyramid_Text_FiveTrainersRemaining1,
BattlePyramid_SixTrainersRemaining_Text1, BattlePyramid_Text_SixTrainersRemaining1,
BattlePyramid_SevenTrainersRemaining_Text1, BattlePyramid_Text_SevenTrainersRemaining1,
}; };
static const u8 *const sExitDirectionHintTexts2[] = static const u8 *const sExitDirectionHintTexts2[] =
{ {
BattlePyramid_ExitHintUp_Text2, BattlePyramid_Text_ExitHintUp2,
BattlePyramid_ExitHintLeft_Text2, BattlePyramid_Text_ExitHintLeft2,
BattlePyramid_ExitHintRight_Text2, BattlePyramid_Text_ExitHintRight2,
BattlePyramid_ExitHintDown_Text2, BattlePyramid_Text_ExitHintDown2,
}; };
static const u8 *const sRemainingItemsHintTexts2[] = static const u8 *const sRemainingItemsHintTexts2[] =
{ {
BattlePyramid_ZeroItemsRemaining_Text2, BattlePyramid_Text_ZeroItemsRemaining2,
BattlePyramid_OneItemRemaining_Text2, BattlePyramid_Text_OneItemRemaining2,
BattlePyramid_TwoItemsRemaining_Text2, BattlePyramid_Text_TwoItemsRemaining2,
BattlePyramid_ThreeItemsRemaining_Text2, BattlePyramid_Text_ThreeItemsRemaining2,
BattlePyramid_FourItemsRemaining_Text2, BattlePyramid_Text_FourItemsRemaining2,
BattlePyramid_FiveItemsRemaining_Text2, BattlePyramid_Text_FiveItemsRemaining2,
BattlePyramid_SixItemsRemaining_Text2, BattlePyramid_Text_SixItemsRemaining2,
BattlePyramid_SevenItemsRemaining_Text2, BattlePyramid_Text_SevenItemsRemaining2,
BattlePyramid_EightItemsRemaining_Text2, BattlePyramid_Text_EightItemsRemaining2,
}; };
static const u8 *const sRemainingTrainersHintTexts2[] = static const u8 *const sRemainingTrainersHintTexts2[] =
{ {
BattlePyramid_ZeroTrainersRemaining_Text2, BattlePyramid_Text_ZeroTrainersRemaining2,
BattlePyramid_OneTrainersRemaining_Text2, BattlePyramid_Text_OneTrainersRemaining2,
BattlePyramid_TwoTrainersRemaining_Text2, BattlePyramid_Text_TwoTrainersRemaining2,
BattlePyramid_ThreeTrainersRemaining_Text2, BattlePyramid_Text_ThreeTrainersRemaining2,
BattlePyramid_FourTrainersRemaining_Text2, BattlePyramid_Text_FourTrainersRemaining2,
BattlePyramid_FiveTrainersRemaining_Text2, BattlePyramid_Text_FiveTrainersRemaining2,
BattlePyramid_SixTrainersRemaining_Text2, BattlePyramid_Text_SixTrainersRemaining2,
BattlePyramid_SevenTrainersRemaining_Text2, BattlePyramid_Text_SevenTrainersRemaining2,
}; };
static const u8 *const sExitDirectionHintTexts3[] = static const u8 *const sExitDirectionHintTexts3[] =
{ {
BattlePyramid_ExitHintUp_Text3, BattlePyramid_Text_ExitHintUp3,
BattlePyramid_ExitHintLeft_Text3, BattlePyramid_Text_ExitHintLeft3,
BattlePyramid_ExitHintRight_Text3, BattlePyramid_Text_ExitHintRight3,
BattlePyramid_ExitHintDown_Text3, BattlePyramid_Text_ExitHintDown3,
}; };
static const u8 *const sRemainingItemsHintTexts3[] = static const u8 *const sRemainingItemsHintTexts3[] =
{ {
BattlePyramid_ZeroItemsRemaining_Text3, BattlePyramid_Text_ZeroItemsRemaining3,
BattlePyramid_OneItemRemaining_Text3, BattlePyramid_Text_OneItemRemaining3,
BattlePyramid_TwoItemsRemaining_Text3, BattlePyramid_Text_TwoItemsRemaining3,
BattlePyramid_ThreeItemsRemaining_Text3, BattlePyramid_Text_ThreeItemsRemaining3,
BattlePyramid_FourItemsRemaining_Text3, BattlePyramid_Text_FourItemsRemaining3,
BattlePyramid_FiveItemsRemaining_Text3, BattlePyramid_Text_FiveItemsRemaining3,
BattlePyramid_SixItemsRemaining_Text3, BattlePyramid_Text_SixItemsRemaining3,
BattlePyramid_SevenItemsRemaining_Text3, BattlePyramid_Text_SevenItemsRemaining3,
BattlePyramid_EightItemsRemaining_Text3, BattlePyramid_Text_EightItemsRemaining3,
}; };
static const u8 *const sRemainingTrainersHintTexts3[] = static const u8 *const sRemainingTrainersHintTexts3[] =
{ {
BattlePyramid_ZeroTrainersRemaining_Text3, BattlePyramid_Text_ZeroTrainersRemaining3,
BattlePyramid_OneTrainersRemaining_Text3, BattlePyramid_Text_OneTrainersRemaining3,
BattlePyramid_TwoTrainersRemaining_Text3, BattlePyramid_Text_TwoTrainersRemaining3,
BattlePyramid_ThreeTrainersRemaining_Text3, BattlePyramid_Text_ThreeTrainersRemaining3,
BattlePyramid_FourTrainersRemaining_Text3, BattlePyramid_Text_FourTrainersRemaining3,
BattlePyramid_FiveTrainersRemaining_Text3, BattlePyramid_Text_FiveTrainersRemaining3,
BattlePyramid_SixTrainersRemaining_Text3, BattlePyramid_Text_SixTrainersRemaining3,
BattlePyramid_SevenTrainersRemaining_Text3, BattlePyramid_Text_SevenTrainersRemaining3,
}; };
static const u8 *const sExitDirectionHintTexts4[] = static const u8 *const sExitDirectionHintTexts4[] =
{ {
BattlePyramid_ExitHintUp_Text4, BattlePyramid_Text_ExitHintUp4,
BattlePyramid_ExitHintLeft_Text4, BattlePyramid_Text_ExitHintLeft4,
BattlePyramid_ExitHintRight_Text4, BattlePyramid_Text_ExitHintRight4,
BattlePyramid_ExitHintDown_Text4, BattlePyramid_Text_ExitHintDown4,
}; };
static const u8 *const sRemainingItemsHintTexts4[] = static const u8 *const sRemainingItemsHintTexts4[] =
{ {
BattlePyramid_ZeroItemsRemaining_Text4, BattlePyramid_Text_ZeroItemsRemaining4,
BattlePyramid_OneItemRemaining_Text4, BattlePyramid_Text_OneItemRemaining4,
BattlePyramid_TwoItemsRemaining_Text4, BattlePyramid_Text_TwoItemsRemaining4,
BattlePyramid_ThreeItemsRemaining_Text4, BattlePyramid_Text_ThreeItemsRemaining4,
BattlePyramid_FourItemsRemaining_Text4, BattlePyramid_Text_FourItemsRemaining4,
BattlePyramid_FiveItemsRemaining_Text4, BattlePyramid_Text_FiveItemsRemaining4,
BattlePyramid_SixItemsRemaining_Text4, BattlePyramid_Text_SixItemsRemaining4,
BattlePyramid_SevenItemsRemaining_Text4, BattlePyramid_Text_SevenItemsRemaining4,
BattlePyramid_EightItemsRemaining_Text4, BattlePyramid_Text_EightItemsRemaining4,
}; };
static const u8 *const sRemainingTrainersHintTexts4[] = static const u8 *const sRemainingTrainersHintTexts4[] =
{ {
BattlePyramid_ZeroTrainersRemaining_Text4, BattlePyramid_Text_ZeroTrainersRemaining4,
BattlePyramid_OneTrainersRemaining_Text4, BattlePyramid_Text_OneTrainersRemaining4,
BattlePyramid_TwoTrainersRemaining_Text4, BattlePyramid_Text_TwoTrainersRemaining4,
BattlePyramid_ThreeTrainersRemaining_Text4, BattlePyramid_Text_ThreeTrainersRemaining4,
BattlePyramid_FourTrainersRemaining_Text4, BattlePyramid_Text_FourTrainersRemaining4,
BattlePyramid_FiveTrainersRemaining_Text4, BattlePyramid_Text_FiveTrainersRemaining4,
BattlePyramid_SixTrainersRemaining_Text4, BattlePyramid_Text_SixTrainersRemaining4,
BattlePyramid_SevenTrainersRemaining_Text4, BattlePyramid_Text_SevenTrainersRemaining4,
}; };
static const u8 *const sExitDirectionHintTexts5[] = static const u8 *const sExitDirectionHintTexts5[] =
{ {
BattlePyramid_ExitHintUp_Text5, BattlePyramid_Text_ExitHintUp5,
BattlePyramid_ExitHintLeft_Text5, BattlePyramid_Text_ExitHintLeft5,
BattlePyramid_ExitHintRight_Text5, BattlePyramid_Text_ExitHintRight5,
BattlePyramid_ExitHintDown_Text5, BattlePyramid_Text_ExitHintDown5,
}; };
static const u8 *const sRemainingItemsHintTexts5[] = static const u8 *const sRemainingItemsHintTexts5[] =
{ {
BattlePyramid_ZeroItemsRemaining_Text5, BattlePyramid_Text_ZeroItemsRemaining5,
BattlePyramid_OneItemRemaining_Text5, BattlePyramid_Text_OneItemRemaining5,
BattlePyramid_TwoItemsRemaining_Text5, BattlePyramid_Text_TwoItemsRemaining5,
BattlePyramid_ThreeItemsRemaining_Text5, BattlePyramid_Text_ThreeItemsRemaining5,
BattlePyramid_FourItemsRemaining_Text5, BattlePyramid_Text_FourItemsRemaining5,
BattlePyramid_FiveItemsRemaining_Text5, BattlePyramid_Text_FiveItemsRemaining5,
BattlePyramid_SixItemsRemaining_Text5, BattlePyramid_Text_SixItemsRemaining5,
BattlePyramid_SevenItemsRemaining_Text5, BattlePyramid_Text_SevenItemsRemaining5,
BattlePyramid_EightItemsRemaining_Text5, BattlePyramid_Text_EightItemsRemaining5,
}; };
static const u8 *const sRemainingTrainersHintTexts5[] = static const u8 *const sRemainingTrainersHintTexts5[] =
{ {
BattlePyramid_ZeroTrainersRemaining_Text5, BattlePyramid_Text_ZeroTrainersRemaining5,
BattlePyramid_OneTrainersRemaining_Text5, BattlePyramid_Text_OneTrainersRemaining5,
BattlePyramid_TwoTrainersRemaining_Text5, BattlePyramid_Text_TwoTrainersRemaining5,
BattlePyramid_ThreeTrainersRemaining_Text5, BattlePyramid_Text_ThreeTrainersRemaining5,
BattlePyramid_FourTrainersRemaining_Text5, BattlePyramid_Text_FourTrainersRemaining5,
BattlePyramid_FiveTrainersRemaining_Text5, BattlePyramid_Text_FiveTrainersRemaining5,
BattlePyramid_SixTrainersRemaining_Text5, BattlePyramid_Text_SixTrainersRemaining5,
BattlePyramid_SevenTrainersRemaining_Text5, BattlePyramid_Text_SevenTrainersRemaining5,
}; };
static const u8 *const sExitDirectionHintTexts6[] = static const u8 *const sExitDirectionHintTexts6[] =
{ {
BattlePyramid_ExitHintUp_Text6, BattlePyramid_Text_ExitHintUp6,
BattlePyramid_ExitHintLeft_Text6, BattlePyramid_Text_ExitHintLeft6,
BattlePyramid_ExitHintRight_Text6, BattlePyramid_Text_ExitHintRight6,
BattlePyramid_ExitHintDown_Text6, BattlePyramid_Text_ExitHintDown6,
}; };
static const u8 *const sRemainingItemsHintTexts6[] = static const u8 *const sRemainingItemsHintTexts6[] =
{ {
BattlePyramid_ZeroItemsRemaining_Text6, BattlePyramid_Text_ZeroItemsRemaining6,
BattlePyramid_OneItemRemaining_Text6, BattlePyramid_Text_OneItemRemaining6,
BattlePyramid_TwoItemsRemaining_Text6, BattlePyramid_Text_TwoItemsRemaining6,
BattlePyramid_ThreeItemsRemaining_Text6, BattlePyramid_Text_ThreeItemsRemaining6,
BattlePyramid_FourItemsRemaining_Text6, BattlePyramid_Text_FourItemsRemaining6,
BattlePyramid_FiveItemsRemaining_Text6, BattlePyramid_Text_FiveItemsRemaining6,
BattlePyramid_SixItemsRemaining_Text6, BattlePyramid_Text_SixItemsRemaining6,
BattlePyramid_SevenItemsRemaining_Text6, BattlePyramid_Text_SevenItemsRemaining6,
BattlePyramid_EightItemsRemaining_Text6, BattlePyramid_Text_EightItemsRemaining6,
}; };
static const u8 *const sRemainingTrainersHintTexts6[] = static const u8 *const sRemainingTrainersHintTexts6[] =
{ {
BattlePyramid_ZeroTrainersRemaining_Text6, BattlePyramid_Text_ZeroTrainersRemaining6,
BattlePyramid_OneTrainersRemaining_Text6, BattlePyramid_Text_OneTrainersRemaining6,
BattlePyramid_TwoTrainersRemaining_Text6, BattlePyramid_Text_TwoTrainersRemaining6,
BattlePyramid_ThreeTrainersRemaining_Text6, BattlePyramid_Text_ThreeTrainersRemaining6,
BattlePyramid_FourTrainersRemaining_Text6, BattlePyramid_Text_FourTrainersRemaining6,
BattlePyramid_FiveTrainersRemaining_Text6, BattlePyramid_Text_FiveTrainersRemaining6,
BattlePyramid_SixTrainersRemaining_Text6, BattlePyramid_Text_SixTrainersRemaining6,
BattlePyramid_SevenTrainersRemaining_Text6, BattlePyramid_Text_SevenTrainersRemaining6,
}; };
static const u8 *const *const sPostBattleHintTexts1[] = static const u8 *const *const sPostBattleHintTexts1[] =
@@ -787,24 +787,24 @@ static const u8 sHintTextTypes[] =
static void (* const sBattlePyramidFunctions[])(void) = static void (* const sBattlePyramidFunctions[])(void) =
{ {
[BATTLE_PYRAMID_FUNC_INIT] = InitPyramidChallenge, [BATTLE_PYRAMID_FUNC_INIT] = InitPyramidChallenge,
[BATTLE_PYRAMID_FUNC_GET_DATA] = GetBattlePyramidData, [BATTLE_PYRAMID_FUNC_GET_DATA] = GetBattlePyramidData,
[BATTLE_PYRAMID_FUNC_SET_DATA] = SetBattlePyramidData, [BATTLE_PYRAMID_FUNC_SET_DATA] = SetBattlePyramidData,
[BATTLE_PYRAMID_FUNC_SAVE] = SavePyramidChallenge, [BATTLE_PYRAMID_FUNC_SAVE] = SavePyramidChallenge,
[BATTLE_PYRAMID_FUNC_SET_PRIZE] = SetBattlePyramidPrize, [BATTLE_PYRAMID_FUNC_SET_PRIZE] = SetBattlePyramidPrize,
[BATTLE_PYRAMID_FUNC_GIVE_PRIZE] = GiveBattlePyramidPrize, [BATTLE_PYRAMID_FUNC_GIVE_PRIZE] = GiveBattlePyramidPrize,
[BATTLE_PYRAMID_FUNC_SEED_FLOOR] = SeedPyramidFloor, [BATTLE_PYRAMID_FUNC_SEED_FLOOR] = SeedPyramidFloor,
[BATTLE_PYRAMID_FUNC_SET_ITEM] = SetPickupItem, [BATTLE_PYRAMID_FUNC_SET_ITEM] = SetPickupItem,
[BATTLE_PYRAMID_FUNC_HIDE_ITEM] = HidePyramidItem, [BATTLE_PYRAMID_FUNC_HIDE_ITEM] = HidePyramidItem,
[BATTLE_PYRAMID_FUNC_INIT_TRAINERS] = InitPyramidFacilityTrainers, [BATTLE_PYRAMID_FUNC_SET_TRAINERS] = SetPyramidFacilityTrainers,
[BATTLE_PYRAMID_FUNC_SHOW_HINT_TEXT] = ShowPostBattleHintText, [BATTLE_PYRAMID_FUNC_SHOW_HINT_TEXT] = ShowPostBattleHintText,
[BATTLE_PYRAMID_FUNC_UPDATE_STREAK] = UpdatePyramidWinStreak, [BATTLE_PYRAMID_FUNC_UPDATE_STREAK] = UpdatePyramidWinStreak,
[BATTLE_PYRAMID_FUNC_IS_IN] = GetInBattlePyramid, [BATTLE_PYRAMID_FUNC_IS_IN] = GetInBattlePyramid,
[BATTLE_PYRAMID_FUNC_UPDATE_LIGHT] = UpdatePyramidLightRadius, [BATTLE_PYRAMID_FUNC_UPDATE_LIGHT] = UpdatePyramidLightRadius,
[BATTLE_PYRAMID_FUNC_CLEAR_HELD_ITEMS] = ClearPyramidPartyHeldItems, [BATTLE_PYRAMID_FUNC_CLEAR_HELD_ITEMS] = ClearPyramidPartyHeldItems,
[BATTLE_PYRAMID_FUNC_SET_FLOOR_PALETTE] = SetPyramidFloorPalette, [BATTLE_PYRAMID_FUNC_SET_FLOOR_PALETTE] = SetPyramidFloorPalette,
[BATTLE_PYRAMID_FUNC_16] = sub_81A9828, [BATTLE_PYRAMID_FUNC_START_MENU] = BattlePyramidStartMenu,
[BATTLE_PYRAMID_FUNC_RESTORE_PARTY] = RestorePyramidPlayerParty, [BATTLE_PYRAMID_FUNC_RESTORE_PARTY] = RestorePyramidPlayerParty,
}; };
static const u16 sShortStreakRewardItems[] = {ITEM_HP_UP, ITEM_PROTEIN, ITEM_IRON, ITEM_CALCIUM, ITEM_CARBOS, ITEM_ZINC}; static const u16 sShortStreakRewardItems[] = {ITEM_HP_UP, ITEM_PROTEIN, ITEM_IRON, ITEM_CALCIUM, ITEM_CARBOS, ITEM_ZINC};
@@ -1029,7 +1029,7 @@ static void HidePyramidItem(void)
} }
} }
static void InitPyramidFacilityTrainers(void) static void SetPyramidFacilityTrainers(void)
{ {
gFacilityTrainers = gBattleFrontierTrainers; gFacilityTrainers = gBattleFrontierTrainers;
} }
@@ -1193,9 +1193,10 @@ static void Task_SetPyramidFloorPalette(u8 taskId)
} }
} }
static void sub_81A9828(void) // Unused. Handled by BuildStartMenuActions
static void BattlePyramidStartMenu(void)
{ {
sub_809FDD4(); ShowBattlePyramidStartMenu();
} }
static void RestorePyramidPlayerParty(void) static void RestorePyramidPlayerParty(void)
@@ -1417,7 +1418,7 @@ u8 GetPyramidRunMultiplier(void)
u8 InBattlePyramid(void) u8 InBattlePyramid(void)
{ {
if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE) if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR)
return 1; return 1;
else if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP) else if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP)
return 2; return 2;
@@ -1427,11 +1428,11 @@ u8 InBattlePyramid(void)
bool8 InBattlePyramid_(void) bool8 InBattlePyramid_(void)
{ {
return gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE return gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR
|| gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP; || gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP;
} }
void sub_81A9E90(void) void PausePyramidChallenge(void)
{ {
if (InBattlePyramid()) if (InBattlePyramid())
{ {
@@ -1475,9 +1476,10 @@ u8 GetBattlePyramindTrainerEncounterMusicId(u16 trainerId)
return TRAINER_ENCOUNTER_MUSIC_MALE; return TRAINER_ENCOUNTER_MUSIC_MALE;
} }
void sub_81A9F80(void) // Unused
static void BattlePyramidRetireChallenge(void)
{ {
ScriptContext1_SetupScript(BattleFrontier_BattlePyramidEmptySquare_EventScript_252C88); ScriptContext1_SetupScript(BattlePyramid_Retire);
} }
static u16 GetUniqueTrainerId(u8 objectEventId) static u16 GetUniqueTrainerId(u8 objectEventId)
@@ -1528,7 +1530,7 @@ void GenerateBattlePyramidFloorLayout(u16 *backupMapData, bool8 setPlayerPositio
{ {
u16 *map; u16 *map;
int yOffset, xOffset; int yOffset, xOffset;
const struct MapLayout *mapLayout = gMapLayouts[floorLayoutOffsets[i] + LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE]; const struct MapLayout *mapLayout = gMapLayouts[floorLayoutOffsets[i] + LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR];
const u16 *layoutMap = mapLayout->map; const u16 *layoutMap = mapLayout->map;
gBackupMapLayout.map = backupMapData; gBackupMapLayout.map = backupMapData;
+4 -4
View File
@@ -39,7 +39,7 @@ EWRAM_DATA struct PyramidBagCursorData gPyramidBagCursorData = {0};
// This file's functions. // This file's functions.
static void Task_HandlePyramidBagInput(u8 taskId); static void Task_HandlePyramidBagInput(u8 taskId);
static void sub_81C4F44(u8 taskId); static void Task_ChooseItemsToTossFromPyramidBag(u8 taskId);
static void sub_81C5B4C(u8 taskId); static void sub_81C5B4C(u8 taskId);
static void Task_BeginItemSwap(u8 taskId); static void Task_BeginItemSwap(u8 taskId);
static void sub_81C5D20(u8 taskId); static void sub_81C5D20(u8 taskId);
@@ -354,14 +354,14 @@ static void sub_81C4F10(void)
GoToBattlePyramidBagMenu(1, CB2_SetUpReshowBattleScreenAfterMenu2); GoToBattlePyramidBagMenu(1, CB2_SetUpReshowBattleScreenAfterMenu2);
} }
void sub_81C4F24(void) void ChooseItemsToTossFromPyramidBag(void)
{ {
ScriptContext2_Enable(); ScriptContext2_Enable();
FadeScreen(1, 0); FadeScreen(1, 0);
CreateTask(sub_81C4F44, 10); CreateTask(Task_ChooseItemsToTossFromPyramidBag, 10);
} }
static void sub_81C4F44(u8 taskId) static void Task_ChooseItemsToTossFromPyramidBag(u8 taskId)
{ {
if (!gPaletteFade.active) if (!gPaletteFade.active)
{ {
+15 -9
View File
@@ -2,9 +2,15 @@
#include "event_data.h" #include "event_data.h"
#include "pokedex.h" #include "pokedex.h"
#define TEMP_FLAGS_SIZE 0x4 #define NUM_SPECIAL_FLAGS (SPECIAL_FLAGS_END - SPECIAL_FLAGS_START + 1)
#define DAILY_FLAGS_SIZE 0x8 #define NUM_TEMP_FLAGS (TEMP_FLAGS_END - TEMP_FLAGS_START + 1)
#define TEMP_VARS_SIZE 0x20 #define NUM_DAILY_FLAGS (DAILY_FLAGS_END - DAILY_FLAGS_START + 1)
#define NUM_TEMP_VARS (TEMP_VARS_END - TEMP_VARS_START + 1)
#define SPECIAL_FLAGS_SIZE (NUM_SPECIAL_FLAGS / 8) // 8 flags per byte
#define TEMP_FLAGS_SIZE (NUM_TEMP_FLAGS / 8)
#define DAILY_FLAGS_SIZE (NUM_DAILY_FLAGS / 8)
#define TEMP_VARS_SIZE (NUM_TEMP_VARS * 2) // 1/2 var per byte
EWRAM_DATA u16 gSpecialVar_0x8000 = 0; EWRAM_DATA u16 gSpecialVar_0x8000 = 0;
EWRAM_DATA u16 gSpecialVar_0x8001 = 0; EWRAM_DATA u16 gSpecialVar_0x8001 = 0;
@@ -24,7 +30,7 @@ EWRAM_DATA u16 gSpecialVar_Facing = 0;
EWRAM_DATA u16 gSpecialVar_MonBoxId = 0; EWRAM_DATA u16 gSpecialVar_MonBoxId = 0;
EWRAM_DATA u16 gSpecialVar_MonBoxPos = 0; EWRAM_DATA u16 gSpecialVar_MonBoxPos = 0;
EWRAM_DATA u16 gSpecialVar_Unused_0x8014 = 0; EWRAM_DATA u16 gSpecialVar_Unused_0x8014 = 0;
EWRAM_DATA static u8 gSpecialFlags[16] = {0}; EWRAM_DATA static u8 gSpecialFlags[SPECIAL_FLAGS_SIZE] = {0};
extern u16 *const gSpecialVars[]; extern u16 *const gSpecialVars[];
@@ -37,8 +43,8 @@ void InitEventData(void)
void ClearTempFieldEventData(void) void ClearTempFieldEventData(void)
{ {
memset(gSaveBlock1Ptr->flags, 0, TEMP_FLAGS_SIZE); memset(gSaveBlock1Ptr->flags + (TEMP_FLAGS_START / 8), 0, TEMP_FLAGS_SIZE);
memset(gSaveBlock1Ptr->vars, 0, TEMP_VARS_SIZE); memset(gSaveBlock1Ptr->vars + ((TEMP_VARS_START - VARS_START) * 2), 0, TEMP_VARS_SIZE);
FlagClear(FLAG_SYS_ENC_UP_ITEM); FlagClear(FLAG_SYS_ENC_UP_ITEM);
FlagClear(FLAG_SYS_ENC_DOWN_ITEM); FlagClear(FLAG_SYS_ENC_DOWN_ITEM);
FlagClear(FLAG_SYS_USE_STRENGTH); FlagClear(FLAG_SYS_USE_STRENGTH);
@@ -48,7 +54,7 @@ void ClearTempFieldEventData(void)
void ClearDailyFlags(void) void ClearDailyFlags(void)
{ {
memset(gSaveBlock1Ptr->flags + 0x124, 0, DAILY_FLAGS_SIZE); memset(gSaveBlock1Ptr->flags + (DAILY_FLAGS_START / 8), 0, DAILY_FLAGS_SIZE);
} }
void DisableNationalPokedex(void) void DisableNationalPokedex(void)
@@ -108,7 +114,7 @@ bool32 IsMysteryGiftEnabled(void)
return FlagGet(FLAG_SYS_MYSTERY_GIFT_ENABLE); return FlagGet(FLAG_SYS_MYSTERY_GIFT_ENABLE);
} }
void sub_809D4D8(void) void ClearMysteryEventFlags(void)
{ {
FlagClear(FLAG_MYSTERY_EVENT_DONE); FlagClear(FLAG_MYSTERY_EVENT_DONE);
FlagClear(FLAG_MYSTERY_EVENT_1); FlagClear(FLAG_MYSTERY_EVENT_1);
@@ -128,7 +134,7 @@ void sub_809D4D8(void)
FlagClear(FLAG_MYSTERY_EVENT_15); FlagClear(FLAG_MYSTERY_EVENT_15);
} }
void sub_809D570(void) void ClearMysteryEventVars(void)
{ {
VarSet(VAR_EVENT_PICHU_SLOT, 0); VarSet(VAR_EVENT_PICHU_SLOT, 0);
VarSet(VAR_NEVER_READ_0x40DE, 0); VarSet(VAR_NEVER_READ_0x40DE, 0);
+1 -1
View File
@@ -517,7 +517,7 @@ static bool8 TryStartMiscWalkingScripts(u16 metatileBehavior)
} }
else if (MetatileBehavior_IsBattlePyramidWarp(metatileBehavior)) else if (MetatileBehavior_IsBattlePyramidWarp(metatileBehavior))
{ {
ScriptContext1_SetupScript(BattleFrontier_BattlePyramidEmptySquare_EventScript_252BE8); ScriptContext1_SetupScript(BattlePyramid_WarpToNextFloor);
return TRUE; return TRUE;
} }
else if (MetatileBehavior_IsSecretBaseGlitterMat(metatileBehavior) == TRUE) else if (MetatileBehavior_IsSecretBaseGlitterMat(metatileBehavior) == TRUE)
+1 -1
View File
@@ -428,7 +428,7 @@ static void sub_80AF660(u8 taskId)
if (WaitForWeatherFadeIn() == TRUE) if (WaitForWeatherFadeIn() == TRUE)
{ {
DestroyTask(taskId); DestroyTask(taskId);
CreateTask(sub_809FA34, 80); CreateTask(Task_ShowStartMenu, 80);
} }
} }
+1 -1
View File
@@ -1558,7 +1558,7 @@ static u8 MapNumToFrontierFacilityId(u16 mapNum) // id + 1, zero means not a fro
|| mapNum == MAP_NUM(BATTLE_FRONTIER_BATTLE_PIKE_ROOM_WILD_MONS)) || mapNum == MAP_NUM(BATTLE_FRONTIER_BATTLE_PIKE_ROOM_WILD_MONS))
return FRONTIER_FACILITY_PIKE + 1; return FRONTIER_FACILITY_PIKE + 1;
else if (mapNum == MAP_NUM(BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY) else if (mapNum == MAP_NUM(BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY)
|| mapNum == MAP_NUM(BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE) || mapNum == MAP_NUM(BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR)
|| mapNum == MAP_NUM(BATTLE_FRONTIER_BATTLE_PYRAMID_TOP)) || mapNum == MAP_NUM(BATTLE_FRONTIER_BATTLE_PYRAMID_TOP))
return FRONTIER_FACILITY_PYRAMID + 1; return FRONTIER_FACILITY_PYRAMID + 1;
else else
+2 -2
View File
@@ -132,8 +132,8 @@ void DestroyWonderCard(void)
sub_801B368(); sub_801B368();
sub_801B9F8(); sub_801B9F8();
ClearRamScript(); ClearRamScript();
sub_809D4D8(); ClearMysteryEventFlags();
sub_809D570(); ClearMysteryEventVars();
ClearEReaderTrainer(&gSaveBlock2Ptr->frontier.ereaderTrainer); ClearEReaderTrainer(&gSaveBlock2Ptr->frontier.ereaderTrainer);
} }
+4 -4
View File
@@ -852,7 +852,7 @@ static void mli0_load_map(u32 a1)
LoadCurrentMapData(); LoadCurrentMapData();
if (!(sUnknown_020322D8 & 1)) if (!(sUnknown_020322D8 & 1))
{ {
if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE) if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR)
LoadBattlePyramidObjectEventTemplates(); LoadBattlePyramidObjectEventTemplates();
else if (InTrainerHill()) else if (InTrainerHill())
LoadTrainerHillObjectEventTemplates(); LoadTrainerHillObjectEventTemplates();
@@ -880,7 +880,7 @@ static void mli0_load_map(u32 a1)
RunOnTransitionMapScript(); RunOnTransitionMapScript();
UpdateLocationHistoryForRoamer(); UpdateLocationHistoryForRoamer();
RoamerMoveToOtherLocationSet(); RoamerMoveToOtherLocationSet();
if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE) if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR)
InitBattlePyramidMap(FALSE); InitBattlePyramidMap(FALSE);
else if (InTrainerHill()) else if (InTrainerHill())
InitTrainerHillMap(); InitTrainerHillMap();
@@ -1720,7 +1720,7 @@ void CB2_ContinueSavedGame(void)
LoadSaveblockMapHeader(); LoadSaveblockMapHeader();
ClearDiveAndHoleWarps(); ClearDiveAndHoleWarps();
trainerHillMapId = GetCurrentTrainerHillMapId(); trainerHillMapId = GetCurrentTrainerHillMapId();
if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE) if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR)
LoadBattlePyramidFloorObjectEventScripts(); LoadBattlePyramidFloorObjectEventScripts();
else if (trainerHillMapId != 0 && trainerHillMapId != TRAINER_HILL_ENTRANCE) else if (trainerHillMapId != 0 && trainerHillMapId != TRAINER_HILL_ENTRANCE)
LoadTrainerHillFloorObjectEventScripts(); LoadTrainerHillFloorObjectEventScripts();
@@ -1730,7 +1730,7 @@ void CB2_ContinueSavedGame(void)
UnfreezeObjectEvents(); UnfreezeObjectEvents();
DoTimeBasedEvents(); DoTimeBasedEvents();
sub_8084788(); sub_8084788();
if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE) if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR)
InitBattlePyramidMap(TRUE); InitBattlePyramidMap(TRUE);
else if (trainerHillMapId != 0) else if (trainerHillMapId != 0)
InitTrainerHillMap(); InitTrainerHillMap();
+13 -12
View File
@@ -512,14 +512,14 @@ static bool8 sub_809FA00(void)
return TRUE; return TRUE;
} }
void sub_809FA18(void) // Called from field_screen.s void sub_809FA18(void)
{ {
sUnknown_02037619[0] = 0; sUnknown_02037619[0] = 0;
sUnknown_02037619[1] = 0; sUnknown_02037619[1] = 0;
gFieldCallback2 = sub_809FA00; gFieldCallback2 = sub_809FA00;
} }
void sub_809FA34(u8 taskId) // Referenced in field_screen.s and rom_8011DC0.s void Task_ShowStartMenu(u8 taskId)
{ {
struct Task* task = &gTasks[taskId]; struct Task* task = &gTasks[taskId];
@@ -539,7 +539,7 @@ void sub_809FA34(u8 taskId) // Referenced in field_screen.s and rom_8011DC0.s
} }
} }
void ShowStartMenu(void) // Called from overworld.c and field_control_avatar.s void ShowStartMenu(void)
{ {
if (!IsUpdateLinkStateCBActive()) if (!IsUpdateLinkStateCBActive())
{ {
@@ -547,7 +547,7 @@ void ShowStartMenu(void) // Called from overworld.c and field_control_avatar.s
sub_808B864(); sub_808B864();
sub_808BCF4(); sub_808BCF4();
} }
CreateStartMenuTask(sub_809FA34); CreateStartMenuTask(Task_ShowStartMenu);
ScriptContext2_Enable(); ScriptContext2_Enable();
} }
@@ -743,11 +743,12 @@ static bool8 StartMenuBattlePyramidRetireCallback(void)
return FALSE; return FALSE;
} }
void sub_809FDD4(void) // Functionally unused
void ShowBattlePyramidStartMenu(void)
{ {
ClearDialogWindowAndFrameToTransparent(0, FALSE); ClearDialogWindowAndFrameToTransparent(0, FALSE);
ScriptUnfreezeObjectEvents(); ScriptUnfreezeObjectEvents();
CreateStartMenuTask(sub_809FA34); CreateStartMenuTask(Task_ShowStartMenu);
ScriptContext2_Enable(); ScriptContext2_Enable();
} }
@@ -827,7 +828,7 @@ static bool8 BattlePyramidRetireCallback(void)
ClearDialogWindowAndFrameToTransparent(0, TRUE); ClearDialogWindowAndFrameToTransparent(0, TRUE);
ScriptUnfreezeObjectEvents(); ScriptUnfreezeObjectEvents();
ScriptContext2_Disable(); ScriptContext2_Disable();
ScriptContext1_SetupScript(BattleFrontier_BattlePyramidEmptySquare_EventScript_252C88); ScriptContext1_SetupScript(BattlePyramid_Retire);
return TRUE; return TRUE;
} }
@@ -853,7 +854,7 @@ static u8 RunSaveCallback(void)
return sSaveDialogCallback(); return sSaveDialogCallback();
} }
void SaveGame(void) // Called from cable_club.s void SaveGame(void)
{ {
InitSave(); InitSave();
CreateTask(SaveGameTask, 0x50); CreateTask(SaveGameTask, 0x50);
@@ -1048,7 +1049,7 @@ static u8 SaveDoSaveCallback(void)
u8 saveStatus; u8 saveStatus;
IncrementGameStat(GAME_STAT_SAVED_GAME); IncrementGameStat(GAME_STAT_SAVED_GAME);
sub_81A9E90(); PausePyramidChallenge();
if (gDifferentSaveFile == TRUE) if (gDifferentSaveFile == TRUE)
{ {
@@ -1202,7 +1203,7 @@ static bool32 sub_80A03E4(u8 *par1)
return FALSE; return FALSE;
} }
void sub_80A0514(void) // Called from cable_club.s void sub_80A0514(void)
{ {
if (sub_80A03E4(&gMain.state)) if (sub_80A03E4(&gMain.state))
{ {
@@ -1371,7 +1372,7 @@ static void sub_80A08A4(u8 taskId)
} }
} }
void sub_80A08CC(void) // Referenced in data/specials.inc and data/scripts/maps/BattleFrontier_BattleTowerLobby.inc void sub_80A08CC(void)
{ {
u8 taskId = CreateTask(sub_8153688, 0x5); u8 taskId = CreateTask(sub_8153688, 0x5);
gTasks[taskId].data[2] = 1; gTasks[taskId].data[2] = 1;
@@ -1386,7 +1387,7 @@ static void HideStartMenuWindow(void)
ScriptContext2_Disable(); ScriptContext2_Disable();
} }
void HideStartMenu(void) // Called from map_name_popup.s void HideStartMenu(void)
{ {
PlaySE(SE_SELECT); PlaySE(SE_SELECT);
HideStartMenuWindow(); HideStartMenuWindow();
+1 -1
View File
@@ -2423,7 +2423,7 @@ void sub_80156E0(u8 taskId)
} }
break; break;
case 23: case 23:
if (!FuncIsActiveTask(sub_809FA34)) if (!FuncIsActiveTask(Task_ShowStartMenu))
{ {
sub_8011090(0x40, 0, 0); sub_8011090(0x40, 0, 0);
data->state = 4; data->state = 4;
+3 -3
View File
@@ -485,7 +485,7 @@ static bool8 DoWildEncounterRateTest(u32 encounterRate, bool8 ignoreAbility)
{ {
u32 ability = GetMonAbility(&gPlayerParty[0]); u32 ability = GetMonAbility(&gPlayerParty[0]);
if (ability == ABILITY_STENCH && gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE) if (ability == ABILITY_STENCH && gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR)
encounterRate = encounterRate * 3 / 4; encounterRate = encounterRate * 3 / 4;
else if (ability == ABILITY_STENCH) else if (ability == ABILITY_STENCH)
encounterRate /= 2; encounterRate /= 2;
@@ -548,7 +548,7 @@ bool8 StandardWildEncounter(u16 currMetaTileBehavior, u16 previousMetaTileBehavi
BattleSetup_StartBattlePikeWildBattle(); BattleSetup_StartBattlePikeWildBattle();
return TRUE; return TRUE;
} }
if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE) if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR)
{ {
headerId = gSaveBlock2Ptr->frontier.curChallengeBattleNum; headerId = gSaveBlock2Ptr->frontier.curChallengeBattleNum;
if (previousMetaTileBehavior != currMetaTileBehavior && !DoGlobalWildEncounterDiceRoll()) if (previousMetaTileBehavior != currMetaTileBehavior && !DoGlobalWildEncounterDiceRoll())
@@ -686,7 +686,7 @@ bool8 SweetScentWildEncounter(void)
BattleSetup_StartBattlePikeWildBattle(); BattleSetup_StartBattlePikeWildBattle();
return TRUE; return TRUE;
} }
if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE) if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR)
{ {
headerId = gSaveBlock2Ptr->frontier.curChallengeBattleNum; headerId = gSaveBlock2Ptr->frontier.curChallengeBattleNum;
if (TryGenerateWildMon(gBattlePyramidWildMonHeaders[headerId].landMonsInfo, WILD_AREA_LAND, 0) != TRUE) if (TryGenerateWildMon(gBattlePyramidWildMonHeaders[headerId].landMonsInfo, WILD_AREA_LAND, 0) != TRUE)