Merge branch 'master' into fix-eventobj
This commit is contained in:
@@ -1,51 +1,54 @@
|
||||
SlateportCity_BattleTentBattleRoom_MapScripts:: @ 8209960
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, SlateportCity_BattleTentBattleRoom_OnTransition
|
||||
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SlateportCity_BattleTentBattleRoom_MapScript2_20999A
|
||||
map_script MAP_SCRIPT_ON_FRAME_TABLE, SlateportCity_BattleTentBattleRoom_MapScript2_2099B4
|
||||
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SlateportCity_BattleTentBattleRoom_OnWarp
|
||||
map_script MAP_SCRIPT_ON_FRAME_TABLE, SlateportCity_BattleTentBattleRoom_OnFrame
|
||||
.byte 0
|
||||
|
||||
@ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden
|
||||
@ The player is represented instead by object event 3, which has the gfx id VAR_OBJ_GFX_ID_1
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_OnTransition: @ 8209970
|
||||
call SlateportCity_BattleTentBattleRoom_EventScript_209976
|
||||
call SlateportCity_BattleTentBattleRoom_EventScript_SetPlayerGfx
|
||||
end
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_209976:: @ 8209976
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_SetPlayerGfx:: @ 8209976
|
||||
checkplayergender
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq SlateportCity_BattleTentBattleRoom_EventScript_20998E
|
||||
goto_if_eq SlateportCity_BattleTentBattleRoom_EventScript_SetPlayerGfxMale
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq SlateportCity_BattleTentBattleRoom_EventScript_209994
|
||||
goto_if_eq SlateportCity_BattleTentBattleRoom_EventScript_SetPlayerGfxFemale
|
||||
return
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_20998E:: @ 820998E
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_SetPlayerGfxMale:: @ 820998E
|
||||
setvar VAR_OBJ_GFX_ID_1, OBJ_EVENT_GFX_RIVAL_BRENDAN_NORMAL
|
||||
return
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_209994:: @ 8209994
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_SetPlayerGfxFemale:: @ 8209994
|
||||
setvar VAR_OBJ_GFX_ID_1, OBJ_EVENT_GFX_RIVAL_MAY_NORMAL
|
||||
return
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_MapScript2_20999A: @ 820999A
|
||||
map_script_2 VAR_TEMP_1, 0, SlateportCity_BattleTentBattleRoom_EventScript_2099A4
|
||||
SlateportCity_BattleTentBattleRoom_OnWarp: @ 820999A
|
||||
map_script_2 VAR_TEMP_1, 0, SlateportCity_BattleTentBattleRoom_EventScript_SetUpObjects
|
||||
.2byte 0
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_2099A4:: @ 82099A4
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_SetUpObjects:: @ 82099A4
|
||||
setvar VAR_TEMP_1, 1
|
||||
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM
|
||||
hideobjectat 2, MAP_SLATEPORT_CITY_BATTLE_TENT_BATTLE_ROOM
|
||||
end
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_MapScript2_2099B4: @ 82099B4
|
||||
map_script_2 VAR_TEMP_0, 0, SlateportCity_BattleTentBattleRoom_EventScript_2099BE
|
||||
SlateportCity_BattleTentBattleRoom_OnFrame: @ 82099B4
|
||||
map_script_2 VAR_TEMP_0, 0, SlateportCity_BattleTentBattleRoom_EventScript_EnterRoom
|
||||
.2byte 0
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_2099BE:: @ 82099BE
|
||||
applymovement 3, SlateportCity_BattleTentBattleRoom_Movement_209A99
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_EnterRoom:: @ 82099BE
|
||||
applymovement 3, SlateportCity_BattleTentBattleRoom_Movement_PlayerEnter
|
||||
waitmovement 0
|
||||
factory_setopponentgfx
|
||||
setobjectxyperm 2, 5, 1
|
||||
removeobject 2
|
||||
addobject 2
|
||||
applymovement 2, SlateportCity_BattleTentBattleRoom_Movement_209A9E
|
||||
applymovement 2, SlateportCity_BattleTentBattleRoom_Movement_OpponentEnter
|
||||
waitmovement 0
|
||||
battletent_getopponentintro
|
||||
lockall
|
||||
@@ -58,41 +61,40 @@ SlateportCity_BattleTentBattleRoom_EventScript_2099BE:: @ 82099BE
|
||||
special DoSpecialTrainerBattle
|
||||
waitstate
|
||||
switch VAR_RESULT
|
||||
case 1, SlateportCity_BattleTentBattleRoom_EventScript_209A39
|
||||
|
||||
SlateportCity_BattleTentCorridor_EventScript_209A1B:: @ 8209A1B
|
||||
case 1, SlateportCity_BattleTentBattleRoom_EventScript_DefeatedOpponent
|
||||
SlateportCity_BattleTent_EventScript_WarpToLobbyLost:: @ 8209A1B
|
||||
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
|
||||
special LoadPlayerParty
|
||||
warp MAP_SLATEPORT_CITY_BATTLE_TENT_LOBBY, 255, 6, 6
|
||||
waitstate
|
||||
@ forced stop
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_209A39:: @ 8209A39
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_DefeatedOpponent:: @ 8209A39
|
||||
frontier_get FRONTIER_DATA_BATTLE_NUM
|
||||
addvar VAR_RESULT, 1
|
||||
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
|
||||
switch VAR_RESULT
|
||||
case 3, SlateportCity_BattleTentBattleRoom_EventScript_209A7B
|
||||
@ case 3, SlateportCity_BattleTentCorridor_EventScript_209A7B
|
||||
case 3, SlateportCity_BattleTentBattleRoom_EventScript_WarpToLobbyWon
|
||||
setvar VAR_0x8006, 1
|
||||
warp MAP_SLATEPORT_CITY_BATTLE_TENT_CORRIDOR, 255, 2, 3
|
||||
waitstate
|
||||
@ forced stop
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_209A7B:: @ 8209A7B
|
||||
SlateportCity_BattleTentCorridor_EventScript_209A7B:: @ 8209A7B
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_WarpToLobbyWon:: @ 8209A7B
|
||||
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
|
||||
special LoadPlayerParty
|
||||
warp MAP_SLATEPORT_CITY_BATTLE_TENT_LOBBY, 255, 6, 6
|
||||
waitstate
|
||||
@ forced stop
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_Movement_209A99: @ 8209A99
|
||||
SlateportCity_BattleTentBattleRoom_Movement_PlayerEnter: @ 8209A99
|
||||
walk_up
|
||||
walk_up
|
||||
walk_up
|
||||
walk_in_place_fastest_right
|
||||
step_end
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_Movement_209A9E: @ 8209A9E
|
||||
SlateportCity_BattleTentBattleRoom_Movement_OpponentEnter: @ 8209A9E
|
||||
walk_down
|
||||
walk_down
|
||||
walk_down
|
||||
|
||||
Reference in New Issue
Block a user