pokecrystal-board/maps/PowerPlant.asm

411 lines
9.0 KiB
NASM
Raw Normal View History

object_const_def ; object_event constants
2015-11-26 21:22:14 -08:00
const POWERPLANT_OFFICER1
const POWERPLANT_GYM_GUY1
const POWERPLANT_GYM_GUY2
const POWERPLANT_OFFICER2
const POWERPLANT_GYM_GUY3
const POWERPLANT_MANAGER
2016-04-07 03:13:59 -07:00
const POWERPLANT_FOREST
2015-11-26 21:22:14 -08:00
PowerPlant_MapScripts:
db 2 ; scene scripts
scene_script .DummyScene0 ; SCENE_POWERPLANT_NOTHING
scene_script .DummyScene1 ; SCENE_POWERPLANT_GUARD_GETS_PHONE_CALL
db 0 ; callbacks
.DummyScene0:
end
.DummyScene1:
end
2016-04-07 03:13:59 -07:00
PowerPlantGuardPhoneScript:
playsound SFX_CALL
2015-11-26 21:22:14 -08:00
showemote EMOTE_SHOCK, POWERPLANT_OFFICER1, 15
2015-11-25 07:16:29 -08:00
waitsfx
pause 30
applymovement POWERPLANT_OFFICER1, PowerPlantOfficer1ApproachGymGuy2Movement
turnobject POWERPLANT_GYM_GUY1, DOWN
turnobject POWERPLANT_GYM_GUY2, DOWN
2015-12-09 15:25:44 -08:00
opentext
writetext PowerPlantOfficer1CeruleanShadyCharacterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject POWERPLANT_OFFICER1, LEFT
turnobject PLAYER, RIGHT
2015-12-09 15:25:44 -08:00
opentext
writetext PowerPlantOfficer1CouldIAskForYourCooperationText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject PLAYER, DOWN
applymovement POWERPLANT_OFFICER1, PowerPlantOfficer1ReturnToPostMovement
setscene SCENE_POWERPLANT_NOTHING
end
2018-03-01 11:20:27 -08:00
PowerPlantOfficerScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_RETURNED_MACHINE_PART
2018-03-01 11:20:27 -08:00
iftrue .ReturnedMachinePart
2013-09-24 00:48:58 -07:00
checkevent EVENT_MET_MANAGER_AT_POWER_PLANT
2018-03-01 11:20:27 -08:00
iftrue .MetManager
writetext PowerPlantOfficer1AThiefBrokeInText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.MetManager:
writetext PowerPlantOfficer1CouldIAskForYourCooperationText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.ReturnedMachinePart:
writetext PowerPlantOfficer1HaveToBeefUpSecurityText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
PowerPlantGymGuy1Script:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_RETURNED_MACHINE_PART
2018-03-01 11:20:27 -08:00
iftrue .ReturnedMachinePart
writetext PowerPlantGymGuy1SomeoneStoleAPartText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.ReturnedMachinePart:
writetext PowerPlantGymGuy1GeneratorUpAndRunningText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
PowerPlantGymGuy2Script:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_RETURNED_MACHINE_PART
2018-03-01 11:20:27 -08:00
iftrue .ReturnedMachinePart
writetext PowerPlantGymGuy2PowerPlantUpAndRunningText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.ReturnedMachinePart:
writetext PowerPlantGymGuy2GeneratorIsRunningAgainText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
PowerPlantOfficer2Script:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_RETURNED_MACHINE_PART
2018-03-01 11:20:27 -08:00
iftrue .ReturnedMachinePart
writetext PowerPlantOfficer2ManagerHasBeenSadAndFuriousText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.ReturnedMachinePart:
writetext PowerPlantOfficer2ManagerHasBeenCheerfulText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
PowerPlantGymGuy4Script:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_RETURNED_MACHINE_PART
2018-03-01 11:20:27 -08:00
iftrue .ReturnedMachinePart
writetext PowerPlantGymGuy4MagnetTrainConsumesElectricityText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.ReturnedMachinePart:
writetext PowerPlantGymGuy4WeCanGetMagnetTrainRunningText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:45:35 -07:00
PowerPlantManager:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_RETURNED_MACHINE_PART
2018-03-01 11:20:27 -08:00
iftrue .ReturnedMachinePart
checkitem MACHINE_PART
2018-03-01 11:20:27 -08:00
iftrue .FoundMachinePart
2013-09-24 00:48:58 -07:00
checkevent EVENT_MET_MANAGER_AT_POWER_PLANT
2018-03-01 11:20:27 -08:00
iftrue .MetManager
writetext PowerPlantManagerWhoWouldRuinMyGeneratorText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2013-09-24 00:48:58 -07:00
setevent EVENT_MET_MANAGER_AT_POWER_PLANT
clearevent EVENT_CERULEAN_GYM_ROCKET
2013-09-24 00:48:58 -07:00
clearevent EVENT_FOUND_MACHINE_PART_IN_CERULEAN_GYM
setmapscene CERULEAN_GYM, SCENE_CERULEANGYM_GRUNT_RUNS_OUT
setscene SCENE_POWERPLANT_GUARD_GETS_PHONE_CALL
end
2018-03-01 11:20:27 -08:00
.MetManager:
writetext PowerPlantManagerIWontForgiveCulpritText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.FoundMachinePart:
writetext PowerPlantManagerThatsThePartText
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
takeitem MACHINE_PART
2013-09-24 00:48:58 -07:00
setevent EVENT_RETURNED_MACHINE_PART
clearevent EVENT_SAFFRON_TRAIN_STATION_POPULATION
setevent EVENT_ROUTE_5_6_POKEFAN_M_BLOCKS_UNDERGROUND_PATH
setevent EVENT_ROUTE_24_ROCKET
2013-09-24 00:48:58 -07:00
setevent EVENT_RESTORED_POWER_TO_KANTO
clearevent EVENT_GOLDENROD_TRAIN_STATION_GENTLEMAN
2018-03-01 11:20:27 -08:00
.ReturnedMachinePart:
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_TM07_ZAP_CANNON
2018-03-01 11:20:27 -08:00
iftrue .GotZapCannon
writetext PowerPlantManagerTakeThisTMText
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
verbosegiveitem TM_ZAP_CANNON
2018-03-01 11:20:27 -08:00
iffalse .NoRoom
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_TM07_ZAP_CANNON
writetext PowerPlantManagerTM07IsZapCannonText
2015-11-25 07:16:29 -08:00
waitbutton
2018-03-01 11:20:27 -08:00
.NoRoom:
2015-11-25 07:16:29 -08:00
closetext
end
2018-03-01 11:20:27 -08:00
.GotZapCannon:
writetext PowerPlantManagerMyBelovedGeneratorText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2016-04-07 03:13:59 -07:00
Forest:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
trade NPC_TRADE_FOREST
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-25 21:01:08 -07:00
PowerPlantBookshelf:
jumpstd difficultbookshelf
PowerPlantOfficer1ApproachGymGuy2Movement:
2016-05-14 10:46:14 -07:00
step RIGHT
step RIGHT
step UP
step UP
step_end
PowerPlantOfficer1ReturnToPostMovement:
2016-05-14 10:46:14 -07:00
step DOWN
step DOWN
step LEFT
step LEFT
turn_head DOWN
step_end
PowerPlantOfficer1AThiefBrokeInText:
text "A thief broke into"
line "the POWER PLANT…"
para "What is the world"
line "coming to?"
done
PowerPlantOfficer1CeruleanShadyCharacterText:
text "I just got word"
line "from CERULEAN."
para "It appears that a"
line "shady character"
para "has been loitering"
line "around."
done
PowerPlantOfficer1CouldIAskForYourCooperationText:
text "Could I ask for"
line "your cooperation?"
done
PowerPlantOfficer1HaveToBeefUpSecurityText:
text "We'll have to beef"
line "up our security"
cont "presence."
done
PowerPlantGymGuy1SomeoneStoleAPartText:
text "Someone made off"
line "with a part that's"
para "essential for the"
line "generator."
para "Without it, the"
line "new generator's"
cont "useless!"
done
PowerPlantGymGuy1GeneratorUpAndRunningText:
text "The generator's up"
line "and running. It's"
para "making electricity"
line "to spare."
done
PowerPlantGymGuy2PowerPlantUpAndRunningText:
text "This POWER PLANT"
line "had been abandoned"
cont "in the past."
para "We got it back up"
line "and running to"
para "provide power to"
line "the MAGNET TRAIN."
done
PowerPlantGymGuy2GeneratorIsRunningAgainText:
text "The generator's"
line "running again!"
done
PowerPlantOfficer2ManagerHasBeenSadAndFuriousText:
text "The POWER PLANT's"
line "MANAGER is up"
cont "ahead."
para "But since someone"
line "wrecked the gener-"
cont "ator, he's been"
cont "both sad and"
cont "furious…"
done
PowerPlantOfficer2ManagerHasBeenCheerfulText:
text "Since the gener-"
line "ator's been fixed,"
para "the MANAGER has"
line "been cheerful."
done
PowerPlantGymGuy4MagnetTrainConsumesElectricityText:
text "The MAGNET TRAIN"
line "consumes a lot of"
cont "electricity."
para "It can't move if"
line "the new generator"
cont "isn't operating."
done
PowerPlantGymGuy4WeCanGetMagnetTrainRunningText:
text "All right! We can"
line "finally get the"
para "MAGNET TRAIN"
line "running again."
done
PowerPlantManagerWhoWouldRuinMyGeneratorText:
text "MANAGER: I, I, I'm"
line "ready to blast"
cont "someone!"
para "Who would dare"
line "ruin my generator?"
para "I spent so much"
line "time on it!"
para "If I catch him,"
line "he's going to get"
para "a taste of my ZAP"
line "CANNON!"
done
PowerPlantManagerIWontForgiveCulpritText:
text "MANAGER: I won't"
line "forgive him!"
para "The culprit can"
line "cry and apologize,"
para "but I'll still"
line "hammer him!"
para "Gahahahah!"
done
PowerPlantManagerThatsThePartText:
text "MANAGER: Ah! Yeah!"
para "That's the missing"
line "PART from my be-"
cont "loved generator!"
cont "You found it?"
done
PowerPlantManagerTakeThisTMText:
text "Wahah! Thanks!"
para "Here! Take this TM"
line "as a reward!"
done
PowerPlantManagerTM07IsZapCannonText:
text "MANAGER: TM07 is"
line "my ZAP CANNON."
para "It's a powerful"
line "technique!"
para "It's not what any-"
line "one would consider"
para "accurate, but it"
line "packs a wallop!"
done
PowerPlantManagerMyBelovedGeneratorText:
text "MANAGER: My be-"
line "loved generator!"
para "Keep pumping the"
line "electricity out!"
done
PowerPlant_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-01 19:22:07 -08:00
warp_event 2, 17, ROUTE_10_NORTH, 2
warp_event 3, 17, ROUTE_10_NORTH, 2
db 1 ; coord events
2018-02-01 19:22:07 -08:00
coord_event 5, 12, SCENE_POWERPLANT_GUARD_GETS_PHONE_CALL, PowerPlantGuardPhoneScript
db 2 ; bg events
2018-02-01 19:22:07 -08:00
bg_event 0, 1, BGEVENT_READ, PowerPlantBookshelf
bg_event 1, 1, BGEVENT_READ, PowerPlantBookshelf
db 7 ; object events
2018-03-01 11:20:27 -08:00
object_event 4, 14, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, PowerPlantOfficerScript, -1
object_event 2, 9, SPRITE_GYM_GUY, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, PowerPlantGymGuy1Script, -1
object_event 6, 11, SPRITE_GYM_GUY, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, PowerPlantGymGuy2Script, -1
object_event 9, 3, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, PowerPlantOfficer2Script, -1
2018-03-01 11:20:27 -08:00
object_event 7, 2, SPRITE_GYM_GUY, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, PowerPlantGymGuy4Script, -1
object_event 14, 10, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, PowerPlantManager, -1
2018-02-01 19:22:07 -08:00
object_event 5, 5, SPRITE_GYM_GUY, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, Forest, -1