ToreniaCity_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, Torenia_SetFlyFlag

Torenia_SetFlyFlag:
	setflag ENGINE_FLYPOINT_TORENIA_CITY
	return

ToreniaCitySignpost1:
	db TX_COMPRESSED, $07, $2b, $e1, $24, $61, $02
	db $7e, $9e, $16, $39, $ee, $4d, $6e, $30, $5d, $91, $a0, $24
	db $a6, $80

ToreniaCitySignpost2:
	db TX_COMPRESSED, $15, $de, $48, $77, $0a, $5e, $8c
	db $94, $d0

ToreniaCitySignpost3:
	db TX_COMPRESSED, $29, $27, $16, $7c, $8c, $24
	db $c5, $4f, $08, $10, $5a, $27, $26, $8b, $8c, $8e, $c1
	db $53, $40

ToreniaCitySignpost4:
	jumpstd pokecentersign

ToreniaCitySignpost5:
	jumpstd martsign

ToreniaCitySignpost6:
	db TX_COMPRESSED, $e1, $d6, $52, $34, $0e, $31, $de
	db $f6, $9a

ToreniaCityNPC2:
	jumptextfaceplayer ToreniaCityNPC2_Text_120ddf

ToreniaCityNPC3:
	jumptextfaceplayer ToreniaCityNPC3_Text_120e49

ToreniaCityNPC4:
	jumptextfaceplayer ToreniaCityNPC4_Text_120ea5

ToreniaCityNPC5:
	jumptextfaceplayer ToreniaCityNPC5_Text_120f1b

ToreniaCityNPC6:
	fruittree 18

ToreniaCity_Item_1:
	db PP_UP, 1

ToreniaCity_Item_2:
	db RARE_CANDY, 1

ToreniaCityNPC2_Text_120ddf:
	db TX_COMPRESSED, $29, $27, $38, $75, $94, $8d, $03, $8a, $c3, $ab
	db $cb, $c3, $44, $40, $63, $ed, $32, $99, $83, $44

	db $e2, $01, $d4, $d6, $6d, $ad, $ef, $41, $46, $75, $ae, $53
	db $6f, $6c, $21, $d5, $01, $ca, $f8
	db $48, $aa, $d2, $6b, $38, $b3, $64, $c9, $7d, $05
	db $c6, $9a

ToreniaCityNPC3_Text_120e49:
	db TX_COMPRESSED, $c7, $18, $30, $c9, $cc, $49, $ac, $e6
	db $db, $db, $2c, $6f, $9c, $e8, $d4, $8e, $5a, $46, $8a, $78

	db $00, $3a, $bc, $53, $a3, $52, $38, $ac, $c6, $4e, $66
	db $bc, $23, $57, $70, $38, $44, $8d, $16, $15, $82
	db $f5, $34

ToreniaCityNPC4_Text_120ea5:
	db TX_COMPRESSED, $c7, $d4, $5c, $b1, $be, $71, $d4, $40, $80, $a9
	db $1b, $d6, $19, $69, $38, $c2, $04, $fc, $c7, $3d, $c9, $af
	db $ea, $92, $71, $1a, $3c, $c4, $9c, $a8, $68, $49
	db $e5, $52, $4e, $32, $16, $bb, $99, $95, $9e, $bf

	db $e0, $0d, $d3, $b7, $8a, $5a, $4e, $2b, $1f, $33, $27, $bd
	db $7b, $55, $85, $ab, $99, $59, $eb, $e3, $27, $34

	db $a0, $38, $16, $7a, $fa, $22, $19, $d5, $9c, $7c
	db $fd, $4d

ToreniaCityNPC5_Text_120f1b:
	db TX_COMPRESSED, $29, $23, $44, $64, $76, $0a, $0d, $13, $90, $90
	db $9a, $f2, $b3, $89, $6b, $93, $81, $23, $27, $2d
	db $26, $a8, $e9, $d1, $1a, $44, $0c, $24, $83, $44, $c8, $48, $7e
	db $a6, $80

ToreniaCity_MapEventHeader ;filler
	db 0, 0

;warps
	db 12
	warp_def $13, $15, 1, TORENIA_MART
	warp_def $1f, $22, 1, TORENIA_GYM
	warp_def $5, $9, 2, LAUREL_FOREST_GATES
	warp_def $b, $1c, 1, TORENIA_MAGNET_TRAIN
	warp_def $b, $d, 1, TORENIA_POKECENTER
	warp_def $13, $10, 1, TORENIA_PACHISI
	warp_def $b, $17, 1, TORENIA_DRIFLOOM_TRADE
	warp_def $c, $21, 1, ROUTE_82_GATE
	warp_def $d, $21, 2, ROUTE_82_GATE
	warp_def $13, $9, 1, TORENIA_CELEBRITY
	warp_def $1b, $b, 1, TORENIA_GATE
	warp_def $1b, $c, 2, TORENIA_GATE

	;xy triggers
	db 0

	;signposts
	db 6
	signpost 31, 31, SIGNPOST_LOAD, ToreniaCitySignpost1
	signpost 12, 30, SIGNPOST_LOAD, ToreniaCitySignpost2
	signpost 6, 10, SIGNPOST_LOAD, ToreniaCitySignpost3
	signpost 11, 14, SIGNPOST_READ, ToreniaCitySignpost4
	signpost 19, 22, SIGNPOST_READ, ToreniaCitySignpost5
	signpost 19, 13, SIGNPOST_LOAD, ToreniaCitySignpost6

	;people-events
	db 7
	person_event SPRITE_PICNICKER, 23, 12, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 8 + PAL_OW_BLUE, 0, 0, ToreniaCityNPC2, -1
	person_event SPRITE_PICNICKER, 14, 24, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_PURPLE, 0, 0, ToreniaCityNPC3, -1
	person_event SPRITE_GRAMPS, 11, 6, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 1, -1, -1, PAL_OW_RED, 0, 0, ToreniaCityNPC4, -1
	person_event SPRITE_YOUNGSTER, 18, 5, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 8 + PAL_OW_GREEN, 0, 0, ToreniaCityNPC5, -1
	person_event SPRITE_FRUIT_TREE, 24, 31, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, 0, 0, ToreniaCityNPC6, -1
	person_event SPRITE_POKE_BALL, 31, 0, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, 1, 0, ToreniaCity_Item_1, EVENT_TORENIA_CITY_ITEM_1
	person_event SPRITE_POKE_BALL, 7, 30, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, 1, 0, ToreniaCity_Item_2, EVENT_TORENIA_CITY_ITEM_2

