sovereignx/data/maps/SlateportCity_BattleTentBattleRoom/scripts.inc

103 lines
3.3 KiB
PHP
Raw Normal View History

2017-11-10 01:21:31 +00:00
SlateportCity_BattleTentBattleRoom_MapScripts:: @ 8209960
map_script MAP_SCRIPT_ON_TRANSITION, SlateportCity_BattleTentBattleRoom_OnTransition
2019-02-22 07:28:32 +00:00
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SlateportCity_BattleTentBattleRoom_MapScript2_20999A
map_script MAP_SCRIPT_ON_FRAME_TABLE, SlateportCity_BattleTentBattleRoom_MapScript2_2099B4
2017-11-10 01:21:31 +00:00
.byte 0
SlateportCity_BattleTentBattleRoom_OnTransition: @ 8209970
2017-11-10 01:21:31 +00:00
call SlateportCity_BattleTentBattleRoom_EventScript_209976
end
SlateportCity_BattleTentBattleRoom_EventScript_209976:: @ 8209976
checkplayergender
compare VAR_RESULT, MALE
2018-12-22 01:28:24 +00:00
goto_if_eq SlateportCity_BattleTentBattleRoom_EventScript_20998E
compare VAR_RESULT, FEMALE
2018-12-22 01:28:24 +00:00
goto_if_eq SlateportCity_BattleTentBattleRoom_EventScript_209994
2017-11-10 01:21:31 +00:00
return
SlateportCity_BattleTentBattleRoom_EventScript_20998E:: @ 820998E
2018-12-25 01:12:51 +00:00
setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
2017-11-10 01:21:31 +00:00
return
SlateportCity_BattleTentBattleRoom_EventScript_209994:: @ 8209994
2018-12-25 01:12:51 +00:00
setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
2017-11-10 01:21:31 +00:00
return
SlateportCity_BattleTentBattleRoom_MapScript2_20999A: @ 820999A
2018-05-19 17:02:43 +01:00
map_script_2 VAR_TEMP_1, 0, SlateportCity_BattleTentBattleRoom_EventScript_2099A4
2017-11-10 01:21:31 +00:00
.2byte 0
SlateportCity_BattleTentBattleRoom_EventScript_2099A4:: @ 82099A4
2018-05-19 17:02:43 +01:00
setvar VAR_TEMP_1, 1
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM
hideobjectat 2, MAP_SLATEPORT_CITY_BATTLE_TENT_BATTLE_ROOM
2017-11-10 01:21:31 +00:00
end
SlateportCity_BattleTentBattleRoom_MapScript2_2099B4: @ 82099B4
2018-05-19 17:02:43 +01:00
map_script_2 VAR_TEMP_0, 0, SlateportCity_BattleTentBattleRoom_EventScript_2099BE
2017-11-10 01:21:31 +00:00
.2byte 0
SlateportCity_BattleTentBattleRoom_EventScript_2099BE:: @ 82099BE
applymovement 3, SlateportCity_BattleTentBattleRoom_Movement_209A99
waitmovement 0
2019-12-02 13:44:34 +00:00
factory_setopponentgfx
2017-11-10 01:21:31 +00:00
setobjectxyperm 2, 5, 1
removeobject 2
addobject 2
applymovement 2, SlateportCity_BattleTentBattleRoom_Movement_209A9E
waitmovement 0
2019-12-02 19:49:22 +00:00
battletent_getopponentintro
2017-11-10 01:21:31 +00:00
lockall
msgbox gStringVar4, MSGBOX_DEFAULT
2017-11-10 01:21:31 +00:00
waitmessage
closemessage
2017-12-15 23:08:23 +00:00
special HealPlayerParty
2018-10-21 19:13:12 +01:00
setvar VAR_0x8004, SPECIAL_BATTLE_FACTORY
2017-11-10 01:21:31 +00:00
setvar VAR_0x8005, 0
2018-10-21 19:13:12 +01:00
special DoSpecialTrainerBattle
2017-11-10 01:21:31 +00:00
waitstate
switch VAR_RESULT
case 1, SlateportCity_BattleTentBattleRoom_EventScript_209A39
SlateportCity_BattleTentCorridor_EventScript_209A1B:: @ 8209A1B
2019-11-24 21:58:40 +00:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
2018-04-29 13:21:59 +01:00
special LoadPlayerParty
warp MAP_SLATEPORT_CITY_BATTLE_TENT_LOBBY, 255, 6, 6
2017-11-10 01:21:31 +00:00
waitstate
SlateportCity_BattleTentBattleRoom_EventScript_209A39:: @ 8209A39
2019-11-24 21:58:40 +00:00
frontier_get FRONTIER_DATA_BATTLE_NUM
2017-11-10 01:21:31 +00:00
addvar VAR_RESULT, 1
2019-11-24 21:58:40 +00:00
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
2017-11-10 01:21:31 +00:00
switch VAR_RESULT
case 3, SlateportCity_BattleTentBattleRoom_EventScript_209A7B
@ case 3, SlateportCity_BattleTentCorridor_EventScript_209A7B
setvar VAR_0x8006, 1
warp MAP_SLATEPORT_CITY_BATTLE_TENT_CORRIDOR, 255, 2, 3
2017-11-10 01:21:31 +00:00
waitstate
SlateportCity_BattleTentBattleRoom_EventScript_209A7B:: @ 8209A7B
SlateportCity_BattleTentCorridor_EventScript_209A7B:: @ 8209A7B
2019-11-24 21:58:40 +00:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
2018-04-29 13:21:59 +01:00
special LoadPlayerParty
warp MAP_SLATEPORT_CITY_BATTLE_TENT_LOBBY, 255, 6, 6
2017-11-10 01:21:31 +00:00
waitstate
@ forced stop
SlateportCity_BattleTentBattleRoom_Movement_209A99: @ 8209A99
walk_up
walk_up
walk_up
walk_in_place_fastest_right
2017-11-10 01:21:31 +00:00
step_end
SlateportCity_BattleTentBattleRoom_Movement_209A9E: @ 8209A9E
walk_down
walk_down
walk_down
walk_down
walk_in_place_fastest_left
2017-11-10 01:21:31 +00:00
step_end