GoldenrodCity_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, GoldenrodCity_SetFlyFlag

GoldenrodCity_SetFlyFlag:
	setflag ENGINE_FLYPOINT_GOLDENROD_CITY
	return

GoldenrodCityHiddenItem_1:
	dw EVENT_GOLDENROD_CITY_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

GoldenrodCitySignpost1:
	db TX_COMPRESSED, $15, $de, $48, $77, $0a, $5e, $8c
	db $94, $f0, $94, $5e, $d8, $c2
	db $4a, $68

GoldenrodCitySignpost2:
	opentext
	qrcode 2
	waitbutton
	checkitem QR_READER
	iffalse GoldenrodCity_1c2a1c
	farwritetext UsingQRScannerText
	playwaitsfx SFX_CALL
	jumptext GoldenrodCitySignpost2_Text_1c2a3f

GoldenrodCitySignpost4:
	db TX_COMPRESSED, $07, $2b, $e1, $24, $61, $02
	db $7e, $9e, $16, $39, $ee, $4d, $6e, $31, $ba, $47, $64, $30
	db $42, $6b, $03
	db $a7, $84, $52, $4e, $3a, $23, $2b, $3c, $8d, $5f, $41
	db $53, $c2, $e1, $59, $dd, $82, $8c, $21, $af, $bc
	db $69, $a0

GoldenrodCitySignpost5:
	db TX_COMPRESSED, $29, $27, $14, $cd, $16, $30, $63, $8d, $a3, $b0
	db $54, $f0, $83, $84, $76, $21, $ae, $99, $2e, $36, $a7, $56
	db $fd, $34

GoldenrodCitySignpost6:
	db TX_COMPRESSED, $13, $59, $e4, $61, $07, $b9, $32, $2c, $39, $8d, $ba, $20
	db $e9, $a0

GoldenrodCitySignpost7:
	db TX_COMPRESSED, $61, $07, $b9, $32, $2c, $39, $8c, $2d, $7c
	db $e9, $e1, $36, $85, $64, $35
	db $89, $ac
	db $0e, $9e, $13, $94, $2d, $2e, $70, $f7, $41, $72, $b0, $b4, $4c, $f1
	db $a6, $80

GoldenrodCitySignpost8:
GoldenrodCitySignpost9:
	db TX_COMPRESSED, $73, $93, $26, $be, $56, $16, $89
	db $9a, $78, $42, $e2, $5a, $f4, $8c
	db $9d, $34

GoldenrodCitySignpost10:
	jumpstd pokecentersign

GoldenrodCityNPC1:
	jumptextfaceplayer GoldenrodCityNPC1_Text_1c287a

GoldenrodCityNPC2:
	jumptextfaceplayer GoldenrodCityNPC2_Text_1c25c4

GoldenrodCityNPC3:
	jumptextfaceplayer GoldenrodCityNPC3_Text_1c2979

GoldenrodCityNPC4:
	jumptextfaceplayer GoldenrodCityNPC4_Text_1c27eb

GoldenrodCityNPC5:
	jumptextfaceplayer GoldenrodCityNPC5_Text_1c28e3

GoldenrodCityNPC6:
	jumptextfaceplayer GoldenrodCityNPC6_Text_1c266a

GoldenrodCityNPC7:
	jumptextfaceplayer GoldenrodCityNPC7_Text_1c2797

GoldenrodCityNPC8:
	jumptextfaceplayer GoldenrodCityNPC8_Text_1c26d8

GoldenrodCity_1c2a1c:
	closetext
	end

GoldenrodCitySignpost2_Text_1c2a3f:
	db TX_COMPRESSED, $17, $3e, $6b, $de, $e6, $0b, $b9, $e6, $01
	db $79, $c8, $16, $54, $a0, $c9, $10, $fe, $f7
	db $aa, $bb, $aa
	db $47, $4d

GoldenrodCitySignpost9_Text_1c244b:


GoldenrodCityNPC1_Text_1c287a:
	db TX_COMPRESSED, $29, $23, $44, $7f, $79, $21, $dc, $b5, $e8
	db $c8, $f0, $d1, $35, $fd, $13, $63, $27, $3c

	db $40, $3a, $b9, $c8, $4d, $11, $a1
	db $0f, $3e, $16, $89, $7a, $32, $23, $f1, $a2, $64

	db $d6, $02, $d2, $70, $2c, $9e, $93, $f3, $49
	db $97, $8c, $18, $d6, $0a, $a4, $9a, $ce, $0c
	db $8a, $95, $9d, $d4, $66, $4e
	db $34, $d0

