2015-11-26 21:22:14 -08:00
|
|
|
const_value set 2
|
|
|
|
const BATTLETOWERHALLWAY_RECEPTIONIST
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
BattleTowerHallway_MapScriptHeader:
|
2017-12-24 10:46:34 -08:00
|
|
|
.SceneScripts:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 2
|
2017-12-24 10:46:34 -08:00
|
|
|
scene_script .Scene0
|
|
|
|
scene_script .Scene1
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.MapCallbacks:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 0
|
|
|
|
|
2017-12-24 10:46:34 -08:00
|
|
|
.Scene0:
|
2015-11-03 16:43:47 -08:00
|
|
|
priorityjump .ChooseBattleRoom
|
2018-01-09 15:45:25 -08:00
|
|
|
setscene 1
|
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
|
|
|
|
jump .WalkToChosenBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2013-05-01 10:29:45 -07:00
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.asm_load_battle_room
|
2013-05-01 10:29:45 -07:00
|
|
|
ld a, [rSVBK]
|
|
|
|
push af
|
|
|
|
|
2015-11-03 16:43:47 -08:00
|
|
|
ld a, BANK(wBTChoiceOfLvlGroup)
|
2013-05-01 10:29:45 -07:00
|
|
|
ld [rSVBK], a
|
2015-08-31 21:26:31 -07:00
|
|
|
ld a, [wBTChoiceOfLvlGroup]
|
2013-05-01 10:29:45 -07:00
|
|
|
ld [ScriptVar], a
|
|
|
|
|
|
|
|
pop af
|
|
|
|
ld [rSVBK], a
|
|
|
|
ret
|
|
|
|
|
2013-02-16 22:54:07 -08:00
|
|
|
|
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
|
2015-11-03 16:43:47 -08:00
|
|
|
.WalkToChosenBattleRoom: ; 0x9f5dc
|
|
|
|
if_equal 3, .L30L40
|
|
|
|
if_equal 4, .L30L40
|
|
|
|
if_equal 5, .L50L60
|
|
|
|
if_equal 6, .L50L60
|
|
|
|
if_equal 7, .L70L80
|
|
|
|
if_equal 8, .L70L80
|
|
|
|
if_equal 9, .L90L100
|
|
|
|
if_equal 10, .L90L100
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo1020Room
|
2015-11-03 16:43:47 -08:00
|
|
|
jump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-11-03 16:43:47 -08:00
|
|
|
.L30L40: ; 0x9f603
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo3040Room
|
2015-11-03 16:43:47 -08:00
|
|
|
jump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-11-03 16:43:47 -08:00
|
|
|
.L50L60: ; 0x9f60a
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo5060Room
|
2015-11-03 16:43:47 -08:00
|
|
|
jump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-11-03 16:43:47 -08:00
|
|
|
.L70L80: ; 0x9f611
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo7080Room
|
2015-11-03 16:43:47 -08:00
|
|
|
jump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-11-03 16:43:47 -08:00
|
|
|
.L90L100: ; 0x9f618
|
2015-11-26 21:22:14 -08:00
|
|
|
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo90100Room
|
2015-11-03 16:43:47 -08:00
|
|
|
jump .EnterBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-11-03 16:43:47 -08:00
|
|
|
.EnterBattleRoom: ; 0x9f61f
|
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
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
BattleTowerHallway_MapEventHeader:
|
2013-02-16 22:54:07 -08:00
|
|
|
; filler
|
|
|
|
db 0, 0
|
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.Warps:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 6
|
2017-12-28 11:31:25 -08:00
|
|
|
warp_def 11, 1, 1, BATTLE_TOWER_ELEVATOR
|
|
|
|
warp_def 5, 0, 1, BATTLE_TOWER_BATTLE_ROOM
|
|
|
|
warp_def 7, 0, 1, BATTLE_TOWER_BATTLE_ROOM
|
|
|
|
warp_def 9, 0, 1, BATTLE_TOWER_BATTLE_ROOM
|
|
|
|
warp_def 13, 0, 1, BATTLE_TOWER_BATTLE_ROOM
|
|
|
|
warp_def 15, 0, 1, BATTLE_TOWER_BATTLE_ROOM
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-12-24 10:46:34 -08:00
|
|
|
.CoordEvents:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 0
|
|
|
|
|
2017-12-24 10:46:34 -08:00
|
|
|
.BGEvents:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 0
|
|
|
|
|
2017-12-24 10:46:34 -08:00
|
|
|
.ObjectEvents:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 1
|
2017-12-28 11:31:25 -08:00
|
|
|
object_event 11, 2, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BattleTowerHallway_MapEventHeader, -1
|