123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- Route17Script:
- call EnableAutoTextBoxDrawing
- ld hl, Route17TrainerHeader0
- ld de, Route17ScriptPointers
- ld a, [wRoute17CurScript]
- call ExecuteCurMapScriptInTable
- ld [wRoute17CurScript], a
- ret
- Route17ScriptPointers:
- dw CheckFightingMapTrainers
- dw DisplayEnemyTrainerTextAndStartBattle
- dw EndTrainerBattle
- Route17TextPointers:
- dw Route17Text1
- dw Route17Text2
- dw Route17Text3
- dw Route17Text4
- dw Route17Text5
- dw Route17Text6
- dw Route17Text7
- dw Route17Text8
- dw Route17Text9
- dw Route17Text10
- dw Route17Text11
- dw Route17Text12
- dw Route17Text13
- dw Route17Text14
- dw Route17Text15
- dw Route17Text16
- Route17TrainerHeader0:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_0
- db ($3 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_0
- dw Route17BattleText1 ; TextBeforeBattle
- dw Route17AfterBattleText1 ; TextAfterBattle
- dw Route17EndBattleText1 ; TextEndBattle
- dw Route17EndBattleText1 ; TextEndBattle
- Route17TrainerHeader1:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_1
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_1
- dw Route17BattleText2 ; TextBeforeBattle
- dw Route17AfterBattleText2 ; TextAfterBattle
- dw Route17EndBattleText2 ; TextEndBattle
- dw Route17EndBattleText2 ; TextEndBattle
- Route17TrainerHeader2:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_2
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_2
- dw Route17BattleText3 ; TextBeforeBattle
- dw Route17AfterBattleText3 ; TextAfterBattle
- dw Route17EndBattleText3 ; TextEndBattle
- dw Route17EndBattleText3 ; TextEndBattle
- Route17TrainerHeader3:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_3
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_3
- dw Route17BattleText4 ; TextBeforeBattle
- dw Route17AfterBattleText4 ; TextAfterBattle
- dw Route17EndBattleText4 ; TextEndBattle
- dw Route17EndBattleText4 ; TextEndBattle
- Route17TrainerHeader4:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_4
- db ($3 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_4
- dw Route17BattleText5 ; TextBeforeBattle
- dw Route17AfterBattleText5 ; TextAfterBattle
- dw Route17EndBattleText5 ; TextEndBattle
- dw Route17EndBattleText5 ; TextEndBattle
- Route17TrainerHeader5:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_5
- db ($2 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_5
- dw Route17BattleText6 ; TextBeforeBattle
- dw Route17AfterBattleText6 ; TextAfterBattle
- dw Route17EndBattleText6 ; TextEndBattle
- dw Route17EndBattleText6 ; TextEndBattle
- Route17TrainerHeader6:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_6
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_6
- dw Route17BattleText7 ; TextBeforeBattle
- dw Route17AfterBattleText7 ; TextAfterBattle
- dw Route17EndBattleText7 ; TextEndBattle
- dw Route17EndBattleText7 ; TextEndBattle
- Route17TrainerHeader7:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_7, 1
- db ($2 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_7, 1
- dw Route17BattleText8 ; TextBeforeBattle
- dw Route17AfterBattleText8 ; TextAfterBattle
- dw Route17EndBattleText8 ; TextEndBattle
- dw Route17EndBattleText8 ; TextEndBattle
- Route17TrainerHeader8:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_8, 1
- db ($3 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_8, 1
- dw Route17BattleText9 ; TextBeforeBattle
- dw Route17AfterBattleText9 ; TextAfterBattle
- dw Route17EndBattleText9 ; TextEndBattle
- dw Route17EndBattleText9 ; TextEndBattle
- Route17TrainerHeader9:
- dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_9, 1
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_9, 1
- dw Route17BattleText10 ; TextBeforeBattle
- dw Route17AfterBattleText10 ; TextAfterBattle
- dw Route17EndBattleText10 ; TextEndBattle
- dw Route17EndBattleText10 ; TextEndBattle
- db $ff
- Route17Text1:
- TX_ASM
- ld hl, Route17TrainerHeader0
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText1:
- TX_FAR _Route17BattleText1
- db "@"
- Route17EndBattleText1:
- TX_FAR _Route17EndBattleText1
- db "@"
- Route17AfterBattleText1:
- TX_FAR _Route17AfterBattleText1
- db "@"
- Route17Text2:
- TX_ASM
- ld hl, Route17TrainerHeader1
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText2:
- TX_FAR _Route17BattleText2
- db "@"
- Route17EndBattleText2:
- TX_FAR _Route17EndBattleText2
- db "@"
- Route17AfterBattleText2:
- TX_FAR _Route17AfterBattleText2
- db "@"
- Route17Text3:
- TX_ASM
- ld hl, Route17TrainerHeader2
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText3:
- TX_FAR _Route17BattleText3
- db "@"
- Route17EndBattleText3:
- TX_FAR _Route17EndBattleText3
- db "@"
- Route17AfterBattleText3:
- TX_FAR _Route17AfterBattleText3
- db "@"
- Route17Text4:
- TX_ASM
- ld hl, Route17TrainerHeader3
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText4:
- TX_FAR _Route17BattleText4
- db "@"
- Route17EndBattleText4:
- TX_FAR _Route17EndBattleText4
- db "@"
- Route17AfterBattleText4:
- TX_FAR _Route17AfterBattleText4
- db "@"
- Route17Text5:
- TX_ASM
- ld hl, Route17TrainerHeader4
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText5:
- TX_FAR _Route17BattleText5
- db "@"
- Route17EndBattleText5:
- TX_FAR _Route17EndBattleText5
- db "@"
- Route17AfterBattleText5:
- TX_FAR _Route17AfterBattleText5
- db "@"
- Route17Text6:
- TX_ASM
- ld hl, Route17TrainerHeader5
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText6:
- TX_FAR _Route17BattleText6
- db "@"
- Route17EndBattleText6:
- TX_FAR _Route17EndBattleText6
- db "@"
- Route17AfterBattleText6:
- TX_FAR _Route17AfterBattleText6
- db "@"
- Route17Text7:
- TX_ASM
- ld hl, Route17TrainerHeader6
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText7:
- TX_FAR _Route17BattleText7
- db "@"
- Route17EndBattleText7:
- TX_FAR _Route17EndBattleText7
- db "@"
- Route17AfterBattleText7:
- TX_FAR _Route17AfterBattleText7
- db "@"
- Route17Text8:
- TX_ASM
- ld hl, Route17TrainerHeader7
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText8:
- TX_FAR _Route17BattleText8
- db "@"
- Route17EndBattleText8:
- TX_FAR _Route17EndBattleText8
- db "@"
- Route17AfterBattleText8:
- TX_FAR _Route17AfterBattleText8
- db "@"
- Route17Text9:
- TX_ASM
- ld hl, Route17TrainerHeader8
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText9:
- TX_FAR _Route17BattleText9
- db "@"
- Route17EndBattleText9:
- TX_FAR _Route17EndBattleText9
- db "@"
- Route17AfterBattleText9:
- TX_FAR _Route17AfterBattleText9
- db "@"
- Route17Text10:
- TX_ASM
- ld hl, Route17TrainerHeader9
- call TalkToTrainer
- jp TextScriptEnd
- Route17BattleText10:
- TX_FAR _Route17BattleText10
- db "@"
- Route17EndBattleText10:
- TX_FAR _Route17EndBattleText10
- db "@"
- Route17AfterBattleText10:
- TX_FAR _Route17AfterBattleText10
- db "@"
- Route17Text11:
- TX_FAR _Route17Text11
- db "@"
- Route17Text12:
- TX_FAR _Route17Text12
- db "@"
- Route17Text13:
- TX_FAR _Route17Text13
- db "@"
- Route17Text14:
- TX_FAR _Route17Text14
- db "@"
- Route17Text15:
- TX_FAR _Route17Text15
- db "@"
- Route17Text16:
- TX_FAR _Route17Text16
- db "@"
|