pokered/scripts/ViridianForest.asm

128 lines
4.1 KiB
NASM
Raw Normal View History

ViridianForest_Script:
2014-05-18 18:19:10 +00:00
call EnableAutoTextBoxDrawing
ld hl, ViridianForestTrainerHeaders
ld de, ViridianForest_ScriptPointers
2015-08-31 02:38:41 +00:00
ld a, [wViridianForestCurScript]
2014-05-18 18:19:10 +00:00
call ExecuteCurMapScriptInTable
2015-08-31 02:38:41 +00:00
ld [wViridianForestCurScript], a
2014-05-18 18:19:10 +00:00
ret
ViridianForest_ScriptPointers:
def_script_pointers
dw_const CheckFightingMapTrainers, SCRIPT_VIRIDIANFOREST_DEFAULT
dw_const DisplayEnemyTrainerTextAndStartBattle, SCRIPT_VIRIDIANFOREST_START_BATTLE
dw_const EndTrainerBattle, SCRIPT_VIRIDIANFOREST_END_BATTLE
2014-05-18 18:19:10 +00:00
ViridianForest_TextPointers:
def_text_pointers
dw_const ViridianForestYoungster1Text, TEXT_VIRIDIANFOREST_YOUNGSTER1
dw_const ViridianForestYoungster2Text, TEXT_VIRIDIANFOREST_YOUNGSTER2
dw_const ViridianForestYoungster3Text, TEXT_VIRIDIANFOREST_YOUNGSTER3
dw_const ViridianForestYoungster4Text, TEXT_VIRIDIANFOREST_YOUNGSTER4
dw_const PickUpItemText, TEXT_VIRIDIANFOREST_ANTIDOTE
dw_const PickUpItemText, TEXT_VIRIDIANFOREST_POTION
dw_const PickUpItemText, TEXT_VIRIDIANFOREST_POKE_BALL
dw_const ViridianForestYoungster5Text, TEXT_VIRIDIANFOREST_YOUNGSTER5
dw_const ViridianForestTrainerTips1Text, TEXT_VIRIDIANFOREST_TRAINER_TIPS1
dw_const ViridianForestUseAntidoteSignText, TEXT_VIRIDIANFOREST_USE_ANTIDOTE_SIGN
dw_const ViridianForestTrainerTips2Text, TEXT_VIRIDIANFOREST_TRAINER_TIPS2
dw_const ViridianForestTrainerTips3Text, TEXT_VIRIDIANFOREST_TRAINER_TIPS3
dw_const ViridianForestTrainerTips4Text, TEXT_VIRIDIANFOREST_TRAINER_TIPS4
dw_const ViridianForestLeavingSignText, TEXT_VIRIDIANFOREST_LEAVING_SIGN
2014-05-18 18:19:10 +00:00
ViridianForestTrainerHeaders:
def_trainers 2
2016-06-12 00:24:04 +00:00
ViridianForestTrainerHeader0:
trainer EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_0, 4, ViridianForestYoungster2BattleText, ViridianForestYoungster2EndBattleText, ViridianForestYoungster2AfterBattleText
2016-06-12 00:24:04 +00:00
ViridianForestTrainerHeader1:
trainer EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_1, 4, ViridianForestYoungster3BattleText, ViridianForestYoungster3EndBattleText, ViridianForestYoungster3AfterBattleText
2016-06-12 00:24:04 +00:00
ViridianForestTrainerHeader2:
trainer EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_2, 1, ViridianForestYoungster4BattleText, ViridianForestYoungster4EndBattleText, ViridianForestYoungster4AfterBattleText
db -1 ; end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster1Text:
text_far _ViridianForestYoungster1Text
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster2Text:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, ViridianForestTrainerHeader0
call TalkToTrainer
jp TextScriptEnd
ViridianForestYoungster3Text:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, ViridianForestTrainerHeader1
call TalkToTrainer
jp TextScriptEnd
ViridianForestYoungster4Text:
text_asm
2014-05-18 18:19:10 +00:00
ld hl, ViridianForestTrainerHeader2
call TalkToTrainer
jp TextScriptEnd
ViridianForestYoungster2BattleText:
text_far _ViridianForestYoungster2BattleText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster2EndBattleText:
text_far _ViridianForestYoungster2EndBattleText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster2AfterBattleText:
text_far _ViridianForestYoungster2AfterBattleText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster3BattleText:
text_far _ViridianForestYoungster3BattleText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster3EndBattleText:
text_far _ViridianForestYoungster3EndBattleText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster3AfterBattleText:
text_far _ViridianForestYoungster3AfterBattleText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster4BattleText:
text_far _ViridianForestYoungster4BattleText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster4EndBattleText:
text_far _ViridianForestYoungster4EndBattleText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster4AfterBattleText:
text_far _ViridianForestYoungster4AfterBattleText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestYoungster5Text:
text_far _ViridianForestYoungster5Text
text_end
2014-05-18 18:19:10 +00:00
ViridianForestTrainerTips1Text:
text_far _ViridianForestTrainerTips1Text
text_end
2014-05-18 18:19:10 +00:00
ViridianForestUseAntidoteSignText:
text_far _ViridianForestUseAntidoteSignText
text_end
2014-05-18 18:19:10 +00:00
ViridianForestTrainerTips2Text:
text_far _ViridianForestTrainerTips2Text
text_end
2014-05-18 18:19:10 +00:00
ViridianForestTrainerTips3Text:
text_far _ViridianForestTrainerTips3Text
text_end
2014-05-18 18:19:10 +00:00
ViridianForestTrainerTips4Text:
text_far _ViridianForestTrainerTips4Text
text_end
2014-05-18 18:19:10 +00:00
ViridianForestLeavingSignText:
text_far _ViridianForestLeavingSignText
text_end