2017-11-10 02:21:31 +01:00
|
|
|
BattleFrontier_BattleTowerCorridor2_MapScripts:: @ 8248D4A
|
2019-02-22 08:28:32 +01:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleTowerCorridor2_MapScript1_248D5A
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerCorridor2_MapScript2_248D95
|
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerCorridor2_MapScript2_248DB2
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_MapScript1_248D5A: @ 8248D5A
|
2018-08-25 19:59:47 +02:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, 2
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerCorridor2_EventScript_248D71
|
2018-08-25 19:59:47 +02:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, 3
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerCorridor2_EventScript_248D91
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_EventScript_248D71:: @ 8248D71
|
2019-11-17 00:12:21 +01:00
|
|
|
setvar VAR_0x8004, BATTLE_TOWER_FUNC_14
|
|
|
|
special CallBattleTowerFunc
|
2017-11-10 02:21:31 +01:00
|
|
|
checkplayergender
|
2019-09-16 05:47:07 +02:00
|
|
|
compare VAR_RESULT, FEMALE
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq BattleFrontier_BattleTowerCorridor2_EventScript_248D8B
|
2018-12-25 02:12:51 +01:00
|
|
|
setvar VAR_OBJ_GFX_ID_F, EVENT_OBJ_GFX_BRENDAN_NORMAL
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_EventScript_248D8B:: @ 8248D8B
|
2018-12-25 02:12:51 +01:00
|
|
|
setvar VAR_OBJ_GFX_ID_F, EVENT_OBJ_GFX_MAY_NORMAL
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_EventScript_248D91:: @ 8248D91
|
2019-09-14 02:22:09 +02:00
|
|
|
special SetBattleTowerLinkPlayerGfx
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_MapScript2_248D95: @ 8248D95
|
2018-05-19 18:02:43 +02:00
|
|
|
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleTowerCorridor2_EventScript_248D9F
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_EventScript_248D9F:: @ 8248D9F
|
2018-12-24 22:31:24 +01:00
|
|
|
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR2
|
2018-06-15 05:00:09 +02:00
|
|
|
hideobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR2
|
|
|
|
hideobjectat 4, MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR2
|
2019-09-30 07:42:52 +02:00
|
|
|
special OffsetCameraForBattle
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_MapScript2_248DB2: @ 8248DB2
|
2018-05-19 18:02:43 +02:00
|
|
|
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleTowerCorridor2_EventScript_248DBC
|
2017-11-10 02:21:31 +01:00
|
|
|
.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
|
2018-06-15 05:00:09 +02:00
|
|
|
showobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR2
|
|
|
|
showobjectat 4, MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR2
|
2017-11-10 02:21:31 +01:00
|
|
|
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
|
2019-10-06 19:55:30 +02:00
|
|
|
applymovement 3, Common_Movement_WalkInPlaceFastestUp
|
|
|
|
applymovement 2, Common_Movement_WalkInPlaceFastestUp
|
2017-11-10 02:21:31 +01:00
|
|
|
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
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
call BattleFrontier_BattleTowerCorridor2_EventScript_248E71
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_EventScript_248E71:: @ 8248E71
|
2018-08-25 19:59:47 +02:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, 0
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerCorridor2_EventScript_248E9E
|
2018-08-25 19:59:47 +02:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, 1
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerCorridor2_EventScript_248E9E
|
2018-08-25 19:59:47 +02:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, 2
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerCorridor2_EventScript_248EA8
|
2018-08-25 19:59:47 +02:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, 3
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerCorridor2_EventScript_248EB2
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_EventScript_248E9E:: @ 8248E9E
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_BATTLE_ROOM, 255, 4, 8
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_EventScript_248EA8:: @ 8248EA8
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_BATTLE_ROOM2, 255, 4, 5
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_EventScript_248EB2:: @ 8248EB2
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_BATTLE_ROOM2, 255, 4, 5
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_Movement_248EBC: @ 8248EBC
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_Movement_248EC4: @ 8248EC4
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_Movement_248ECC: @ 8248ECC
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_up
|
|
|
|
walk_in_place_fastest_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_Movement_248ED5: @ 8248ED5
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_up
|
|
|
|
walk_in_place_fastest_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_Movement_248EDE: @ 8248EDE
|
2018-06-14 01:19:19 +02:00
|
|
|
delay_16
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
set_invisible
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_Movement_248EE3: @ 8248EE3
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
set_invisible
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
BattleFrontier_BattleTowerCorridor2_Movement_248EE6: @ 8248EE6
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|