GoldenrodCityNPC2_Text_1c25c4:
	db TX_COMPRESSED, $75, $2a, $d4, $44, $6e, $65, $49, $32, $4b, $49
	db $bd, $93, $11, $ab, $b7, $cc, $97, $11, $61, $59
	db $aa, $ab, $51, $32, $68, $b5, $84, $11, $e7

	db $c0, $18, $86, $a3, $06, $35, $fe, $5a, $4c, $11, $71
	db $bc, $ad, $a1, $f7, $23, $27, $33, $61, $0e
	db $a5, $41, $21, $f1

	db $00, $52, $4e, $2b, $d4, $1b, $e6, $4b
	db $79, $09, $0b, $5d, $cc, $56, $73, $01, $90

	db $fe, $01, $5b, $57, $08, $15, $61, $c8, $28, $9d
	db $43, $ca, $cc, $c9, $32, $1a, $89, $2d, $26, $b3
	db $54, $32, $40, $47, $ab, $47
	db $a9, $a0

GoldenrodCityNPC3_Text_1c2979:
	db TX_COMPRESSED, $75, $84, $04, $16, $97, $01, $ca, $f8
	db $48, $f0, $d1, $13, $a2, $04, $02, $86, $40, $b5, $ca

	db $7e, $03, $65, $41, $7f, $49, $2a, $1f, $7b, $2c, $f5, $94
	db $bc, $3b, $9b, $10, $20, $d9, $1e, $f6, $3e, $10, $63

	db $f0, $01, $50, $a2, $e0, $39, $5f, $09, $25, $41, $25
	db $31, $e5, $67, $35, $5f, $4e, $58, $67, $4f, $56

	db $40, $16, $9d, $b8, $f8, $41, $8e, $60, $b0
	db $be, $f7, $4c, $18, $fa, $32, $73, $1a, $11, $f8, $15
	db $aa, $30, $63, $24, $28, $55, $1c
	db $69, $a0

GoldenrodCityNPC4_Text_1c27eb:
	db TX_COMPRESSED, $29, $26, $b3, $8d, $20, $f3, $2c, $31, $59
	db $bd, $b1, $c9, $b9, $18, $61, $41, $a8, $d7

	db $e0, $1c, $02, $66, $09, $19, $25, $5a, $89, $69
	db $37, $99, $08, $7a, $68, $be

	db $20, $1d, $44, $9e, $af, $31, $26, $e1
	db $eb, $c8, $bd, $5d, $cd, $84, $3a, $a2, $12, $1a

	db $80, $54, $93, $24, $b4, $98, $28, $b3, $56, $d0, $fb
	db $97, $ad, $27, $1c, $9b, $91, $86, $14, $1a, $8d, $7e

	db $00, $ea, $33, $a4, $a6, $4a, $b4, $77
	db $c6, $9a

GoldenrodCityNPC5_Text_1c28e3:
	db TX_COMPRESSED, $75, $16, $6f, $9b, $ea, $cd, $72, $a4, $99
	db $1e, $28, $f5, $f8, $e4, $0b, $2a, $47

	db $60, $2d, $63, $3c, $cb, $0c, $bd, $52
	db $37, $82, $0c, $6b, $96, $93, $96, $1a, $89

	db $e0, $15, $c6, $52, $3e, $e6, $13, $5f, $3c, $c6, $10, $7b
	db $97, $91, $a0, $c7, $98, $60, $c6, $b0, $4a, $c3, $90, $5e
	db $a6, $80

GoldenrodCityNPC6_Text_1c266a:
	db TX_COMPRESSED, $07, $86, $e1, $83, $19, $26
	db $91, $e3, $d5, $da, $45, $9b, $5a, $a4, $71, $9d
	db $22, $a4, $58, $44, $46, $91

	db $e0, $00, $f0, $c7, $f6, $ec, $d7, $2a, $4e
	db $db, $c9, $d1, $02, $0c, $88, $fc, $a8, $e5, $43, $ef

	db $40, $6f, $6a, $d0, $48, $88, $bd, $26, $65, $ef
	db $7a, $f6, $93, $31, $17, $a0, $a7, $21, $ee
	db $7d, $4d

GoldenrodCityNPC7_Text_1c2797:
	db TX_COMPRESSED, $75, $12, $7a, $bc, $cb, $4e, $df, $e6, $1a
	db $b7, $b6, $ad, $05, $f9, $b1, $02, $0d, $91, $ef

	db $40, $2c, $64, $e6, $54, $3e, $f6, $04, $41, $92, $34
	db $21, $ed, $82, $02, $bb, $de, $cb
	db $0a, $ad, $20, $6d, $26, $b9, $91, $be, $64, $40, $c2, $4f

	db $00, $29, $3b, $72, $a0, $b5, $dc, $c5, $67, $10
	db $17, $86, $4b, $35, $9a, $2c, $64, $e6, $58
	db $55, $03, $0d, $03, $be
	db $34, $d0

