2019-01-01 20:06:23 +00:00
|
|
|
Route3_Script:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
2021-04-13 22:24:37 +00:00
|
|
|
ld hl, Route3TrainerHeaders
|
2019-01-01 20:06:23 +00:00
|
|
|
ld de, Route3_ScriptPointers
|
2015-08-31 02:38:41 +00:00
|
|
|
ld a, [wRoute3CurScript]
|
2014-05-18 18:19:10 +00:00
|
|
|
call ExecuteCurMapScriptInTable
|
2015-08-31 02:38:41 +00:00
|
|
|
ld [wRoute3CurScript], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ret
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
Route3_ScriptPointers:
|
2023-07-14 01:27:56 +00:00
|
|
|
def_script_pointers
|
|
|
|
dw_const CheckFightingMapTrainers, SCRIPT_ROUTE3_DEFAULT
|
|
|
|
dw_const DisplayEnemyTrainerTextAndStartBattle, SCRIPT_ROUTE3_START_BATTLE
|
|
|
|
dw_const EndTrainerBattle, SCRIPT_ROUTE3_END_BATTLE
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
Route3_TextPointers:
|
2023-07-14 01:27:56 +00:00
|
|
|
def_text_pointers
|
|
|
|
dw_const Route3SuperNerdText, TEXT_ROUTE3_SUPER_NERD
|
|
|
|
dw_const Route3Youngster1Text, TEXT_ROUTE3_YOUNGSTER1
|
|
|
|
dw_const Route3Youngster2Text, TEXT_ROUTE3_YOUNGSTER2
|
|
|
|
dw_const Route3CooltrainerF1Text, TEXT_ROUTE3_COOLTRAINER_F1
|
|
|
|
dw_const Route3Youngster3Text, TEXT_ROUTE3_YOUNGSTER3
|
|
|
|
dw_const Route3CooltrainerF2Text, TEXT_ROUTE3_COOLTRAINER_F2
|
|
|
|
dw_const Route3Youngster4Text, TEXT_ROUTE3_YOUNGSTER4
|
|
|
|
dw_const Route3Youngster5Text, TEXT_ROUTE3_YOUNGSTER5
|
|
|
|
dw_const Route3CooltrainerF3Text, TEXT_ROUTE3_COOLTRAINER_F3
|
|
|
|
dw_const Route3SignText, TEXT_ROUTE3_SIGN
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2021-04-13 22:24:37 +00:00
|
|
|
Route3TrainerHeaders:
|
|
|
|
def_trainers 2
|
2016-06-12 00:24:04 +00:00
|
|
|
Route3TrainerHeader0:
|
2023-07-14 01:27:56 +00:00
|
|
|
trainer EVENT_BEAT_ROUTE_3_TRAINER_0, 2, Route3Youngster1BattleText, Route3Youngster1EndBattleText, Route3Youngster1AfterBattleText
|
2016-07-20 05:40:04 +00:00
|
|
|
Route3TrainerHeader1:
|
2023-07-14 01:27:56 +00:00
|
|
|
trainer EVENT_BEAT_ROUTE_3_TRAINER_1, 3, Route3Youngster2BattleText, Route3Youngster2EndBattleText, Route3Youngster2AfterBattleText
|
2016-07-20 05:40:04 +00:00
|
|
|
Route3TrainerHeader2:
|
2023-07-14 01:27:56 +00:00
|
|
|
trainer EVENT_BEAT_ROUTE_3_TRAINER_2, 2, Route3CooltrainerF1BattleText, Route3CooltrainerF1EndBattleText, Route3CooltrainerF1AfterBattleText
|
2016-07-20 05:40:04 +00:00
|
|
|
Route3TrainerHeader3:
|
2023-07-14 01:27:56 +00:00
|
|
|
trainer EVENT_BEAT_ROUTE_3_TRAINER_3, 1, Route3Youngster3BattleText, Route3Youngster3EndBattleText, Route3Youngster3AfterBattleText
|
2016-07-20 05:40:04 +00:00
|
|
|
Route3TrainerHeader4:
|
2023-07-14 01:27:56 +00:00
|
|
|
trainer EVENT_BEAT_ROUTE_3_TRAINER_4, 4, Route3CooltrainerF2BattleText, Route3CooltrainerF2EndBattleText, Route3CooltrainerF2AfterBattleText
|
2016-07-20 05:40:04 +00:00
|
|
|
Route3TrainerHeader5:
|
2023-07-14 01:27:56 +00:00
|
|
|
trainer EVENT_BEAT_ROUTE_3_TRAINER_5, 3, Route3Youngster4BattleText, Route3Youngster4EndBattleText, Route3Youngster4AfterBattleText
|
2016-07-20 05:40:04 +00:00
|
|
|
Route3TrainerHeader6:
|
2023-07-14 01:27:56 +00:00
|
|
|
trainer EVENT_BEAT_ROUTE_3_TRAINER_6, 3, Route3Youngster5BattleText, Route3Youngster5EndBattleText, Route3Youngster5AfterBattleText
|
2016-07-20 05:40:04 +00:00
|
|
|
Route3TrainerHeader7:
|
2023-07-14 01:27:56 +00:00
|
|
|
trainer EVENT_BEAT_ROUTE_3_TRAINER_7, 2, Route3CooltrainerF3BattleText, Route3CooltrainerF3EndBattleText, Route3CooltrainerF3AfterBattleText
|
2020-07-14 19:45:36 +00:00
|
|
|
db -1 ; end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3SuperNerdText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _Route3Text1
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster1Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route3TrainerHeader0
|
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster1BattleText:
|
|
|
|
text_far _Route3Youngster1BattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster1EndBattleText:
|
|
|
|
text_far _Route3Youngster1EndBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster1AfterBattleText:
|
|
|
|
text_far _Route3Youngster1AfterBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster2Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Route3TrainerHeader1
|
2014-05-18 18:19:10 +00:00
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster2BattleText:
|
|
|
|
text_far _Route3Youngster2BattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster2EndBattleText:
|
|
|
|
text_far _Route3Youngster2EndBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster2AfterBattleText:
|
|
|
|
text_far _Route3Youngster2AfterBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF1Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Route3TrainerHeader2
|
2014-05-18 18:19:10 +00:00
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF1BattleText:
|
|
|
|
text_far _Route3CooltrainerF1BattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF1EndBattleText:
|
|
|
|
text_far _Route3CooltrainerF1EndBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF1AfterBattleText:
|
|
|
|
text_far _Route3CooltrainerF1AfterBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster3Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Route3TrainerHeader3
|
2014-05-18 18:19:10 +00:00
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster3BattleText:
|
|
|
|
text_far _Route3Youngster3BattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster3EndBattleText:
|
|
|
|
text_far _Route3Youngster3EndBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster3AfterBattleText:
|
|
|
|
text_far _Route3Youngster3AfterBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF2Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Route3TrainerHeader4
|
2014-05-18 18:19:10 +00:00
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF2BattleText:
|
|
|
|
text_far _Route3CooltrainerF2BattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF2EndBattleText:
|
|
|
|
text_far _Route3CooltrainerF2EndBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF2AfterBattleText:
|
|
|
|
text_far _Route3CooltrainerF2AfterBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster4Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Route3TrainerHeader5
|
2014-05-18 18:19:10 +00:00
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster4BattleText:
|
|
|
|
text_far _Route3Youngster4BattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster4EndBattleText:
|
|
|
|
text_far _Route3Youngster4EndBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster4AfterBattleText:
|
|
|
|
text_far _Route3Youngster4AfterBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster5Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Route3TrainerHeader6
|
2014-05-18 18:19:10 +00:00
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster5BattleText:
|
|
|
|
text_far _Route3Youngster5BattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster5EndBattleText:
|
|
|
|
text_far _Route3Youngster5EndBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3Youngster5AfterBattleText:
|
|
|
|
text_far _Route3Youngster5AfterBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF3Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Route3TrainerHeader7
|
2014-05-18 18:19:10 +00:00
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF3BattleText:
|
|
|
|
text_far _Route3CooltrainerF3BattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF3EndBattleText:
|
|
|
|
text_far _Route3CooltrainerF3EndBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3CooltrainerF3AfterBattleText:
|
|
|
|
text_far _Route3CooltrainerF3AfterBattleText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
Route3SignText:
|
|
|
|
text_far _Route3SignText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|