2016-04-07 02:58:45 +00:00
|
|
|
PowerPlantScript:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
2016-07-20 05:40:04 +00:00
|
|
|
ld hl, Voltorb0TrainerHeader
|
2016-04-07 02:58:45 +00:00
|
|
|
ld de, .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
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
.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
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
PowerPlantTextPointers:
|
|
|
|
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:
|
|
|
|
dbEventFlagBit EVENT_BEAT_POWER_PLANT_VOLTORB_0
|
2014-05-18 18:19:10 +00:00
|
|
|
db 0 ; view range
|
2016-04-07 02:58:45 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_POWER_PLANT_VOLTORB_0
|
2014-05-18 18:19:10 +00:00
|
|
|
dw VoltorbBattleText ; TextBeforeBattle
|
|
|
|
dw VoltorbBattleText ; TextAfterBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb1TrainerHeader:
|
|
|
|
dbEventFlagBit EVENT_BEAT_POWER_PLANT_VOLTORB_1
|
2014-05-18 18:19:10 +00:00
|
|
|
db 0 ; view range
|
2016-04-07 02:58:45 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_POWER_PLANT_VOLTORB_1
|
2014-05-18 18:19:10 +00:00
|
|
|
dw VoltorbBattleText ; TextBeforeBattle
|
|
|
|
dw VoltorbBattleText ; TextAfterBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb2TrainerHeader:
|
|
|
|
dbEventFlagBit EVENT_BEAT_POWER_PLANT_VOLTORB_2
|
2014-05-18 18:19:10 +00:00
|
|
|
db 0 ; view range
|
2016-04-07 02:58:45 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_POWER_PLANT_VOLTORB_2
|
2014-05-18 18:19:10 +00:00
|
|
|
dw VoltorbBattleText ; TextBeforeBattle
|
|
|
|
dw VoltorbBattleText ; TextAfterBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb3TrainerHeader:
|
|
|
|
dbEventFlagBit EVENT_BEAT_POWER_PLANT_VOLTORB_3
|
2014-05-18 18:19:10 +00:00
|
|
|
db 0 ; view range
|
2016-04-07 02:58:45 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_POWER_PLANT_VOLTORB_3
|
2014-05-18 18:19:10 +00:00
|
|
|
dw VoltorbBattleText ; TextBeforeBattle
|
|
|
|
dw VoltorbBattleText ; TextAfterBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb4TrainerHeader:
|
|
|
|
dbEventFlagBit EVENT_BEAT_POWER_PLANT_VOLTORB_4
|
2014-05-18 18:19:10 +00:00
|
|
|
db 0 ; view range
|
2016-04-07 02:58:45 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_POWER_PLANT_VOLTORB_4
|
2014-05-18 18:19:10 +00:00
|
|
|
dw VoltorbBattleText ; TextBeforeBattle
|
|
|
|
dw VoltorbBattleText ; TextAfterBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb5TrainerHeader:
|
|
|
|
dbEventFlagBit EVENT_BEAT_POWER_PLANT_VOLTORB_5
|
2014-05-18 18:19:10 +00:00
|
|
|
db 0 ; view range
|
2016-04-07 02:58:45 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_POWER_PLANT_VOLTORB_5
|
2014-05-18 18:19:10 +00:00
|
|
|
dw VoltorbBattleText ; TextBeforeBattle
|
|
|
|
dw VoltorbBattleText ; TextAfterBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb6TrainerHeader:
|
|
|
|
dbEventFlagBit EVENT_BEAT_POWER_PLANT_VOLTORB_6
|
2014-05-18 18:19:10 +00:00
|
|
|
db 0 ; view range
|
2016-04-07 02:58:45 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_POWER_PLANT_VOLTORB_6
|
2014-05-18 18:19:10 +00:00
|
|
|
dw VoltorbBattleText ; TextBeforeBattle
|
|
|
|
dw VoltorbBattleText ; TextAfterBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Voltorb7TrainerHeader:
|
|
|
|
dbEventFlagBit EVENT_BEAT_POWER_PLANT_VOLTORB_7, 1
|
2014-05-18 18:19:10 +00:00
|
|
|
db 0 ; view range
|
2016-04-07 02:58:45 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_POWER_PLANT_VOLTORB_7, 1
|
2014-05-18 18:19:10 +00:00
|
|
|
dw VoltorbBattleText ; TextBeforeBattle
|
|
|
|
dw VoltorbBattleText ; TextAfterBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
dw VoltorbBattleText ; TextEndBattle
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
ZapdosTrainerHeader:
|
|
|
|
dbEventFlagBit EVENT_BEAT_ZAPDOS, 1
|
2014-05-18 18:19:10 +00:00
|
|
|
db 0 ; view range
|
2016-04-07 02:58:45 +00:00
|
|
|
dwEventFlagAddress EVENT_BEAT_ZAPDOS, 1
|
2014-05-18 18:19:10 +00:00
|
|
|
dw ZapdosBattleText ; TextBeforeBattle
|
|
|
|
dw ZapdosBattleText ; TextAfterBattle
|
|
|
|
dw ZapdosBattleText ; TextEndBattle
|
|
|
|
dw ZapdosBattleText ; TextEndBattle
|
|
|
|
|
|
|
|
db $ff
|
|
|
|
|
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:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_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:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_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:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_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:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_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:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_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:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_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:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_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:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_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:
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_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:
|
2014-05-18 18:19:10 +00:00
|
|
|
TX_FAR _VoltorbBattleText
|
|
|
|
db "@"
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
ZapdosBattleText:
|
2014-05-18 18:19:10 +00:00
|
|
|
TX_FAR _ZapdosBattleText
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_ASM
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, ZAPDOS
|
|
|
|
call PlayCry
|
|
|
|
call WaitForSoundToFinish
|
|
|
|
jp TextScriptEnd
|