2015-07-10 01:45:35 -07:00
|
|
|
BattleTowerHallway_MapScriptHeader:
|
2015-07-20 21:02:21 -07:00
|
|
|
.MapTriggers:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 2
|
|
|
|
|
|
|
|
; triggers
|
|
|
|
dw UnknownScript_0x9f5bb, $0000
|
|
|
|
dw UnknownScript_0x9f5c0, $0000
|
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.MapCallbacks:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 0
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownScript_0x9f5bb:
|
2013-02-16 22:54:07 -08:00
|
|
|
priorityjump UnknownScript_0x9f5c1
|
|
|
|
dotrigger $1
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownScript_0x9f5c0:
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownScript_0x9f5c1:
|
2015-07-21 23:49:18 -07:00
|
|
|
follow $2, PLAYER
|
2015-01-20 00:01:23 -08:00
|
|
|
callasm Function_0x9f5cb
|
2015-08-24 16:56:30 -07:00
|
|
|
jump Script_WalkToChosenBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2013-05-01 10:29:45 -07:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
Function_0x9f5cb:
|
2013-05-01 10:29:45 -07:00
|
|
|
ld a, [rSVBK]
|
|
|
|
push af
|
|
|
|
|
|
|
|
ld a, 3
|
|
|
|
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
|
|
|
|
Script_WalkToChosenBattleRoom: ; 0x9f5dc
|
|
|
|
if_equal 3, Script_WalkToBattleRoomL30L40
|
|
|
|
if_equal 4, Script_WalkToBattleRoomL30L40
|
|
|
|
if_equal 5, Script_WalkToBattleRoomL50L60
|
|
|
|
if_equal 6, Script_WalkToBattleRoomL50L60
|
|
|
|
if_equal 7, Script_WalkToBattleRoomL70L80
|
|
|
|
if_equal 8, Script_WalkToBattleRoomL70L80
|
|
|
|
if_equal 9, Script_WalkToBattleRoomL90L100
|
|
|
|
if_equal 10, Script_WalkToBattleRoomL90L100
|
2013-02-16 22:54:07 -08:00
|
|
|
applymovement $2, MovementData_0x9e57a
|
2015-08-24 16:56:30 -07:00
|
|
|
jump Script_PlayerEntersBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-08-24 16:56:30 -07:00
|
|
|
Script_WalkToBattleRoomL30L40: ; 0x9f603
|
2014-04-30 02:40:22 -07:00
|
|
|
applymovement $2, MovementData_0x9e57c
|
2015-08-24 16:56:30 -07:00
|
|
|
jump Script_PlayerEntersBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-08-24 16:56:30 -07:00
|
|
|
Script_WalkToBattleRoomL50L60: ; 0x9f60a
|
2014-04-30 02:40:22 -07:00
|
|
|
applymovement $2, MovementData_0x9e586
|
2015-08-24 16:56:30 -07:00
|
|
|
jump Script_PlayerEntersBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-08-24 16:56:30 -07:00
|
|
|
Script_WalkToBattleRoomL70L80: ; 0x9f611
|
2014-04-30 02:40:22 -07:00
|
|
|
applymovement $2, MovementData_0x9e584
|
2015-08-24 16:56:30 -07:00
|
|
|
jump Script_PlayerEntersBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-08-24 16:56:30 -07:00
|
|
|
Script_WalkToBattleRoomL90L100: ; 0x9f618
|
2013-02-16 22:54:07 -08:00
|
|
|
applymovement $2, MovementData_0x9e582
|
2015-08-24 16:56:30 -07:00
|
|
|
jump Script_PlayerEntersBattleRoom
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-08-24 16:56:30 -07:00
|
|
|
Script_PlayerEntersBattleRoom: ; 0x9f61f
|
2015-07-21 23:49:18 -07:00
|
|
|
faceperson PLAYER, $2
|
2013-02-16 22:54:07 -08:00
|
|
|
loadfont
|
2015-08-24 10:35:05 -07:00
|
|
|
writetext Text_PleaseStepThisWay
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
|
|
|
stopfollow
|
2015-07-21 23:49:18 -07:00
|
|
|
applymovement PLAYER, MovementData_0x9e576
|
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
|
2015-07-23 09:59:19 -07:00
|
|
|
warp_def $1, $b, 1, BATTLE_TOWER_ELEVATOR
|
|
|
|
warp_def $0, $5, 1, BATTLE_TOWER_BATTLE_ROOM
|
|
|
|
warp_def $0, $7, 1, BATTLE_TOWER_BATTLE_ROOM
|
|
|
|
warp_def $0, $9, 1, BATTLE_TOWER_BATTLE_ROOM
|
|
|
|
warp_def $0, $d, 1, BATTLE_TOWER_BATTLE_ROOM
|
|
|
|
warp_def $0, $f, 1, BATTLE_TOWER_BATTLE_ROOM
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.XYTriggers:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 0
|
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.Signposts:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 0
|
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.PersonEvents:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 1
|
2015-07-31 12:02:32 -07:00
|
|
|
person_event SPRITE_RECEPTIONIST, 6, 15, $6, 0, 0, -1, -1, 0, 0, 0, BattleTowerHallway_MapEventHeader, -1
|