pokecrystal/maps/BattleTowerHallway.asm

103 lines
2.3 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const BATTLETOWERHALLWAY_RECEPTIONIST
2015-07-10 08:45:35 +00:00
BattleTowerHallway_MapScriptHeader:
.MapTriggers:
db 2
2016-01-05 13:46:37 +00:00
maptrigger .Trigger0
maptrigger .Trigger1
.MapCallbacks:
db 0
2015-11-04 00:43:47 +00:00
.Trigger0:
priorityjump .ChooseBattleRoom
dotrigger $1
2015-11-04 00:43:47 +00:00
.Trigger1:
end
2015-11-04 00:43:47 +00:00
.ChooseBattleRoom:
2015-11-27 05:22:14 +00:00
follow BATTLETOWERHALLWAY_RECEPTIONIST, PLAYER
2015-11-04 00:43:47 +00:00
callasm .asm_load_battle_room
jump .WalkToChosenBattleRoom
2013-05-01 17:29:45 +00:00
.asm_load_battle_room
2013-05-01 17:29:45 +00:00
ld a, [rSVBK]
push af
2015-11-04 00:43:47 +00:00
ld a, BANK(wBTChoiceOfLvlGroup)
2013-05-01 17:29:45 +00:00
ld [rSVBK], a
2015-09-01 04:26:31 +00:00
ld a, [wBTChoiceOfLvlGroup]
2013-05-01 17:29:45 +00:00
ld [ScriptVar], a
pop af
ld [rSVBK], a
ret
2015-08-24 23:56:30 +00: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-04 00:43:47 +00: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-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo1020Room
2015-11-04 00:43:47 +00:00
jump .EnterBattleRoom
2015-11-04 00:43:47 +00:00
.L30L40: ; 0x9f603
2015-11-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo3040Room
2015-11-04 00:43:47 +00:00
jump .EnterBattleRoom
2015-11-04 00:43:47 +00:00
.L50L60: ; 0x9f60a
2015-11-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo5060Room
2015-11-04 00:43:47 +00:00
jump .EnterBattleRoom
2015-11-04 00:43:47 +00:00
.L70L80: ; 0x9f611
2015-11-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo7080Room
2015-11-04 00:43:47 +00:00
jump .EnterBattleRoom
2015-11-04 00:43:47 +00:00
.L90L100: ; 0x9f618
2015-11-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo90100Room
2015-11-04 00:43:47 +00:00
jump .EnterBattleRoom
2015-11-04 00:43:47 +00:00
.EnterBattleRoom: ; 0x9f61f
2015-11-27 05:22:14 +00:00
faceperson PLAYER, BATTLETOWERHALLWAY_RECEPTIONIST
2015-12-09 23:25:44 +00:00
opentext
2015-08-24 17:35:05 +00:00
writetext Text_PleaseStepThisWay
2015-11-25 15:16:29 +00:00
waitbutton
closetext
stopfollow
2015-11-27 02:05:32 +00:00
applymovement PLAYER, MovementData_BattleTowerHallwayPlayerEntersBattleRoom
warpcheck
end
2015-07-10 08:45:35 +00:00
BattleTowerHallway_MapEventHeader:
; filler
db 0, 0
.Warps:
db 6
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
.XYTriggers:
db 0
.Signposts:
db 0
.PersonEvents:
db 1
person_event SPRITE_RECEPTIONIST, 2, 11, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, BattleTowerHallway_MapEventHeader, -1