MersonBirdHouse_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

MersonBirdHouseDude:
	faceplayer
	opentext
	checkevent EVENT_TM62
	sif true
		jumptext .after_TM_text
	writetext .before_TM_text
	givetm TM_SKY_ATTACK + RECEIVED_TM
	setevent EVENT_TM62
	closetext
	end

.before_TM_text
	db TX_COMPRESSED, $63, $bc

	db $40, $14, $93, $88, $a8, $78, $59, $0d, $08, $81
	db $c1, $ed, $98, $74, $10, $c9, $cc, $07, $2b, $e1
	db $20, $06, $74, $84, $0d, $c5
	db $66, $f0, $5a, $b7, $f6, $d9, $49, $e7

	db $88, $07, $28, $5a, $88, $33, $7e, $74, $6a, $47
	db $35, $eb, $5e, $83, $1f, $7a, $6b, $94, $e3, $48
	db $b0, $1d, $1a, $91, $c7, $cf, $f2, $9c, $69
	db $16, $f2, $b6, $96, $8b, $19, $39, $95, $0e
	db $d2, $a9, $90, $b4, $bd, $e4, $f8

	db $80, $75, $73, $03, $3e, $a2, $74, $6a, $47, $01, $05
	db $a7, $99, $d2, $4e, $84, $18, $e5, $a4, $68, $85, $0a
	db $aa, $a7, $1a, $45, $ce, $8d, $48, $e3, $a9, $90, $f1
	db $a7, $88

.after_TM_text
	db TX_COMPRESSED, $28, $54, $4d, $1c, $d8, $34, $45, $0a, $40
	db $9e, $ae, $ef, $59, $52

	db $e2, $01, $d5, $cb, $d5, $23, $44, $09, $0e, $5b, $4b
	db $23, $d6, $18, $ca, $75, $7c, $9f, $e2, $b6
	db $ac, $06, $e1, $66, $ba, $b5, $79, $47, $e0
	db $ed, $ec, $9e, $f5, $13, $60, $31, $ac
	db $10, $0c, $98, $36, $a2, $f6, $c6, $4e, $62, $be, $86
	db $a7, $ac, $30, $10, $5a, $5c, $c0, $27
	db $c6, $9a

MersonBirdHouseSwellow:
	faceplayer
	opentext
	writetext .text
	cry SWELLOW
	waitsfx
	endtext

.text
	db TX_COMPRESSED, $51, $51, $f7, $a1, $a9, $c6, $09, $8d, $ab
	db $8d, $34

MersonBirdHouseXatu:
	faceplayer
	opentext
	writetext .text
	cry XATU
	waitsfx
	endtext

.text
	db TX_COMPRESSED, $13, $5b, $db, $69, $c6, $5b, $5c, $78, $f1
	db $a6, $80

MersonBirdHousePidgeot:
	faceplayer
	opentext
	writetext .text
	cry PIDGEOT
	waitsfx
	endtext

.text
	db TX_COMPRESSED, $e1, $1e, $79, $30, $db, $8c, $77, $77, $03, $7c
	db $69, $a0

MersonBirdHouse_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $7, $2, 5, MERSON_CITY
	warp_def $7, $3, 5, MERSON_CITY

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 4
	person_event SPRITE_SWELLOW, 7, 6, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, MersonBirdHouseSwellow, -1
	person_event SPRITE_BLACK_BELT, 3, 2, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, MersonBirdHouseDude, -1
	person_event SPRITE_XATU, 2, 7, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, MersonBirdHouseXatu, -1
	person_event SPRITE_PIDGEOT, 4, 0, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, MersonBirdHousePidgeot, -1

