2019-01-01 20:06:23 +00:00
|
|
|
PowerPlant_Script:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Voltorb0TrainerHeader
|
2019-01-01 20:06:23 +00:00
|
|
|
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
|
|
|
|
|
2020-07-03 21:32:21 +00:00
|
|
|
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
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
PowerPlant_TextPointers:
|
2016-04-07 02:58:45 +00:00
|
|
|
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
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb0TrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_0, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb1TrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_1, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb2TrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_2, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb3TrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_3, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb4TrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_4, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb5TrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_5, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb6TrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_6, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb7TrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_POWER_PLANT_VOLTORB_7, 1, 0, VoltorbBattleText, VoltorbBattleText, VoltorbBattleText
|
2016-04-07 02:58:45 +00:00
|
|
|
ZapdosTrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_ZAPDOS, 1, 0, ZapdosBattleText, ZapdosBattleText, ZapdosBattleText
|
|
|
|
db -1 ; end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +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
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb0Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, Voltorb0TrainerHeader
|
2015-07-03 19:38:12 +00:00
|
|
|
jr InitVoltorbBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb1Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, Voltorb1TrainerHeader
|
2015-07-03 19:38:12 +00:00
|
|
|
jr InitVoltorbBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb2Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, Voltorb2TrainerHeader
|
2015-07-03 19:38:12 +00:00
|
|
|
jr InitVoltorbBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb3Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, Voltorb3TrainerHeader
|
2015-07-03 19:38:12 +00:00
|
|
|
jr InitVoltorbBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb4Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, Voltorb4TrainerHeader
|
2015-07-03 19:38:12 +00:00
|
|
|
jr InitVoltorbBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb5Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, Voltorb5TrainerHeader
|
2015-07-03 19:38:12 +00:00
|
|
|
jr InitVoltorbBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb6Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, Voltorb6TrainerHeader
|
2015-07-03 19:38:12 +00:00
|
|
|
jr InitVoltorbBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb7Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, Voltorb7TrainerHeader
|
2015-07-03 19:38:12 +00:00
|
|
|
jr InitVoltorbBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
ZapdosText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, ZapdosTrainerHeader
|
2015-07-03 19:38:12 +00:00
|
|
|
jr InitVoltorbBattle
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
VoltorbBattleText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _VoltorbBattleText
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
ZapdosBattleText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _ZapdosBattleText
|
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, ZAPDOS
|
|
|
|
call PlayCry
|
|
|
|
call WaitForSoundToFinish
|
|
|
|
jp TextScriptEnd
|