MoragaTown_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1
	dbw 5, .set_fly_flag

.set_fly_flag
	setflag ENGINE_FLYPOINT_MORAGA_TOWN
	return

MoragaTownHiddenItem:
	dw EVENT_MORAGA_TOWN_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

MoragaTown_Item:
	db KINGS_ROCK, 1

MoragaTownGymSign:
	db TX_COMPRESSED, $07, $2b, $e1, $24, $61, $02
	db $7e, $9e, $16, $39, $ee, $4d, $6e, $33, $1c, $23
	db $40, $9a, $c0
	db $e9, $e1, $14, $93, $89, $d5, $be, $12, $0c, $2d
	db $22, $9e, $17, $2b, $d4, $20, $14, $29, $7a, $32, $1a, $f8
	db $d3, $40

MoragaTownPokecenterSign:
	jumpstd pokecentersign

MoragaTownMartSign:
	jumpstd martsign

MoragaTownSignpost1:
	db TX_COMPRESSED, $07, $86, $e2, $cf, $7b, $d0, $53, $65, $86, $a2
	db $53, $c2, $db, $9b, $de
	db $fa, $9a

MoragaTownSignpost2:
	db TX_COMPRESSED, $6d, $e8, $50, $79, $98, $05
	db $74, $f0, $96, $64, $08, $36, $d8, $c2, $44
	db $7a, $9a

MoragaTownNPC1:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $6e, $90, $52, $a0, $b5, $dc, $c4, $05, $f3, $09
	db $0d, $e1, $1d, $d2, $5c, $b4, $9c, $c3, $a1, $a8, $d6

	db $80, $03, $24, $c1, $61, $25, $c0, $e1, $2d
	db $26, $f1, $92, $d7, $a4, $64, $e5, $5a, $0a

	db $94, $01, $49, $30, $51, $48, $cc, $44, $e4, $ee, $c6, $4e
	db $5e, $45, $98, $81, $07, $98, $12, $71
	db $a6, $80

MoragaTownNPC2:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $75, $12, $7a, $bc, $cb, $49, $82, $2e
	db $37, $84, $35, $76, $32, $73, $36, $3e, $d2, $0d, $a7

	db $c0, $0c, $92, $d2, $34, $45, $63
	db $e5, $e5, $6d, $0f, $b9, $19, $39

	db $f0, $06, $e7, $19, $0b, $5d, $cc, $69, $07, $10, $17
	db $cd, $e6, $5a, $ed, $b4, $b3
	db $f5, $34

MoragaTownNPC3:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $29, $26, $83, $84, $d5, $ac, $35
	db $3c, $23, $6d, $28, $81, $c2, $cc

	db $80, $19, $59, $ed, $9c, $d2, $10, $20, $86, $4e
	db $5e, $ab, $7b, $d4, $40, $e1, $04, $18, $44, $74

	db $fc, $01, $84, $77, $63, $27, $32, $d2, $6f, $cb
	db $0b, $cf, $84, $18, $e0, $d1, $13, $ab, $c9

	db $ac, $05, $a7, $49, $2a, $d5, $21, $93, $98, $d0, $89
	db $af, $28, $20, $57, $dd, $a7
	db $7d, $4d

MoragaTownNPC4:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $6e, $90, $52, $d2, $60, $a5, $41, $25
	db $31, $ee, $9d, $cd, $24, $0f, $73, $1f, $d2

	db $00, $06, $1a, $07, $72, $d2, $73, $90, $4f, $c1
	db $a1, $e5, $66, $08, $24, $cc, $7c, $f8
	db $d3, $40

MoragaTown_MapEventHeader ;filler
	db 0, 0

;warps
	db 8
	warp_def $21, $2b, 2, MORAGA_GATE_UNDERGROUND
	warp_def $15, $3, 1, MORAGA_MART
	warp_def $3, $5, 1, MORAGA_TM_MACHINE
	warp_def $5, $1e, 1, MORAGA_GYM
	warp_def $f, $9, 1, MORAGA_HOUSE
	warp_def $7, $27, 1, MORAGA_POKECENTER
	warp_def $1d, $5, 1, MORAGA_DINER
	warp_def $13, $28, 3, SILK_TUNNEL_1F

	;xy triggers
	db 0

	;signposts
	db 6
	signpost 7, 29, SIGNPOST_LOAD, MoragaTownGymSign
	signpost 7, 40, SIGNPOST_READ, MoragaTownPokecenterSign
	signpost 21, 4, SIGNPOST_READ, MoragaTownMartSign
	signpost 29, 25, SIGNPOST_LOAD, MoragaTownSignpost1
	signpost 27, 33, SIGNPOST_LOAD, MoragaTownSignpost2
	signpost 6, 10, SIGNPOST_ITEM, MoragaTownHiddenItem

	;people-events
	db 5
	person_event SPRITE_POKE_BALL, 12, 12, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, MoragaTown_Item, EVENT_MORAGA_TOWN_ITEM_1
	person_event SPRITE_TEACHER, 22, 40, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, MoragaTownNPC1, -1
	person_event SPRITE_POKEFAN_F, 28, 20, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, MoragaTownNPC2, -1
	person_event SPRITE_COOLTRAINER_M, 11, 5, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, MoragaTownNPC3, -1
	person_event SPRITE_SAGE, 6, 27, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, MoragaTownNPC4, -1

