2019-01-01 20:06:23 +00:00
|
|
|
Route14_Script:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Route14TrainerHeader0
|
2019-01-01 20:06:23 +00:00
|
|
|
ld de, Route14_ScriptPointers
|
2015-08-31 02:38:41 +00:00
|
|
|
ld a, [wRoute14CurScript]
|
2014-05-18 18:19:10 +00:00
|
|
|
call ExecuteCurMapScriptInTable
|
2015-08-31 02:38:41 +00:00
|
|
|
ld [wRoute14CurScript], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ret
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
Route14_ScriptPointers:
|
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
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
Route14_TextPointers:
|
2014-05-18 18:19:10 +00:00
|
|
|
dw Route14Text1
|
|
|
|
dw Route14Text2
|
|
|
|
dw Route14Text3
|
|
|
|
dw Route14Text4
|
|
|
|
dw Route14Text5
|
|
|
|
dw Route14Text6
|
|
|
|
dw Route14Text7
|
|
|
|
dw Route14Text8
|
|
|
|
dw Route14Text9
|
|
|
|
dw Route14Text10
|
|
|
|
dw Route14Text11
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader0:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_0
|
2014-05-18 18:19:10 +00:00
|
|
|
db ($2 << 4) ; trainer's view range
|
2015-07-21 01:32:02 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_0
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText1 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText1 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText1 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText1 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader1:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_1
|
2014-05-18 18:19:10 +00:00
|
|
|
db ($2 << 4) ; trainer's view range
|
2015-07-21 01:32:02 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_1
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText2 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText2 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText2 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText2 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader2:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_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_14_TRAINER_2
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText3 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText3 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText3 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText3 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader3:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_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_14_TRAINER_3
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText4 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText4 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText4 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText4 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader4:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_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_14_TRAINER_4
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText5 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText5 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText5 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText5 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader5:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_5
|
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_14_TRAINER_5
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText6 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText6 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText6 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText6 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader6:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_6
|
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_14_TRAINER_6
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText7 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText7 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText7 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText7 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader7:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_7, 1
|
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_14_TRAINER_7, 1
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText8 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText8 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText8 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText8 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader8:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_8, 1
|
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_14_TRAINER_8, 1
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText9 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText9 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText9 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText9 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14TrainerHeader9:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_9, 1
|
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_14_TRAINER_9, 1
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route14BattleText10 ; TextBeforeBattle
|
|
|
|
dw Route14AfterBattleText10 ; TextAfterBattle
|
|
|
|
dw Route14EndBattleText10 ; TextEndBattle
|
|
|
|
dw Route14EndBattleText10 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
|
|
|
db $ff
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text1:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader0
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText1:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText1
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText1:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText1
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText1:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText1
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text2:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader1
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText2:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText2
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText2:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText2
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText2:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText2
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text3:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader2
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText3:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText3
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText3:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText3
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText3:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText3
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text4:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader3
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText4:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText4
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText4:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText4
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText4:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText4
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text5:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader4
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText5:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText5
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText5:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText5
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText5:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText5
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text6:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader5
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText6:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText6
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText6:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText6
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText6:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText6
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text7:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader6
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText7:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText7
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText7:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText7
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText7:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText7
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text8:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader7
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText8:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText8
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText8:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText8
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText8:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText8
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text9:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader8
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText9:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText9
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText9:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText9
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText9:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText9
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text10:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route14TrainerHeader9
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14BattleText10:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14BattleText10
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14EndBattleText10:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14EndBattleText10
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14AfterBattleText10:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14AfterBattleText10
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route14Text11:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route14Text11
|
|
|
|
text_end
|