pokecrystal/maps/BattleTowerHallway.asm

94 lines
2.3 KiB
NASM
Raw Normal View History

object_const_def
2015-11-27 05:22:14 +00:00
const BATTLETOWERHALLWAY_RECEPTIONIST
BattleTowerHallway_MapScripts:
def_scene_scripts
scene_script .Scene0 ; SCENE_DEFAULT
scene_script .Scene1 ; SCENE_FINISHED
def_callbacks
.Scene0:
2021-06-09 00:35:04 +00:00
sdefer .ChooseBattleRoom
setscene SCENE_FINISHED
.Scene1:
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
sjump .WalkToChosenBattleRoom
.asm_load_battle_room
ldh a, [rSVBK]
2013-05-01 17:29:45 +00:00
push af
2015-11-04 00:43:47 +00:00
ld a, BANK(wBTChoiceOfLvlGroup)
ldh [rSVBK], a
2015-09-01 04:26:31 +00:00
ld a, [wBTChoiceOfLvlGroup]
2018-01-23 22:39:09 +00:00
ld [wScriptVar], a
2013-05-01 17:29:45 +00:00
pop af
ldh [rSVBK], a
2013-05-01 17:29:45 +00:00
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
.WalkToChosenBattleRoom:
2018-02-03 02:09:17 +00: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-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo1020Room
sjump .EnterBattleRoom
.L30L40:
2015-11-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo3040Room
sjump .EnterBattleRoom
.L50L60:
2015-11-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo5060Room
sjump .EnterBattleRoom
.L70L80:
2015-11-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo7080Room
sjump .EnterBattleRoom
.L90L100:
2015-11-27 05:22:14 +00:00
applymovement BATTLETOWERHALLWAY_RECEPTIONIST, MovementData_BattleTowerHallwayWalkTo90100Room
sjump .EnterBattleRoom
.EnterBattleRoom:
faceobject 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
BattleTowerHallway_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-02 03:22:07 +00: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
def_coord_events
def_bg_events
def_object_events
2018-02-02 03:22:07 +00:00
object_event 11, 2, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BattleTowerHallway_MapEvents, -1