2019-01-01 20:06:23 +00:00
|
|
|
Route4_Script:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Route4TrainerHeader0
|
2019-01-01 20:06:23 +00:00
|
|
|
ld de, Route4_ScriptPointers
|
2015-08-31 02:38:41 +00:00
|
|
|
ld a, [wRoute4CurScript]
|
2014-05-18 18:19:10 +00:00
|
|
|
call ExecuteCurMapScriptInTable
|
2015-08-31 02:38:41 +00:00
|
|
|
ld [wRoute4CurScript], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ret
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
Route4_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
|
|
|
Route4_TextPointers:
|
2014-05-18 18:19:10 +00:00
|
|
|
dw Route4Text1
|
|
|
|
dw Route4Text2
|
2015-07-18 15:17:29 +00:00
|
|
|
dw PickUpItemText
|
2014-05-18 18:19:10 +00:00
|
|
|
dw PokeCenterSignText
|
|
|
|
dw Route4Text5
|
|
|
|
dw Route4Text6
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route4TrainerHeader0:
|
2015-07-21 01:32:02 +00:00
|
|
|
dbEventFlagBit EVENT_BEAT_ROUTE_4_TRAINER_0
|
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_4_TRAINER_0
|
2015-07-03 19:38:12 +00:00
|
|
|
dw Route4BattleText1 ; TextBeforeBattle
|
|
|
|
dw Route4AfterBattleText1 ; TextAfterBattle
|
|
|
|
dw Route4EndBattleText1 ; TextEndBattle
|
|
|
|
dw Route4EndBattleText1 ; TextEndBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
|
|
|
db $ff
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route4Text1:
|
2014-05-18 18:19:10 +00:00
|
|
|
TX_FAR _Route4Text1
|
|
|
|
db "@"
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route4Text2:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_ASM
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route4TrainerHeader0
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route4BattleText1:
|
2014-05-18 18:19:10 +00:00
|
|
|
TX_FAR _Route4BattleText1
|
|
|
|
db "@"
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route4EndBattleText1:
|
2014-05-18 18:19:10 +00:00
|
|
|
TX_FAR _Route4EndBattleText1
|
|
|
|
db "@"
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route4AfterBattleText1:
|
2014-05-18 18:19:10 +00:00
|
|
|
TX_FAR _Route4AfterBattleText1
|
|
|
|
db "@"
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route4Text5:
|
2014-05-18 18:19:10 +00:00
|
|
|
TX_FAR _Route4Text5
|
|
|
|
db "@"
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
Route4Text6:
|
2014-05-18 18:19:10 +00:00
|
|
|
TX_FAR _Route4Text6
|
|
|
|
db "@"
|