pokered/scripts/PowerPlant.asm

113 lines
2.7 KiB
NASM
Raw Normal View History

PowerPlant_Script:
2014-05-18 18:19:10 +00:00
call EnableAutoTextBoxDrawing
ld hl, Voltorb0TrainerHeader
ld de, PowerPlant_ScriptPointers
2015-08-31 02:38:41 +00:00
ld a, [wPowerPlantCurScript]
2014-05-18 18:19:10 +00:00
call ExecuteCurMapScriptInTable
2015-08-31 02:38:41 +00:00
ld [wPowerPlantCurScript], a
2014-05-18 18:19:10 +00:00
ret
PowerPlant_ScriptPointers:
2014-05-18 18:19:10 +00:00
dw CheckFightingMapTrainers
2014-09-14 18:29:18 +00:00
dw DisplayEnemyTrainerTextAndStartBattle
2014-05-18 18:19:10 +00:00
dw EndTrainerBattle
PowerPlant_TextPointers:
dw Voltorb0Text
dw Voltorb1Text
dw Voltorb2Text
dw Voltorb3Text
dw Voltorb4Text
dw Voltorb5Text
dw Voltorb6Text
dw Voltorb7Text
dw ZapdosText
2015-07-18 15:17:29 +00:00
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
2014-05-18 18:19:10 +00:00
Voltorb0TrainerHeader:
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_0, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
Voltorb1TrainerHeader:
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_1, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
Voltorb2TrainerHeader:
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_2, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
Voltorb3TrainerHeader:
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_3, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
Voltorb4TrainerHeader:
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_4, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
Voltorb5TrainerHeader:
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_5, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
Voltorb6TrainerHeader:
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_6, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
Voltorb7TrainerHeader:
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_7, 1, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
ZapdosTrainerHeader:
trainer EVENT_BEAT_ZAPDOS, 1, 0, ZapdosBattleText, ZapdosBattleText, ZapdosBattleText
db -1 ; end
2014-05-18 18:19:10 +00:00
InitVoltorbBattle:
2014-05-18 18:19:10 +00:00
call TalkToTrainer
2015-08-31 02:38:41 +00:00
ld a, [wCurMapScript]
ld [wPowerPlantCurScript], a
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
Voltorb0Text:
text_asm
ld hl, Voltorb0TrainerHeader
jr InitVoltorbBattle
2014-05-18 18:19:10 +00:00
Voltorb1Text:
text_asm
ld hl, Voltorb1TrainerHeader
jr InitVoltorbBattle
2014-05-18 18:19:10 +00:00
Voltorb2Text:
text_asm
ld hl, Voltorb2TrainerHeader
jr InitVoltorbBattle
2014-05-18 18:19:10 +00:00
Voltorb3Text:
text_asm
ld hl, Voltorb3TrainerHeader
jr InitVoltorbBattle
2014-05-18 18:19:10 +00:00
Voltorb4Text:
text_asm
ld hl, Voltorb4TrainerHeader
jr InitVoltorbBattle
2014-05-18 18:19:10 +00:00
Voltorb5Text:
text_asm
ld hl, Voltorb5TrainerHeader
jr InitVoltorbBattle
2014-05-18 18:19:10 +00:00
Voltorb6Text:
text_asm
ld hl, Voltorb6TrainerHeader
jr InitVoltorbBattle
2014-05-18 18:19:10 +00:00
Voltorb7Text:
text_asm
ld hl, Voltorb7TrainerHeader
jr InitVoltorbBattle
2014-05-18 18:19:10 +00:00
ZapdosText:
text_asm
ld hl, ZapdosTrainerHeader
jr InitVoltorbBattle
2014-05-18 18:19:10 +00:00
VoltorbBattleText:
text_far _VoltorbBattleText
text_end
2014-05-18 18:19:10 +00:00
ZapdosBattleText:
text_far _ZapdosBattleText
text_asm
2014-05-18 18:19:10 +00:00
ld a, ZAPDOS
call PlayCry
call WaitForSoundToFinish
jp TextScriptEnd