ref: 5facf8377aeda68cb3fca389cb1784cf9c2d406b
dir: /scripts/route13.asm/
Route13Script: ; 5581e (15:581e) call EnableAutoTextBoxDrawing ld hl, Route13TrainerHeaders ld de, Route13ScriptPointers ld a, [wRoute13CurScript] call ExecuteCurMapScriptInTable ld [wRoute13CurScript], a ret Route13ScriptPointers: ; 55831 (15:5831) dw CheckFightingMapTrainers dw DisplayEnemyTrainerTextAndStartBattle dw EndTrainerBattle Route13TextPointers: ; 55837 (15:5837) dw Route13Text1 dw Route13Text2 dw Route13Text3 dw Route13Text4 dw Route13Text5 dw Route13Text6 dw Route13Text7 dw Route13Text8 dw Route13Text9 dw Route13Text10 dw Route13Text11 dw Route13Text12 dw Route13Text13 Route13TrainerHeaders: ; 55851 (15:5851) Route13TrainerHeader0: ; 55851 (15:5851) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_0 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_0 dw Route13BattleText2 ; TextBeforeBattle dw Route13AfterBattleText2 ; TextAfterBattle dw Route13EndBattleText2 ; TextEndBattle dw Route13EndBattleText2 ; TextEndBattle Route13TrainerHeader2: ; 5585d (15:585d) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_2 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_2 dw Route13BattleText3 ; TextBeforeBattle dw Route13AfterBattleText3 ; TextAfterBattle dw Route13EndBattleText3 ; TextEndBattle dw Route13EndBattleText3 ; TextEndBattle Route13TrainerHeader3: ; 55869 (15:5869) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_3 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_3 dw Route13BattleText4 ; TextBeforeBattle dw Route13AfterBattleText4 ; TextAfterBattle dw Route13EndBattleText4 ; TextEndBattle dw Route13EndBattleText4 ; TextEndBattle Route13TrainerHeader4: ; 55875 (15:5875) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_4 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_4 dw Route13BattleText5 ; TextBeforeBattle dw Route13AfterBattleText5 ; TextAfterBattle dw Route13EndBattleText5 ; TextEndBattle dw Route13EndBattleText5 ; TextEndBattle Route13TrainerHeader5: ; 55881 (15:5881) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_5 db ($4 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_5 dw Route13BattleText6 ; TextBeforeBattle dw Route13AfterBattleText6 ; TextAfterBattle dw Route13EndBattleText6 ; TextEndBattle dw Route13EndBattleText6 ; TextEndBattle Route13TrainerHeader6: ; 5588d (15:588d) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_6 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_6 dw Route13BattleText7 ; TextBeforeBattle dw Route13AfterBattleText7 ; TextAfterBattle dw Route13EndBattleText7 ; TextEndBattle dw Route13EndBattleText7 ; TextEndBattle Route13TrainerHeader7: ; 55899 (15:5899) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_7 db ($4 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_7 dw Route13BattleText8 ; TextBeforeBattle dw Route13AfterBattleText8 ; TextAfterBattle dw Route13EndBattleText8 ; TextEndBattle dw Route13EndBattleText8 ; TextEndBattle Route13TrainerHeader8: ; 558a5 (15:58a5) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_8, 1 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_8, 1 dw Route13BattleText9 ; TextBeforeBattle dw Route13AfterBattleText9 ; TextAfterBattle dw Route13EndBattleText9 ; TextEndBattle dw Route13EndBattleText9 ; TextEndBattle Route13TrainerHeader9: ; 558b1 (15:58b1) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_9, 1 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_9, 1 dw Route13BattleText10 ; TextBeforeBattle dw Route13AfterBattleText10 ; TextAfterBattle dw Route13EndBattleText10 ; TextEndBattle dw Route13EndBattleText10 ; TextEndBattle Route13TrainerHeader10: ; 558bd (15:58bd) dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_10, 1 db ($4 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_10, 1 dw Route13BattleText11 ; TextBeforeBattle dw Route13AfterBattleText11 ; TextAfterBattle dw Route13EndBattleText11 ; TextEndBattle dw Route13EndBattleText11 ; TextEndBattle db $ff Route13Text1: ; 558ca (15:58ca) TX_ASM ld hl, Route13TrainerHeader0 call TalkToTrainer jp TextScriptEnd Route13BattleText2: ; 558d4 (15:58d4) TX_FAR _Route13BattleText2 db "@" Route13EndBattleText2: ; 558d9 (15:58d9) TX_FAR _Route13EndBattleText2 db "@" Route13AfterBattleText2: ; 558de (15:58de) TX_FAR _Route13AfterBattleText2 db "@" Route13Text2: ; 558e3 (15:58e3) TX_ASM ld hl, Route13TrainerHeader2 call TalkToTrainer jp TextScriptEnd Route13BattleText3: ; 558ed (15:58ed) TX_FAR _Route13BattleText3 db "@" Route13EndBattleText3: ; 558f2 (15:58f2) TX_FAR _Route13EndBattleText3 db "@" Route13AfterBattleText3: ; 558f7 (15:58f7) TX_FAR _Route13AfterBattleText3 db "@" Route13Text3: ; 558fc (15:58fc) TX_ASM ld hl, Route13TrainerHeader3 call TalkToTrainer jp TextScriptEnd Route13BattleText4: ; 55906 (15:5906) TX_FAR _Route13BattleText4 db "@" Route13EndBattleText4: ; 5590b (15:590b) TX_FAR _Route13EndBattleText4 db "@" Route13AfterBattleText4: ; 55910 (15:5910) TX_FAR _Route13AfterBattleText4 db "@" Route13Text4: ; 55915 (15:5915) TX_ASM ld hl, Route13TrainerHeader4 call TalkToTrainer jp TextScriptEnd Route13BattleText5: ; 5591f (15:591f) TX_FAR _Route13BattleText5 db "@" Route13EndBattleText5: ; 55924 (15:5924) TX_FAR _Route13EndBattleText5 db "@" Route13AfterBattleText5: ; 55929 (15:5929) TX_FAR _Route13AfterBattleText5 db "@" Route13Text5: ; 5592e (15:592e) TX_ASM ld hl, Route13TrainerHeader5 call TalkToTrainer jp TextScriptEnd Route13BattleText6: ; 55938 (15:5938) TX_FAR _Route13BattleText6 db "@" Route13EndBattleText6: ; 5593d (15:593d) TX_FAR _Route13EndBattleText6 db "@" Route13AfterBattleText6: ; 55942 (15:5942) TX_FAR _Route13AfterBattleText6 db "@" Route13Text6: ; 55947 (15:5947) TX_ASM ld hl, Route13TrainerHeader6 call TalkToTrainer jp TextScriptEnd Route13BattleText7: ; 55951 (15:5951) TX_FAR _Route13BattleText7 db "@" Route13EndBattleText7: ; 55956 (15:5956) TX_FAR _Route13EndBattleText7 db "@" Route13AfterBattleText7: ; 5595b (15:595b) TX_FAR _Route13AfterBattleText7 db "@" Route13Text7: ; 55960 (15:5960) TX_ASM ld hl, Route13TrainerHeader7 call TalkToTrainer jp TextScriptEnd Route13BattleText8: ; 5596a (15:596a) TX_FAR _Route13BattleText8 db "@" Route13EndBattleText8: ; 5596f (15:596f) TX_FAR _Route13EndBattleText8 db "@" Route13AfterBattleText8: ; 55974 (15:5974) TX_FAR _Route13AfterBattleText8 db "@" Route13Text8: ; 55979 (15:5979) TX_ASM ld hl, Route13TrainerHeader8 call TalkToTrainer jp TextScriptEnd Route13BattleText9: ; 55983 (15:5983) TX_FAR _Route13BattleText9 db "@" Route13EndBattleText9: ; 55988 (15:5988) TX_FAR _Route13EndBattleText9 db "@" Route13AfterBattleText9: ; 5598d (15:598d) TX_FAR _Route13AfterBattleText9 db "@" Route13Text9: ; 55992 (15:5992) TX_ASM ld hl, Route13TrainerHeader9 call TalkToTrainer jp TextScriptEnd Route13BattleText10: ; 5599c (15:599c) TX_FAR _Route13BattleText10 db "@" Route13EndBattleText10: ; 559a1 (15:59a1) TX_FAR _Route13EndBattleText10 db "@" Route13AfterBattleText10: ; 559a6 (15:59a6) TX_FAR _Route13AfterBattleText10 db "@" Route13Text10: ; 559ab (15:59ab) TX_ASM ld hl, Route13TrainerHeader10 call TalkToTrainer jp TextScriptEnd Route13BattleText11: ; 559b5 (15:59b5) TX_FAR _Route13BattleText11 db "@" Route13EndBattleText11: ; 559ba (15:59ba) TX_FAR _Route13EndBattleText11 db "@" Route13AfterBattleText11: ; 559bf (15:59bf) TX_FAR _Route13AfterBattleText11 db "@" Route13Text11: ; 559c4 (15:59c4) TX_FAR _Route13Text11 db "@" Route13Text12: ; 559c9 (15:59c9) TX_FAR _Route13Text12 db "@" Route13Text13: ; 559ce (15:59ce) TX_FAR _Route13Text13 db "@"