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

.Trigger0
	priorityjump PowerPlantWalkToLance
	end

.Trigger1
	end

PowerPlantHiddenItem:
	dw EVENT_POWER_PLANT_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

PowerPlantWalkToLance:
	applymovement 0, PowerPlantWalkLance
	spriteface 11, LEFT
	dotrigger 1
PowerPlantLanceNPC:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $15, $05, $19, $48, $fb, $9e

	db $20, $1d, $4a, $87, $de, $c4, $e8, $31, $cd
	db $79, $f1, $a1, $03, $09, $26, $01, $5c, $04, $16

	db $80, $0c, $93, $67, $76, $cd, $70, $18, $d6, $81, $84
	db $8f, $07, $09, $c2, $b1, $a1, $ff

	db $00, $13, $06, $62, $26, $92, $18, $23, $81, $24, $b4
	db $9b, $dc, $03, $43, $21, $5e, $67, $2b, $0b, $42, $26, $93

	db $20, $0a, $a8, $77, $66, $b9, $80, $57, $08, $75, $1a
	db $de, $06, $35, $a0, $61, $22, $38
	db $d3, $40

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:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $6e, $65, $c7, $37, $af, $85, $17, $32, $12
	db $1b, $cb, $32, $04, $1b, $6c, $64, $e6, $5a, $46
	db $85, $42, $3b, $ac, $9f

	db $80, $37, $38, $43, $3c, $cd, $95, $68, $29, $61
	db $7b, $93, $b8, $b1, $e6, $07, $09, $bd
	db $ea, $ab, $49, $c0, $72, $be, $12, $4e, $ed, $9a
	db $fd, $4d

PowerPlantNPC2:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $61, $77, $73, $2d, $23, $44, $31, $66, $d0, $c4, $01
	db $79, $f3, $25, $c1, $a2, $22, $c7, $de
	db $aa, $c1, $a2, $33, $63, $09, $37, $be

	db $01, $c2, $bd, $66, $c6, $ce, $f7, $a0, $a2, $da, $22
	db $1e, $1d, $a0, $fb, $87
	db $a9, $a0

PowerPlantNPC3:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $29, $26, $b3, $c5, $34, $91, $d3
	db $26, $f3, $08, $13, $f2, $d3, $b7, $1a, $41

	db $a0, $05, $5a, $0a, $58, $43, $1f, $d2, $02
	db $7b, $46, $b8, $c8, $49, $91, $d8, $c2, $43, $5a

	db $3c, $00, $a4, $ed, $e2, $81, $21, $c0, $e1, $2d
	db $26, $f2, $cf, $50, $12, $22, $54, $90, $52, $d2, $34

	db $00, $11, $dd, $64, $e0, $d1, $15, $98, $c9
	db $cb, $cf, $e8, $c9, $7a, $32, $1e, $66, $f3, $a3, $27
	db $a9, $a0

PowerPlantNPC4:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $75, $2a, $1f, $7b, $12, $7d, $11, $01, $05, $a5
	db $bd, $86, $da, $4d, $70, $64, $9b, $3b, $b6, $6b
	db $54, $0c, $6b, $40, $c2, $48, $1c, $27, $0a, $c6, $87, $f8
	db $d3, $40

PowerPlant_Item_1:
	db FAST_BALL, 2

PowerPlant_Item_2:
	db THUNDER_RING, 1

PowerPlant_Item_3:
	db X_SPECIAL, 2

PowerPlant_Item_4:
	db ELECTIRIZER, 1

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_FISHING_GURU, 12, 19, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, PowerPlantNPC1, -1
	person_event SPRITE_POKEFAN_M, 17, 2, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, PowerPlantNPC2, -1
	person_event SPRITE_SUPER_NERD, 37, 47, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, PowerPlantNPC3, -1
	person_event SPRITE_POKE_BALL, 35, 1, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, PowerPlant_Item_1, EVENT_POWER_PLANT_ITEM_1
	person_event SPRITE_POKE_BALL, 35, 26, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, PowerPlant_Item_2, EVENT_POWER_PLANT_ITEM_2
	person_event SPRITE_POKE_BALL, 5, 38, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, PowerPlant_Item_3, EVENT_POWER_PLANT_ITEM_3
	person_event SPRITE_POKE_BALL, 4, 5, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, PowerPlant_Item_4, EVENT_POWER_PLANT_ITEM_4
	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
	person_event SPRITE_SUPER_NERD, 35, 15, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, PowerPlantNPC4, -1
	person_event SPRITE_LANCE, 32, 15, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, PowerPlantLanceNPC, -1

