pokeemerald/data/scripts/maps/BattleFrontier_BattleTowerCorridor2.inc

173 lines
4.8 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
BattleFrontier_BattleTowerCorridor2_MapScripts:: @ 8248D4A
map_script 3, BattleFrontier_BattleTowerCorridor2_MapScript1_248D5A
map_script 4, BattleFrontier_BattleTowerCorridor2_MapScript2_248D95
map_script 2, BattleFrontier_BattleTowerCorridor2_MapScript2_248DB2
.byte 0
BattleFrontier_BattleTowerCorridor2_MapScript1_248D5A: @ 8248D5A
compare VAR_0x40CE, 2
2017-11-10 02:21:31 +01:00
call_if 1, BattleFrontier_BattleTowerCorridor2_EventScript_248D71
compare VAR_0x40CE, 3
2017-11-10 02:21:31 +01:00
call_if 1, BattleFrontier_BattleTowerCorridor2_EventScript_248D91
end
BattleFrontier_BattleTowerCorridor2_EventScript_248D71:: @ 8248D71
setvar VAR_0x8004, 14
special sub_8161F74
checkplayergender
compare VAR_RESULT, 1
2017-11-10 02:21:31 +01:00
goto_eq BattleFrontier_BattleTowerCorridor2_EventScript_248D8B
setvar VAR_0x401F, 0
return
BattleFrontier_BattleTowerCorridor2_EventScript_248D8B:: @ 8248D8B
setvar VAR_0x401F, 89
return
BattleFrontier_BattleTowerCorridor2_EventScript_248D91:: @ 8248D91
special sub_813A76C
return
BattleFrontier_BattleTowerCorridor2_MapScript2_248D95: @ 8248D95
map_script_2 VAR_0x4001, 0, BattleFrontier_BattleTowerCorridor2_EventScript_248D9F
.2byte 0
BattleFrontier_BattleTowerCorridor2_EventScript_248D9F:: @ 8248D9F
hideobjectat 255, BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR_2
hideobjectat 1, BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR_2
hideobjectat 4, BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR_2
special sub_8139980
end
BattleFrontier_BattleTowerCorridor2_MapScript2_248DB2: @ 8248DB2
map_script_2 VAR_0x4001, 0, BattleFrontier_BattleTowerCorridor2_EventScript_248DBC
.2byte 0
BattleFrontier_BattleTowerCorridor2_EventScript_248DBC:: @ 8248DBC
lockall
setflag FLAG_SPECIAL_FLAG_0x4002
setvar VAR_0x8004, 14
setvar VAR_0x8005, 1
opendoor 1, 1
waitdooranim
clearflag FLAG_SPECIAL_FLAG_0x4002
showobjectat 1, BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR_2
showobjectat 4, BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR_2
applymovement 1, BattleFrontier_BattleTowerCorridor2_Movement_248EE6
applymovement 4, BattleFrontier_BattleTowerCorridor2_Movement_248EE6
waitmovement 0
setflag FLAG_SPECIAL_FLAG_0x4002
setvar VAR_0x8004, 14
setvar VAR_0x8005, 1
closedoor 1, 1
waitdooranim
clearflag FLAG_SPECIAL_FLAG_0x4002
applymovement 1, BattleFrontier_BattleTowerCorridor2_Movement_248EBC
applymovement 4, BattleFrontier_BattleTowerCorridor2_Movement_248EC4
applymovement 3, BattleFrontier_BattleTowerCorridor2_Movement_248ECC
applymovement 2, BattleFrontier_BattleTowerCorridor2_Movement_248ED5
waitmovement 0
delay 40
applymovement 3, BattleFrontier_BattleTowerCorridor2_Movement_2725A6
applymovement 2, BattleFrontier_BattleTowerCorridor2_Movement_2725A6
waitmovement 0
opendoor 7, 1
waitdooranim
applymovement 3, BattleFrontier_BattleTowerCorridor2_Movement_248EE3
applymovement 2, BattleFrontier_BattleTowerCorridor2_Movement_248EE3
applymovement 1, BattleFrontier_BattleTowerCorridor2_Movement_248EDE
applymovement 4, BattleFrontier_BattleTowerCorridor2_Movement_248EDE
waitmovement 0
closedoor 7, 1
waitdooranim
delay 30
setvar VAR_0x4001, 1
call BattleFrontier_BattleTowerCorridor2_EventScript_248E71
releaseall
end
BattleFrontier_BattleTowerCorridor2_EventScript_248E71:: @ 8248E71
compare VAR_0x40CE, 0
2017-11-10 02:21:31 +01:00
call_if 1, BattleFrontier_BattleTowerCorridor2_EventScript_248E9E
compare VAR_0x40CE, 1
2017-11-10 02:21:31 +01:00
call_if 1, BattleFrontier_BattleTowerCorridor2_EventScript_248E9E
compare VAR_0x40CE, 2
2017-11-10 02:21:31 +01:00
call_if 1, BattleFrontier_BattleTowerCorridor2_EventScript_248EA8
compare VAR_0x40CE, 3
2017-11-10 02:21:31 +01:00
call_if 1, BattleFrontier_BattleTowerCorridor2_EventScript_248EB2
return
BattleFrontier_BattleTowerCorridor2_EventScript_248E9E:: @ 8248E9E
warp BATTLE_FRONTIER_BATTLE_TOWER_BATTLE_ROOM, 255, 4, 8
waitstate
return
BattleFrontier_BattleTowerCorridor2_EventScript_248EA8:: @ 8248EA8
warp BATTLE_FRONTIER_BATTLE_TOWER_BATTLE_ROOM_2, 255, 4, 5
waitstate
return
BattleFrontier_BattleTowerCorridor2_EventScript_248EB2:: @ 8248EB2
warp BATTLE_FRONTIER_BATTLE_TOWER_BATTLE_ROOM_2, 255, 4, 5
waitstate
return
BattleFrontier_BattleTowerCorridor2_Movement_248EBC: @ 8248EBC
step_down
step_right
step_right
step_right
step_right
step_right
step_right
step_end
BattleFrontier_BattleTowerCorridor2_Movement_248EC4: @ 8248EC4
step_down
step_left
step_left
step_left
step_left
step_left
step_left
step_end
BattleFrontier_BattleTowerCorridor2_Movement_248ECC: @ 8248ECC
step_right
step_right
step_right
step_right
step_right
step_right
step_up
step_28
step_end
BattleFrontier_BattleTowerCorridor2_Movement_248ED5: @ 8248ED5
step_left
step_left
step_left
step_left
step_left
step_left
step_up
step_27
step_end
BattleFrontier_BattleTowerCorridor2_Movement_248EDE: @ 8248EDE
step_14
step_up
step_up
step_54
step_end
BattleFrontier_BattleTowerCorridor2_Movement_248EE3: @ 8248EE3
step_up
step_54
step_end
BattleFrontier_BattleTowerCorridor2_Movement_248EE6: @ 8248EE6
step_down
step_end