pokered/scripts/route10.asm

200 lines
4.2 KiB
NASM
Raw Normal View History

2016-06-12 00:24:04 +00:00
Route10Script:
2014-05-18 18:19:10 +00:00
call EnableAutoTextBoxDrawing
ld hl, Route10TrainerHeaders
ld de, Route10ScriptPointers
2015-08-31 02:38:41 +00:00
ld a, [wRoute10CurScript]
2014-05-18 18:19:10 +00:00
call ExecuteCurMapScriptInTable
2015-08-31 02:38:41 +00:00
ld [wRoute10CurScript], a
2014-05-18 18:19:10 +00:00
ret
2016-06-12 00:24:04 +00:00
Route10ScriptPointers:
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
Route10TextPointers:
2014-05-18 18:19:10 +00:00
dw Route10Text1
dw Route10Text2
dw Route10Text3
dw Route10Text4
dw Route10Text5
dw Route10Text6
dw Route10Text7
dw PokeCenterSignText
dw Route10Text9
dw Route10Text10
2016-06-12 00:24:04 +00:00
Route10TrainerHeaders:
Route10TrainerHeader0:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_10_TRAINER_0
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_10_TRAINER_0
dw Route10BattleText1 ; TextBeforeBattle
dw Route10AfterBattleText1 ; TextAfterBattle
dw Route10EndBattleText1 ; TextEndBattle
dw Route10EndBattleText1 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route10TrainerHeader1:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_10_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_10_TRAINER_1
dw Route10BattleText2 ; TextBeforeBattle
dw Route10AfterBattleText2 ; TextAfterBattle
dw Route10EndBattleText2 ; TextEndBattle
dw Route10EndBattleText2 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route10TrainerHeader2:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_10_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_10_TRAINER_2
dw Route10BattleText3 ; TextBeforeBattle
dw Route10AfterBattleText3 ; TextAfterBattle
dw Route10EndBattleText3 ; TextEndBattle
dw Route10EndBattleText3 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route10TrainerHeader3:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_10_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_10_TRAINER_3
dw Route10BattleText4 ; TextBeforeBattle
dw Route10AfterBattleText4 ; TextAfterBattle
dw Route10EndBattleText4 ; TextEndBattle
dw Route10EndBattleText4 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route10TrainerHeader4:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_10_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_10_TRAINER_4
dw Route10BattleText5 ; TextBeforeBattle
dw Route10AfterBattleText5 ; TextAfterBattle
dw Route10EndBattleText5 ; TextEndBattle
dw Route10EndBattleText5 ; TextEndBattle
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route10TrainerHeader5:
2015-07-21 01:32:02 +00:00
dbEventFlagBit EVENT_BEAT_ROUTE_10_TRAINER_5
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_10_TRAINER_5
dw Route10BattleText6 ; TextBeforeBattle
dw Route10AfterBattleText6 ; TextAfterBattle
dw Route10EndBattleText6 ; TextEndBattle
dw Route10EndBattleText6 ; TextEndBattle
2014-05-18 18:19:10 +00:00
db $ff
2016-06-12 00:24:04 +00:00
Route10Text1:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route10TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route10BattleText1:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10BattleText1
db "@"
2016-06-12 00:24:04 +00:00
Route10EndBattleText1:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10EndBattleText1
db "@"
2016-06-12 00:24:04 +00:00
Route10AfterBattleText1:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10AfterBattleText1
db "@"
2016-06-12 00:24:04 +00:00
Route10Text2:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route10TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route10BattleText2:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10BattleText2
db "@"
2016-06-12 00:24:04 +00:00
Route10EndBattleText2:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10EndBattleText2
db "@"
2016-06-12 00:24:04 +00:00
Route10AfterBattleText2:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10AfterBattleText2
db "@"
2016-06-12 00:24:04 +00:00
Route10Text3:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route10TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route10BattleText3:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10BattleText3
db "@"
2016-06-12 00:24:04 +00:00
Route10EndBattleText3:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10EndBattleText3
db "@"
2016-06-12 00:24:04 +00:00
Route10AfterBattleText3:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10AfterBattleText3
db "@"
2016-06-12 00:24:04 +00:00
Route10Text4:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route10TrainerHeader3
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route10BattleText4:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10BattleText4
db "@"
2016-06-12 00:24:04 +00:00
Route10EndBattleText4:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10EndBattleText4
db "@"
2016-06-12 00:24:04 +00:00
Route10AfterBattleText4:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10AfterBattleText4
db "@"
2016-06-12 00:24:04 +00:00
Route10Text5:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route10TrainerHeader4
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route10BattleText5:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10BattleText5
db "@"
2016-06-12 00:24:04 +00:00
Route10EndBattleText5:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10EndBattleText5
db "@"
2016-06-12 00:24:04 +00:00
Route10AfterBattleText5:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10AfterBattleText5
db "@"
2016-06-12 00:24:04 +00:00
Route10Text6:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
ld hl, Route10TrainerHeader5
call TalkToTrainer
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route10BattleText6:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10BattleText6
db "@"
2016-06-12 00:24:04 +00:00
Route10EndBattleText6:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10EndBattleText6
db "@"
2016-06-12 00:24:04 +00:00
Route10AfterBattleText6:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10AfterBattleText6
db "@"
2016-06-12 00:24:04 +00:00
Route10Text9:
Route10Text7:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10Text7 ; _Route10Text9
db "@"
2016-06-12 00:24:04 +00:00
Route10Text10:
2014-05-18 18:19:10 +00:00
TX_FAR _Route10Text10
db "@"