GoldenrodCityNPC8_Text_1c26d8:
	db TX_COMPRESSED, $74, $59, $10, $15, $ac, $17, $e3, $a8, $ce, $92
	db $98, $f6, $f7, $a1, $aa, $02, $0b, $52, $c3, $04, $6a

	db $10, $01, $a2, $74, $d0, $88, $08, $2d, $17, $1c
	db $d7, $84, $c8, $53, $61, $8c, $8e, $c6, $26, $cc, $9e

	db $00, $dc, $e2, $77, $32, $c3, $19, $5e, $b2
	db $a4, $f6, $43, $51, $20, $49, $10, $6c, $b4, $b1, $d8, $2f

	db $80, $56, $6c, $eb, $48, $38, $b6, $9f, $0a
	db $de, $4e, $a2, $0e, $e5, $a7, $6e

	db $68, $06, $56, $37, $c6, $4d, $ec, $c1, $61, $7e
	db $6b, $d8, $6a, $f6, $ad, $05, $16, $7c, $8c, $24

	db $00, $34, $44, $8f, $23, $27, $30, $2d
	db $5b, $c9, $35, $9f
	db $a9, $a0


GoldenrodCity_MapEventHeader ;filler
	db 0, 0

;warps
	db 13
	warp_def $7, $8, 1, GOLDENROD_GYM
	warp_def $17, $17, 1, GOLDENROD_MART
	warp_def $17, $f, 1, GOLDENROD_POKECENTER
	warp_def $5, $21, 1, GOLDENROD_BILL
	warp_def $d, $9, 1, GOLDENROD_MAGNET_TRAIN
	warp_def $10, $4, 3, GOLDENROD_CAPE_GATE
	warp_def $11, $4, 4, GOLDENROD_CAPE_GATE
	warp_def $17, $1f, 1, GOLDENROD_HAPPINESS_MOVE_TEACHER
	warp_def $23, $9, 9, SAXIFRAGE_POKECENTER
	warp_def $23, $18, 1, GOLDENROD_MAGNET_TRAIN
	warp_def $17, $7, 1, GOLDENROD_GAME_CORNER
	warp_def $5, $d, 1, GOLDENROD_UNDERGROUND_ENTRY_A
	warp_def $1d, $b, 1, GOLDENROD_UNDERGROUND_ENTRY_B

	;xy triggers
	db 0

	;signposts
	db 10
	signpost 14, 8, SIGNPOST_LOAD, GoldenrodCitySignpost1
	signpost 26, 26, SIGNPOST_READ, GoldenrodCitySignpost2
	signpost 10, 33, SIGNPOST_ITEM, GoldenrodCityHiddenItem_1
	signpost 8, 10, SIGNPOST_LOAD, GoldenrodCitySignpost4
	signpost 18, 22, SIGNPOST_LOAD, GoldenrodCitySignpost5
	signpost 18, 6, SIGNPOST_LOAD, GoldenrodCitySignpost6
	signpost 24, 6, SIGNPOST_LOAD, GoldenrodCitySignpost7
	signpost 6, 14, SIGNPOST_LOAD, GoldenrodCitySignpost8
	signpost 30, 12, SIGNPOST_LOAD, GoldenrodCitySignpost9
	signpost 23, 16, SIGNPOST_READ, GoldenrodCitySignpost10

	;people-events
	db 8
	person_event SPRITE_POKEFAN_M, 10, 34, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_RED, 0, 0, GoldenrodCityNPC1, -1
	person_event SPRITE_YOUNGSTER, 16, 12, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, 0, 0, GoldenrodCityNPC2, -1
	person_event SPRITE_COOLTRAINER_F, 18, 29, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 8 + PAL_OW_GREEN, 0, 0, GoldenrodCityNPC3, -1
	person_event SPRITE_COOLTRAINER_F, 26, 9, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, 0, 0, GoldenrodCityNPC4, -1
	person_event SPRITE_YOUNGSTER, 28, 27, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, 0, 0, GoldenrodCityNPC5, -1
	person_event SPRITE_LASS, 8, 18, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 1, -1, -1, 8 + PAL_OW_GREEN, 0, 0, GoldenrodCityNPC6, -1
	person_event SPRITE_GRAMPS, 25, 19, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 1, -1, -1, PAL_OW_RED, 0, 0, GoldenrodCityNPC7, -1
	person_event SPRITE_OFFICER, 4, 19, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_BLUE, 0, 0, GoldenrodCityNPC8, -1

