ref: 772fcc7588a4e1fbe146a02b429cf64282c81dcb
dir: /scripts/ViridianForest.asm/
ViridianForest_Script: call EnableAutoTextBoxDrawing ld hl, ViridianForestTrainerHeader0 ld de, ViridianForest_ScriptPointers ld a, [wViridianForestCurScript] call ExecuteCurMapScriptInTable ld [wViridianForestCurScript], a ret ViridianForest_ScriptPointers: dw CheckFightingMapTrainers dw DisplayEnemyTrainerTextAndStartBattle dw EndTrainerBattle ViridianForest_TextPointers: dw ViridianForestText1 dw ViridianForestText2 dw ViridianForestText3 dw ViridianForestText4 dw PickUpItemText dw PickUpItemText dw PickUpItemText dw ViridianForestText8 dw ViridianForestText9 dw ViridianForestText10 dw ViridianForestText11 dw ViridianForestText12 dw ViridianForestText13 dw ViridianForestText14 ViridianForestTrainerHeader0: dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_0 db ($4 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_0 dw ViridianForestBattleText1 ; TextBeforeBattle dw ViridianForestAfterBattleText1 ; TextAfterBattle dw ViridianForestEndBattleText1 ; TextEndBattle dw ViridianForestEndBattleText1 ; TextEndBattle ViridianForestTrainerHeader1: dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_1 db ($4 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_1 dw ViridianForestBattleText2 ; TextBeforeBattle dw ViridianForestAfterBattleText2 ; TextAfterBattle dw ViridianForestEndBattleText2 ; TextEndBattle dw ViridianForestEndBattleText2 ; TextEndBattle ViridianForestTrainerHeader2: dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_2 db ($1 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_2 dw ViridianForestBattleText3 ; TextBeforeBattle dw ViridianForestAfterBattleText3 ; TextAfterBattle dw ViridianForestEndBattleText3 ; TextEndBattle dw ViridianForestEndBattleText3 ; TextEndBattle db $ff ViridianForestText1: text_far _ViridianForestText1 text_end ViridianForestText2: text_asm ld hl, ViridianForestTrainerHeader0 call TalkToTrainer jp TextScriptEnd ViridianForestText3: text_asm ld hl, ViridianForestTrainerHeader1 call TalkToTrainer jp TextScriptEnd ViridianForestText4: text_asm ld hl, ViridianForestTrainerHeader2 call TalkToTrainer jp TextScriptEnd ViridianForestBattleText1: text_far _ViridianForestBattleText1 text_end ViridianForestEndBattleText1: text_far _ViridianForestEndBattleText1 text_end ViridianForestAfterBattleText1: text_far _ViridianFrstAfterBattleText1 text_end ViridianForestBattleText2: text_far _ViridianForestBattleText2 text_end ViridianForestEndBattleText2: text_far _ViridianForestEndBattleText2 text_end ViridianForestAfterBattleText2: text_far _ViridianFrstAfterBattleText2 text_end ViridianForestBattleText3: text_far _ViridianForestBattleText3 text_end ViridianForestEndBattleText3: text_far _ViridianForestEndBattleText3 text_end ViridianForestAfterBattleText3: text_far _ViridianFrstAfterBattleText3 text_end ViridianForestText8: text_far _ViridianForestText8 text_end ViridianForestText9: text_far _ViridianForestText9 text_end ViridianForestText10: text_far _ViridianForestText10 text_end ViridianForestText11: text_far _ViridianForestText11 text_end ViridianForestText12: text_far _ViridianForestText12 text_end ViridianForestText13: text_far _ViridianForestText13 text_end ViridianForestText14: text_far _ViridianForestText14 text_end