PowerPlant_MapScriptHeader;trigger count
	db 2
	maptrigger .Trigger0
	maptrigger .Trigger1
 ;callback count
	db 0

.Trigger0
	priorityjump PowerPlantWalkToLance
.Trigger1
	end

PowerPlantHiddenItem:
	dw EVENT_POWER_PLANT_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

PowerPlantWalkToLance:
	applymovement PLAYER, PowerPlantWalkLance
	spriteface 2, LEFT
	dotrigger 1
PowerPlantLance:
	jumptextfaceplayer .text

.text
	ctxt "My child!"

	para "I will have a"
	line "mission for you"
	para "in a later version"
	line "of Prism."

	para "Keep an eye on the"
	line "Discord group and"
	para "Twitter for newer"
	line "versions!"
	done

PowerPlantWalkLance:
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_end

PowerPlantNPC1:
	ctxt "We're almost done"
	line "renovating this"
	cont "place."

	para "We need a way to"
	line "get rid of all"
	cont "the #mon later."
	done

PowerPlantNPC2:
	ctxt "Glad this equip-"
	line "ment is still"
	cont "functional."

	para "Practically runs"
	line "itself."
	done

PowerPlantNPC3:
	ctxt "There's an Ice"
	line "Gym that uses"
	para "way too many"
	line "air conditioners."

	para "That's one of the"
	line "reasons why this"
	para "place is being"
	line "maintained again."
	done

PowerPlantNPC4:
	ctxt "I will help your"
	line "father in a later"
	cont "version of Prism!"
	done

PowerPlant_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $27, $6, 1, ROUTE_60
	warp_def $27, $7, 1, ROUTE_60

	;xy triggers
	db 0

	;signposts
	db 1
	signpost 16, 10, SIGNPOST_ITEM, PowerPlantHiddenItem

	;people-events
	db 10
	person_event SPRITE_LANCE, 32, 15, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, PowerPlantLance, -1
	person_event SPRITE_FISHING_GURU, 12, 19, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, PowerPlantNPC1, -1
	person_event SPRITE_POKEFAN_M, 17, 2, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, PowerPlantNPC2, -1
	person_event SPRITE_SUPER_NERD, 37, 47, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, PowerPlantNPC3, -1
	person_event SPRITE_SUPER_NERD, 35, 15, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, PowerPlantNPC4, -1
	person_event SPRITE_POKE_BALL, 35, 1, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 2, FAST_BALL, EVENT_POWER_PLANT_ITEM_FAST_BALLS
	person_event SPRITE_POKE_BALL, 35, 26, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 1, THUNDER_RING, EVENT_POWER_PLANT_ITEM_THUNDER_RING
	person_event SPRITE_POKE_BALL, 5, 38, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 2, X_SPECIAL, EVENT_POWER_PLANT_ITEM_X_SPECIALS
	person_event SPRITE_POKE_BALL, 4, 5, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 1, ELECTIRIZER, EVENT_POWER_PLANT_ITEM_ELECTIRIZER
	person_event SPRITE_POKE_BALL, 13, 25, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_YELLOW, PERSONTYPE_TMHMBALL, TM_CRYSTAL_BOLT, 0, EVENT_POWER_PLANT_TM_CRYSTAL_BOLT
