pokeyellow/scripts/RockTunnelB1F.asm
vulcandth d001ced41b
Add macros, constants, and labels for map scripts and text (#367)
This introduces `def_script_pointers`, `def_text_pointers`, and `object_const_def` macros, and applies them to all maps. Most other map labels have also been identified.
2023-07-13 21:27:56 -04:00

190 lines
5.7 KiB
NASM

RockTunnelB1F_Script:
call EnableAutoTextBoxDrawing
ld hl, RockTunnel2TrainerHeaders
ld de, RockTunnelB1F_ScriptPointers
ld a, [wRockTunnelB1FCurScript]
call ExecuteCurMapScriptInTable
ld [wRockTunnelB1FCurScript], a
ret
RockTunnelB1F_ScriptPointers:
def_script_pointers
dw_const CheckFightingMapTrainers, SCRIPT_ROCKTUNNELB1F_DEFAULT
dw_const DisplayEnemyTrainerTextAndStartBattle, SCRIPT_ROCKTUNNELB1F_START_BATTLE
dw_const EndTrainerBattle, SCRIPT_ROCKTUNNELB1F_END_BATTLE
RockTunnelB1F_TextPointers:
def_text_pointers
dw_const RockTunnelB1FCooltrainerF1Text, TEXT_ROCKTUNNELB1F_COOLTRAINER_F1
dw_const RockTunnelB1FHiker1Text, TEXT_ROCKTUNNELB1F_HIKER1
dw_const RockTunnelB1FSuperNerd1Text, TEXT_ROCKTUNNELB1F_SUPER_NERD1
dw_const RockTunnelB1FSuperNerd2Text, TEXT_ROCKTUNNELB1F_SUPER_NERD2
dw_const RockTunnelB1FHiker2Text, TEXT_ROCKTUNNELB1F_HIKER2
dw_const RockTunnelB1FCooltrainerF2Text, TEXT_ROCKTUNNELB1F_COOLTRAINER_F2
dw_const RockTunnelB1FHiker3Text, TEXT_ROCKTUNNELB1F_HIKER3
dw_const RockTunnelB1FSuperNerd3Text, TEXT_ROCKTUNNELB1F_SUPER_NERD3
RockTunnel2TrainerHeaders:
def_trainers
RockTunnel2TrainerHeader0:
trainer EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_0, 4, RockTunnelB1FCooltrainerF1BattleText, RockTunnelB1FCooltrainerF1EndBattleText, RockTunnelB1FCooltrainerF1AfterBattleText
RockTunnel2TrainerHeader1:
trainer EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_1, 3, RockTunnelB1FHiker1BattleText, RockTunnelB1FHiker1EndBattleText, RockTunnelB1FHiker1AfterBattleText
RockTunnel2TrainerHeader2:
trainer EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_2, 3, RockTunnelB1FSuperNerd1BattleText, RockTunnelB1FSuperNerd1EndBattleText, RockTunnelB1FSuperNerd1AfterBattleText
RockTunnel2TrainerHeader3:
trainer EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_3, 4, RockTunnelB1FSuperNerd2BattleText, RockTunnelB1FSuperNerd2EndBattleText, RockTunnelB1FSuperNerd2AfterBattleText
RockTunnel2TrainerHeader4:
trainer EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_4, 3, RockTunnelB1FHiker2BattleText, RockTunnelB1FHiker2EndBattleText, RockTunnelB1FHiker2AfterBattleText
RockTunnel2TrainerHeader5:
trainer EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_5, 4, RockTunnelB1FCooltrainerF2BattleText, RockTunnelB1FCooltrainerF2EndBattleText, RockTunnelB1FCooltrainerF2AfterBattleText
RockTunnel2TrainerHeader6:
trainer EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_6, 3, RockTunnelB1FHiker3BattleText, RockTunnelB1FHiker3EndBattleText, RockTunnelB1FHiker3AfterBattleText
RockTunnel2TrainerHeader7:
trainer EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_7, 3, RockTunnelB1FSuperNerd3BattleText, RockTunnelB1FSuperNerd3EndBattleText, RockTunnelB1FSuperNerd3AfterBattleText
db -1 ; end
RockTunnelB1FCooltrainerF1Text:
text_asm
ld hl, RockTunnel2TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
RockTunnelB1FHiker1Text:
text_asm
ld hl, RockTunnel2TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
RockTunnelB1FSuperNerd1Text:
text_asm
ld hl, RockTunnel2TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
RockTunnelB1FSuperNerd2Text:
text_asm
ld hl, RockTunnel2TrainerHeader3
call TalkToTrainer
jp TextScriptEnd
RockTunnelB1FHiker2Text:
text_asm
ld hl, RockTunnel2TrainerHeader4
call TalkToTrainer
jp TextScriptEnd
RockTunnelB1FCooltrainerF2Text:
text_asm
ld hl, RockTunnel2TrainerHeader5
call TalkToTrainer
jp TextScriptEnd
RockTunnelB1FHiker3Text:
text_asm
ld hl, RockTunnel2TrainerHeader6
call TalkToTrainer
jp TextScriptEnd
RockTunnelB1FSuperNerd3Text:
text_asm
ld hl, RockTunnel2TrainerHeader7
call TalkToTrainer
jp TextScriptEnd
RockTunnelB1FCooltrainerF1BattleText:
text_far _RockTunnelB1FCooltrainerF1BattleText
text_end
RockTunnelB1FCooltrainerF1EndBattleText:
text_far _RockTunnelB1FCooltrainerF1EndBattleText
text_end
RockTunnelB1FCooltrainerF1AfterBattleText:
text_far _RockTunnelB1FCooltrainerF1AfterBattleText
text_end
RockTunnelB1FHiker1BattleText:
text_far _RockTunnelB1FHiker1BattleText
text_end
RockTunnelB1FHiker1EndBattleText:
text_far _RockTunnelB1FHiker1EndBattleText
text_end
RockTunnelB1FHiker1AfterBattleText:
text_far _RockTunnelB1FHiker1AfterBattleText
text_end
RockTunnelB1FSuperNerd1BattleText:
text_far _RockTunnelB1FSuperNerd1BattleText
text_end
RockTunnelB1FSuperNerd1EndBattleText:
text_far _RockTunnelB1FSuperNerd1EndBattleText
text_end
RockTunnelB1FSuperNerd1AfterBattleText:
text_far _RockTunnelB1FSuperNerd1AfterBattleText
text_end
RockTunnelB1FSuperNerd2BattleText:
text_far _RockTunnelB1FSuperNerd2BattleText
text_end
RockTunnelB1FSuperNerd2EndBattleText:
text_far _RockTunnelB1FSuperNerd2EndBattleText
text_end
RockTunnelB1FSuperNerd2AfterBattleText:
text_far _RockTunnelB1FSuperNerd2AfterBattleText
text_end
RockTunnelB1FHiker2BattleText:
text_far _RockTunnelB1FHiker2BattleText
text_end
RockTunnelB1FHiker2EndBattleText:
text_far _RockTunnelB1FHiker2EndBattleText
text_end
RockTunnelB1FHiker2AfterBattleText:
text_far _RockTunnelB1FHiker2AfterBattleText
text_end
RockTunnelB1FCooltrainerF2BattleText:
text_far _RockTunnelB1FCooltrainerF2BattleText
text_end
RockTunnelB1FCooltrainerF2EndBattleText:
text_far _RockTunnelB1FCooltrainerF2EndBattleText
text_end
RockTunnelB1FCooltrainerF2AfterBattleText:
text_far _RockTunnelB1FCooltrainerF2AfterBattleText
text_end
RockTunnelB1FHiker3BattleText:
text_far _RockTunnelB1FHiker3BattleText
text_end
RockTunnelB1FHiker3EndBattleText:
text_far _RockTunnelB1FHiker3EndBattleText
text_end
RockTunnelB1FHiker3AfterBattleText:
text_far _RockTunnelB1FHiker3AfterBattleText
text_end
RockTunnelB1FSuperNerd3BattleText:
text_far _RockTunnelB1FSuperNerd3BattleText
text_end
RockTunnelB1FSuperNerd3EndBattleText:
text_far _RockTunnelB1FSuperNerd3EndBattleText
text_end
RockTunnelB1FSuperNerd3AfterBattleText:
text_far _RockTunnelB1FSuperNerd3AfterBattleText
text_end