pokered/scripts/Route15.asm

296 lines
6.6 KiB
NASM
Raw Normal View History

Route15_Script:
2014-05-18 18:19:10 +00:00
call EnableAutoTextBoxDrawing
ld hl, Route15TrainerHeader0
ld de, Route15_ScriptPointers
2015-08-31 02:38:41 +00:00
ld a, [wRoute15CurScript]
2014-05-18 18:19:10 +00:00
call ExecuteCurMapScriptInTable
2015-08-31 02:38:41 +00:00
ld [wRoute15CurScript], a
2014-05-18 18:19:10 +00:00
ret
Route15_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
Route15_TextPointers:
2014-05-18 18:19:10 +00:00
dw Route15Text1
dw Route15Text2
dw Route15Text3
dw Route15Text4
dw Route15Text5
dw Route15Text6
dw Route15Text7
dw Route15Text8
dw Route15Text9
dw Route15Text10
2015-07-18 15:17:29 +00:00
dw PickUpItemText
2014-05-18 18:19:10 +00:00
dw Route15Text12
2016-06-12 00:24:04 +00:00
Route15TrainerHeader0:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_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_15_TRAINER_0
dw Route15BattleText1 ; TextBeforeBattle
dw Route15AfterBattleText1 ; TextAfterBattle
dw Route15EndBattleText1 ; TextEndBattle
dw Route15EndBattleText1 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15TrainerHeader1:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_TRAINER_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_15_TRAINER_1
dw Route15BattleText2 ; TextBeforeBattle
dw Route15AfterBattleText2 ; TextAfterBattle
dw Route15EndBattleText2 ; TextEndBattle
dw Route15EndBattleText2 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15TrainerHeader2:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_TRAINER_2
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_15_TRAINER_2
dw Route15BattleText3 ; TextBeforeBattle
dw Route15AfterBattleText3 ; TextAfterBattle
dw Route15EndBattleText3 ; TextEndBattle
dw Route15EndBattleText3 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15TrainerHeader3:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_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_15_TRAINER_3
dw Route15BattleText4 ; TextBeforeBattle
dw Route15AfterBattleText4 ; TextAfterBattle
dw Route15EndBattleText4 ; TextEndBattle
dw Route15EndBattleText4 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15TrainerHeader4:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_TRAINER_4
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_15_TRAINER_4
dw Route15BattleText5 ; TextBeforeBattle
dw Route15AfterBattleText5 ; TextAfterBattle
dw Route15EndBattleText5 ; TextEndBattle
dw Route15EndBattleText5 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15TrainerHeader5:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_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_15_TRAINER_5
dw Route15BattleText6 ; TextBeforeBattle
dw Route15AfterBattleText6 ; TextAfterBattle
dw Route15EndBattleText6 ; TextEndBattle
dw Route15EndBattleText6 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15TrainerHeader6:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_TRAINER_6
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_15_TRAINER_6
dw Route15BattleText7 ; TextBeforeBattle
dw Route15AfterBattleText7 ; TextAfterBattle
dw Route15EndBattleText7 ; TextEndBattle
dw Route15EndBattleText7 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15TrainerHeader7:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_TRAINER_7, 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_15_TRAINER_7, 1
dw Route15BattleText8 ; TextBeforeBattle
dw Route15AfterBattleText8 ; TextAfterBattle
dw Route15EndBattleText8 ; TextEndBattle
dw Route15EndBattleText8 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15TrainerHeader8:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_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_15_TRAINER_8, 1
dw Route15BattleText9 ; TextBeforeBattle
dw Route15AfterBattleText9 ; TextAfterBattle
dw Route15EndBattleText9 ; TextEndBattle
dw Route15EndBattleText9 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15TrainerHeader9:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_15_TRAINER_9, 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_15_TRAINER_9, 1
dw Route15BattleText10 ; TextBeforeBattle
dw Route15AfterBattleText10 ; TextAfterBattle
dw Route15EndBattleText10 ; TextEndBattle
dw Route15EndBattleText10 ; TextEndBattle
2014-05-18 18:19:10 +00:00
db $ff
2016-06-12 00:24:04 +00:00
Route15Text1:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader0
jr Route15TalkToTrainer
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text2:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader1
jr Route15TalkToTrainer
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text3:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader2
jr Route15TalkToTrainer
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text4:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader3
jr Route15TalkToTrainer
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text5:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader4
jr Route15TalkToTrainer
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text6:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader5
jr Route15TalkToTrainer
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text7:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader6
jr Route15TalkToTrainer
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text8:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader7
jr Route15TalkToTrainer
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text9:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader8
jr Route15TalkToTrainer
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text10:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, Route15TrainerHeader9
2016-06-12 00:24:04 +00:00
Route15TalkToTrainer:
2014-05-18 18:19:10 +00:00
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route15BattleText1:
text_far _Route15BattleText1
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText1:
text_far _Route15EndBattleText1
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText1:
text_far _Route15AfterBattleText1
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15BattleText2:
text_far _Route15BattleText2
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText2:
text_far _Route15EndBattleText2
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText2:
text_far _Route15AfterBattleText2
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15BattleText3:
text_far _Route15BattleText3
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText3:
text_far _Route15EndBattleText3
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText3:
text_far _Route15AfterBattleText3
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15BattleText4:
text_far _Route15BattleText4
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText4:
text_far _Route15EndBattleText4
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText4:
text_far _Route15AfterBattleText4
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15BattleText5:
text_far _Route15BattleText5
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText5:
text_far _Route15EndBattleText5
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText5:
text_far _Route15AfterBattleText5
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15BattleText6:
text_far _Route15BattleText6
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText6:
text_far _Route15EndBattleText6
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText6:
text_far _Route15AfterBattleText6
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15BattleText7:
text_far _Route15BattleText7
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText7:
text_far _Route15EndBattleText7
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText7:
text_far _Route15AfterBattleText7
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15BattleText8:
text_far _Route15BattleText8
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText8:
text_far _Route15EndBattleText8
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText8:
text_far _Route15AfterBattleText8
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15BattleText9:
text_far _Route15BattleText9
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText9:
text_far _Route15EndBattleText9
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText9:
text_far _Route15AfterBattleText9
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15BattleText10:
text_far _Route15BattleText10
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15EndBattleText10:
text_far _Route15EndBattleText10
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15AfterBattleText10:
text_far _Route15AfterBattleText10
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route15Text12:
text_far _Route15Text12
text_end