PhaceliaTM20_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

PhaceliaTM20NPC1:
	faceplayer
	opentext
	checkevent EVENT_GET_TM20
	iftrue PhaceliaTM20_398054
	writetext PhaceliaTM20NPC1_Text_39805a
	waitbutton
	givetm 20 + RECEIVED_TM
	setevent EVENT_GET_TM20
	closetext
	end

PhaceliaTM20_398054:
	jumptext PhaceliaTM20_398054_Text_3980ae

PhaceliaTM20NPC1_Text_39805a:
	db TX_COMPRESSED, $ac, $99, $59, $e2, $96, $16, $b9, $4f
	db $de, $58, $f9, $4d, $d2

	db $80, $29, $23, $44, $7c, $20, $c7, $2a, $1f
	db $7a, $f2, $4f, $a2, $20, $20, $b4, $b8, $0e, $57, $c2
	db $45, $46, $4c, $b4, $b3, $86, $0c, $64, $89, $1a
	db $15, $58, $5a, $e5, $26, $8b, $8f, $84, $18, $d1
	db $ea, $68

PhaceliaTM20_398054_Text_3980ae:
	db TX_COMPRESSED, $28, $55, $cd, $16, $20, $d1, $05, $c4, $cb, $4b, $3e

	db $20, $1b, $a4, $c9, $07, $71, $a4, $1a, $25, $a4, $68
	db $79, $f0, $83, $1f, $e0, $ee, $54, $12, $53, $27, $27
	db $6a, $94, $88, $16, $54, $8f, $30, $2d, $5c, $56
	db $09, $50, $20, $b4, $b9, $80, $4f, $14, $21, $d3
	db $b6, $a9, $f0, $83, $1f
	db $a9, $a0

PhaceliaTM20_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $7, $2, 8, PHACELIA_TOWN
	warp_def $7, $3, 8, PHACELIA_TOWN

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 1
	person_event SPRITE_COOLTRAINER_M, 4, 5, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, 0, 0, PhaceliaTM20NPC1, -1

