2020-07-24 06:49:26 -07:00
|
|
|
object_const_def
|
2015-11-26 21:22:14 -08:00
|
|
|
const BATTLETOWERHALLWAY_RECEPTIONIST
|
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
BattleTowerHallway_MapScripts:
|
2020-07-24 06:49:26 -07:00
|
|
|
def_scene_scripts
|
2018-02-01 09:40:58 -08:00
|
|
|
scene_script .Scene0 ; SCENE_DEFAULT
|
2018-02-01 12:06:06 -08:00
|
|
|
scene_script .Scene1 ; SCENE_FINISHED
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2020-07-24 06:49:26 -07:00
|
|
|
def_callbacks
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-12-24 10:46:34 -08:00
|
|
|
.Scene0:
|
2021-06-08 17:35:04 -07:00
|
|
|
sdefer .ChooseBattleRoom
|
2018-02-01 12:06:06 -08:00
|
|
|
setscene SCENE_FINISHED
|
2017-12-24 10:46:34 -08:00
|
|
|
.Scene1:
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2015-11-03 16:43:47 -08:00
|
|
|
.ChooseBattleRoom:
|
2015-11-26 21:22:14 -08:00
|
|
|
follow BATTLETOWERHALLWAY_RECEPTIONIST, PLAYER
|
2015-11-03 16:43:47 -08:00
|
|
|
callasm .asm_load_battle_room
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .WalkToChosenBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.asm_load_battle_room
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [rSVBK]
|
2013-05-01 10:29:45 -07:00
|
|
|
push af
|
|
|
|
|
2015-11-03 16:43:47 -08:00
|
|
|
ld a, BANK(wBTChoiceOfLvlGroup)
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rSVBK], a
|
2015-08-31 21:26:31 -07:00
|
|
|
ld a, [wBTChoiceOfLvlGroup]
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wScriptVar], a
|
2013-05-01 10:29:45 -07:00
|
|
|
|
|
|
|
pop af
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rSVBK], a
|
2013-05-01 10:29:45 -07:00
|
|
|
ret
|
|
|
|
|
2015-08-24 16:56:30 -07:00
|
|
|
; enter different rooms for different levels to battle against
|
|
|
|
; at least it should look like that
|
|
|
|
; because all warps lead to the same room
|
2018-03-01 14:33:43 -08:00
|
|
|
.WalkToChosenBattleRoom:
|
2018-02-02 18:09:17 -08:00
|
|
|
ifequal 3, .L30L40
|
|
|
|
ifequal 4, .L30L40
|
|
|
|
ifequal 5, .L50L60
|
|
|
|
ifequal 6, .L50L60
|
|
|
|
ifequal 7, .L70L80
|
|
|
|
ifequal 8, .L70L80
|
|
|
|
ifequal 9, .L90L100
|
|
|
|
ifequal 10, .L90L100
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo1020Room
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-03-01 14:33:43 -08:00
|
|
|
.L30L40:
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo3040Room
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-03-01 14:33:43 -08:00
|
|
|
.L50L60:
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo5060Room
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-03-01 14:33:43 -08:00
|
|
|
.L70L80:
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo7080Room
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-03-01 14:33:43 -08:00
|
|
|
.L90L100:
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo90100Room
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-03-01 14:33:43 -08:00
|
|
|
.EnterBattleRoom:
|
2017-12-24 10:46:34 -08:00
|
|
|
faceobject PLAYER, BATTLETOWERHALLWAY_RECEPTIONIST
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2015-08-24 10:35:05 -07:00
|
|
|
writetext Text_PleaseStepThisWay
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
stopfollow
|
2015-11-26 18:05:32 -08:00
|
|
|
applymovement PLAYER, MovementData_BattleTowerHallwayPlayerEntersBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
warpcheck
|
|
|
|
end
|
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
BattleTowerHallway_MapEvents:
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0, 0 ; filler
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2020-07-24 06:49:26 -07:00
|
|
|
def_warp_events
|
2018-02-01 19:22:07 -08:00
|
|
|
warp_event 11, 1, BATTLE_TOWER_ELEVATOR, 1
|
|
|
|
warp_event 5, 0, BATTLE_TOWER_BATTLE_ROOM, 1
|
|
|
|
warp_event 7, 0, BATTLE_TOWER_BATTLE_ROOM, 1
|
|
|
|
warp_event 9, 0, BATTLE_TOWER_BATTLE_ROOM, 1
|
|
|
|
warp_event 13, 0, BATTLE_TOWER_BATTLE_ROOM, 1
|
|
|
|
warp_event 15, 0, BATTLE_TOWER_BATTLE_ROOM, 1
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2020-07-24 06:49:26 -07:00
|
|
|
def_coord_events
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2020-07-24 06:49:26 -07:00
|
|
|
def_bg_events
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2020-07-24 06:49:26 -07:00
|
|
|
def_object_events
|
2018-02-01 19:22:07 -08:00
|
|
|
object_event 11, 2, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BattleTowerHallway_MapEvents, -1
|