123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- Route9Script:
- call EnableAutoTextBoxDrawing
- ld hl, Route9TrainerHeader0
- ld de, Route9ScriptPointers
- ld a, [wRoute9CurScript]
- call ExecuteCurMapScriptInTable
- ld [wRoute9CurScript], a
- ret
- Route9ScriptPointers:
- dw CheckFightingMapTrainers
- dw DisplayEnemyTrainerTextAndStartBattle
- dw EndTrainerBattle
- Route9TextPointers:
- dw Route9Text1
- dw Route9Text2
- dw Route9Text3
- dw Route9Text4
- dw Route9Text5
- dw Route9Text6
- dw Route9Text7
- dw Route9Text8
- dw Route9Text9
- dw PickUpItemText
- dw Route9Text11
- Route9TrainerHeader0:
- dbEventFlagBit EVENT_BEAT_ROUTE_9_TRAINER_0
- db ($3 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_9_TRAINER_0
- dw Route9BattleText1 ; TextBeforeBattle
- dw Route9AfterBattleText1 ; TextAfterBattle
- dw Route9EndBattleText1 ; TextEndBattle
- dw Route9EndBattleText1 ; TextEndBattle
- Route9TrainerHeader1:
- dbEventFlagBit EVENT_BEAT_ROUTE_9_TRAINER_1
- db ($2 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_9_TRAINER_1
- dw Route9BattleText2 ; TextBeforeBattle
- dw Route9AfterBattleText2 ; TextAfterBattle
- dw Route9EndBattleText2 ; TextEndBattle
- dw Route9EndBattleText2 ; TextEndBattle
- Route9TrainerHeader2:
- dbEventFlagBit EVENT_BEAT_ROUTE_9_TRAINER_2
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_9_TRAINER_2
- dw Route9BattleText3 ; TextBeforeBattle
- dw Route9AfterBattleText3 ; TextAfterBattle
- dw Route9EndBattleText3 ; TextEndBattle
- dw Route9EndBattleText3 ; TextEndBattle
- Route9TrainerHeader3:
- dbEventFlagBit EVENT_BEAT_ROUTE_9_TRAINER_3
- db ($2 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_9_TRAINER_3
- dw Route9BattleText4 ; TextBeforeBattle
- dw Route9AfterBattleText4 ; TextAfterBattle
- dw Route9EndBattleText4 ; TextEndBattle
- dw Route9EndBattleText4 ; TextEndBattle
- Route9TrainerHeader4:
- dbEventFlagBit EVENT_BEAT_ROUTE_9_TRAINER_4
- db ($2 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_9_TRAINER_4
- dw Route9BattleText5 ; TextBeforeBattle
- dw Route9AfterBattleText5 ; TextAfterBattle
- dw Route9EndBattleText5 ; TextEndBattle
- dw Route9EndBattleText5 ; TextEndBattle
- Route9TrainerHeader5:
- dbEventFlagBit EVENT_BEAT_ROUTE_9_TRAINER_5
- db ($3 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_9_TRAINER_5
- dw Route9BattleText6 ; TextBeforeBattle
- dw Route9AfterBattleText6 ; TextAfterBattle
- dw Route9EndBattleText6 ; TextEndBattle
- dw Route9EndBattleText6 ; TextEndBattle
- Route9TrainerHeader6:
- dbEventFlagBit EVENT_BEAT_ROUTE_9_TRAINER_6
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_9_TRAINER_6
- dw Route9BattleText7 ; TextBeforeBattle
- dw Route9AfterBattleText7 ; TextAfterBattle
- dw Route9EndBattleText7 ; TextEndBattle
- dw Route9EndBattleText7 ; TextEndBattle
- Route9TrainerHeader7:
- dbEventFlagBit EVENT_BEAT_ROUTE_9_TRAINER_7, 1
- db ($2 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_9_TRAINER_7, 1
- dw Route9BattleText8 ; TextBeforeBattle
- dw Route9AfterBattleText8 ; TextAfterBattle
- dw Route9EndBattleText8 ; TextEndBattle
- dw Route9EndBattleText8 ; TextEndBattle
- Route9TrainerHeader8:
- dbEventFlagBit EVENT_BEAT_ROUTE_9_TRAINER_8, 1
- db ($2 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_ROUTE_9_TRAINER_8, 1
- dw Route9BattleText9 ; TextBeforeBattle
- dw Route9AfterBattleText9 ; TextAfterBattle
- dw Route9EndBattleText9 ; TextEndBattle
- dw Route9EndBattleText9 ; TextEndBattle
- db $ff
- Route9Text1:
- TX_ASM
- ld hl, Route9TrainerHeader0
- jr Route9TalkToTrainer
- Route9Text2:
- TX_ASM
- ld hl, Route9TrainerHeader1
- jr Route9TalkToTrainer
- Route9Text3:
- TX_ASM
- ld hl, Route9TrainerHeader2
- jr Route9TalkToTrainer
- Route9Text4:
- TX_ASM
- ld hl, Route9TrainerHeader3
- jr Route9TalkToTrainer
- Route9Text5:
- TX_ASM
- ld hl, Route9TrainerHeader4
- jr Route9TalkToTrainer
- Route9Text6:
- TX_ASM
- ld hl, Route9TrainerHeader5
- jr Route9TalkToTrainer
- Route9Text7:
- TX_ASM
- ld hl, Route9TrainerHeader6
- jr Route9TalkToTrainer
- Route9Text8:
- TX_ASM
- ld hl, Route9TrainerHeader7
- jr Route9TalkToTrainer
- Route9Text9:
- TX_ASM
- ld hl, Route9TrainerHeader8
- Route9TalkToTrainer:
- call TalkToTrainer
- jp TextScriptEnd
- Route9BattleText1:
- TX_FAR _Route9BattleText1
- db "@"
- Route9EndBattleText1:
- TX_FAR _Route9EndBattleText1
- db "@"
- Route9AfterBattleText1:
- TX_FAR _Route9AfterBattleText1
- db "@"
- Route9BattleText2:
- TX_FAR _Route9BattleText2
- db "@"
- Route9EndBattleText2:
- TX_FAR _Route9EndBattleText2
- db "@"
- Route9AfterBattleText2:
- TX_FAR _Route9AfterBattleText2
- db "@"
- Route9BattleText3:
- TX_FAR _Route9BattleText3
- db "@"
- Route9EndBattleText3:
- TX_FAR _Route9EndBattleText3
- db "@"
- Route9AfterBattleText3:
- TX_FAR _Route9AfterBattleText3
- db "@"
- Route9BattleText4:
- TX_FAR _Route9BattleText4
- db "@"
- Route9EndBattleText4:
- TX_FAR _Route9EndBattleText4
- db "@"
- Route9AfterBattleText4:
- TX_FAR _Route9AfterBattleText4
- db "@"
- Route9BattleText5:
- TX_FAR _Route9BattleText5
- db "@"
- Route9EndBattleText5:
- TX_FAR _Route9EndBattleText5
- db "@"
- Route9AfterBattleText5:
- TX_FAR _Route9AfterBattleText5
- db "@"
- Route9BattleText6:
- TX_FAR _Route9BattleText6
- db "@"
- Route9EndBattleText6:
- TX_FAR _Route9EndBattleText6
- db "@"
- Route9AfterBattleText6:
- TX_FAR _Route9AfterBattleText6
- db "@"
- Route9BattleText7:
- TX_FAR _Route9BattleText7
- db "@"
- Route9EndBattleText7:
- TX_FAR _Route9EndBattleText7
- db "@"
- Route9AfterBattleText7:
- TX_FAR _Route9AfterBattleText7
- db "@"
- Route9BattleText8:
- TX_FAR _Route9BattleText8
- db "@"
- Route9EndBattleText8:
- TX_FAR _Route9EndBattleText8
- db "@"
- Route9AfterBattleText8:
- TX_FAR _Route9AfterBattleText8
- db "@"
- Route9BattleText9:
- TX_FAR _Route9BattleText9
- db "@"
- Route9EndBattleText9:
- TX_FAR _Route9EndBattleText9
- db "@"
- Route9AfterBattleText9:
- TX_FAR _Route9AfterBattleText9
- db "@"
- Route9Text11:
- TX_FAR _Route9Text11
- db "@"
|