pokered/scripts/route6.asm

188 lines
3.9 KiB
NASM
Raw Normal View History

2016-06-12 00:24:04 +00:00
Route6Script:
2014-05-18 18:19:10 +00:00
call EnableAutoTextBoxDrawing
ld hl, Route6TrainerHeaders
ld de, Route6ScriptPointers
2015-08-31 02:38:41 +00:00
ld a, [wRoute6CurScript]
2014-05-18 18:19:10 +00:00
call ExecuteCurMapScriptInTable
2015-08-31 02:38:41 +00:00
ld [wRoute6CurScript], a
2014-05-18 18:19:10 +00:00
ret
2016-06-12 00:24:04 +00:00
Route6ScriptPointers:
2014-05-18 18:19:10 +00:00
dw CheckFightingMapTrainers
2014-09-14 18:29:18 +00:00
dw DisplayEnemyTrainerTextAndStartBattle
2014-05-18 18:19:10 +00:00
dw EndTrainerBattle
2016-06-12 00:24:04 +00:00
Route6TextPointers:
2014-05-18 18:19:10 +00:00
dw Route6Text1
dw Route6Text2
dw Route6Text3
dw Route6Text4
dw Route6Text5
dw Route6Text6
dw Route6Text7
2016-06-12 00:24:04 +00:00
Route6TrainerHeaders:
Route6TrainerHeader0:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_0
2014-05-18 18:19:10 +00:00
db ($0 << 4) ; trainer's view range
2015-07-21 01:32:02 +00:00
dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_0
dw Route6BattleText1 ; TextBeforeBattle
dw Route6AfterBattleText1 ; TextAfterBattle
dw Route6EndBattleText1 ; TextEndBattle
dw Route6EndBattleText1 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route6TrainerHeader1:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_1
2014-05-18 18:19:10 +00:00
db ($0 << 4) ; trainer's view range
2015-07-21 01:32:02 +00:00
dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_1
dw Route6BattleText2 ; TextBeforeBattle
dw Route6AfterBattleText1 ; TextAfterBattle
dw Route6EndBattleText2 ; TextEndBattle
dw Route6EndBattleText2 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route6TrainerHeader2:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_2
2014-05-18 18:19:10 +00:00
db ($4 << 4) ; trainer's view range
2015-07-21 01:32:02 +00:00
dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_2
dw Route6BattleText3 ; TextBeforeBattle
dw Route6AfterBattleText3 ; TextAfterBattle
dw Route6EndBattleText3 ; TextEndBattle
dw Route6EndBattleText3 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route6TrainerHeader3:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_3
2014-05-18 18:19:10 +00:00
db ($3 << 4) ; trainer's view range
2015-07-21 01:32:02 +00:00
dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_3
dw Route6BattleText4 ; TextBeforeBattle
dw Route6AfterBattleText4 ; TextAfterBattle
dw Route6EndBattleText4 ; TextEndBattle
dw Route6EndBattleText4 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route6TrainerHeader4:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_4
2014-05-18 18:19:10 +00:00
db ($3 << 4) ; trainer's view range
2015-07-21 01:32:02 +00:00
dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_4
dw Route6BattleText5 ; TextBeforeBattle
dw Route6AfterBattleText5 ; TextAfterBattle
dw Route6EndBattleText5 ; TextEndBattle
dw Route6EndBattleText5 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route6TrainerHeader5:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_5
2014-05-18 18:19:10 +00:00
db ($3 << 4) ; trainer's view range
2015-07-21 01:32:02 +00:00
dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_5
dw Route6BattleText6 ; TextBeforeBattle
dw Route6AfterBattleText6 ; TextAfterBattle
dw Route6EndBattleText6 ; TextEndBattle
dw Route6EndBattleText6 ; TextEndBattle
2014-05-18 18:19:10 +00:00
db $ff
2016-06-12 00:24:04 +00:00
Route6Text1:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route6TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route6BattleText1:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6BattleText1
db "@"
2016-06-12 00:24:04 +00:00
Route6EndBattleText1:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6EndBattleText1
db "@"
2016-06-12 00:24:04 +00:00
Route6AfterBattleText1:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6AfterBattleText1
db "@"
2016-06-12 00:24:04 +00:00
Route6Text2:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route6TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route6BattleText2:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6BattleText2
db "@"
2016-06-12 00:24:04 +00:00
Route6EndBattleText2:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6EndBattleText2
db "@"
2016-06-12 00:24:04 +00:00
Route6Text3:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route6TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route6BattleText3:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6BattleText3
db "@"
2016-06-12 00:24:04 +00:00
Route6EndBattleText3:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6EndBattleText3
db "@"
2016-06-12 00:24:04 +00:00
Route6AfterBattleText3:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6AfterBattleText3
db "@"
2016-06-12 00:24:04 +00:00
Route6Text4:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route6TrainerHeader3
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route6BattleText4:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6BattleText4
db "@"
2016-06-12 00:24:04 +00:00
Route6EndBattleText4:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6EndBattleText4
db "@"
2016-06-12 00:24:04 +00:00
Route6AfterBattleText4:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6AfterBattleText4
db "@"
2016-06-12 00:24:04 +00:00
Route6Text5:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route6TrainerHeader4
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route6BattleText5:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6BattleText5
db "@"
2016-06-12 00:24:04 +00:00
Route6EndBattleText5:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6EndBattleText5
db "@"
2016-06-12 00:24:04 +00:00
Route6AfterBattleText5:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6AfterBattleText5
db "@"
2016-06-12 00:24:04 +00:00
Route6Text6:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route6TrainerHeader5
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route6BattleText6:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6BattleText6
db "@"
2016-06-12 00:24:04 +00:00
Route6EndBattleText6:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6EndBattleText6
db "@"
2016-06-12 00:24:04 +00:00
Route6AfterBattleText6:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6AfterBattleText6
db "@"
2016-06-12 00:24:04 +00:00
Route6Text7:
2014-05-18 18:19:10 +00:00
TX_FAR _Route6Text7
db "@"