GoldenrodUnderground_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

GoldenrodUndergroundSignpost1:
	opentext
	writetext GoldenrodUndergroundSignpost1_Text_326e22
	endtext

GoldenrodUndergroundNPC1:
	farjump GoldenrodUnderground_1181d6

GoldenrodUndergroundNPC2:
	farjump GoldenrodUnderground_118129

GoldenrodUnderground_Trainer_1:
	trainer EVENT_GOLDENROD_UNDERGROUND_TRAINER_1, SUPER_NERD, 6, GoldenrodUnderground_Trainer_1_Text_326f1e, GoldenrodUnderground_Trainer_1_Text_326f3d, $0000, .Script

.Script:
	end_if_just_battled
	opentext
	writetext GoldenrodUnderground_Trainer_1_Script_Text_326f54
	endtext

GoldenrodUnderground_Trainer_2:
	trainer EVENT_GOLDENROD_UNDERGROUND_TRAINER_2, OFFICER, 2, GoldenrodUnderground_Trainer_2_Text_326e52, GoldenrodUnderground_Trainer_2_Text_326e8f, $0000, .Script

.Script:
	end_if_just_battled
	opentext
	writetext GoldenrodUnderground_Trainer_2_Script_Text_326e99
	endtext

GoldenrodUnderground_Trainer_3:
	trainer EVENT_GOLDENROD_UNDERGROUND_TRAINER_3, SUPER_NERD, 7, GoldenrodUnderground_Trainer_3_Text_326fb3, GoldenrodUnderground_Trainer_3_Text_326fda, $0000, .Script

.Script:
	end_if_just_battled
	opentext
	writetext GoldenrodUnderground_Trainer_3_Script_Text_326ff4
	endtext

GoldenrodUndergroundNPC3:
	faceplayer
	opentext
	jumptextfaceplayer GoldenrodUndergroundNPC3_Text_327e7f
	endtext

GoldenrodUnderground_1181d6:
	opentext
	checkcode VAR_WEEKDAY
	if_equal 0, GoldenrodUnderground_1181e8
	if_equal 3, GoldenrodUnderground_1181e8
	if_equal 5, GoldenrodUnderground_1181e8
	jump GoldenrodUnderground_1182c8

GoldenrodUnderground_118129:
	opentext
	checkcode VAR_WEEKDAY
	if_equal 2, GoldenrodUnderground_11813b
	if_equal 4, GoldenrodUnderground_11813b
	if_equal 6, GoldenrodUnderground_11813b
	jump GoldenrodUnderground_1182c8

GoldenrodUnderground_1181e8:
	checkflag EVENT_GOLDENROD_HAIRCUT_BROTHERS
	iftrue GoldenrodUnderground_11827d
	special PlaceMoneyTopRight
	writetext GoldenrodUnderground_1181e8_Text_118726
	yesorno
	iffalse GoldenrodUnderground_118271
	checkmoney 0, 300
	if_equal 2, GoldenrodUnderground_118277
	writetext GoldenrodUnderground_1181e8_Text_1187bb
	buttonsound
	special Special_OlderHaircutBrother
	if_equal 0, GoldenrodUnderground_118271
	if_equal 1, GoldenrodUnderground_118271
	setflag EVENT_GOLDENROD_HAIRCUT_BROTHERS
	if_equal 2, GoldenrodUnderground_11821e
	if_equal 3, GoldenrodUnderground_11822a
	jump GoldenrodUnderground_118236

GoldenrodUnderground_1182c8:
	writetext GoldenrodUnderground_1182c8_Text_1188ce
	endtext

GoldenrodUnderground_11813b:
	checkflag EVENT_GOLDENROD_HAIRCUT_BROTHERS
	iftrue GoldenrodUnderground_1181d0
	special PlaceMoneyTopRight
	writetext GoldenrodUnderground_11813b_Text_1185c3
	yesorno
	iffalse GoldenrodUnderground_1181c4
	checkmoney 0, 500
	if_equal 2, GoldenrodUnderground_1181ca
	writetext GoldenrodUnderground_11813b_Text_118664
	buttonsound
	special Special_YoungerHaircutBrother
	if_equal 0, GoldenrodUnderground_1181c4
	if_equal 1, GoldenrodUnderground_1181c4
	setflag EVENT_GOLDENROD_HAIRCUT_BROTHERS
	if_equal 2, GoldenrodUnderground_118171
	if_equal 3, GoldenrodUnderground_11817d
	jump GoldenrodUnderground_118189

GoldenrodUnderground_11827d:
	writetext GoldenrodUnderground_11827d_Text_118845
	endtext

GoldenrodUnderground_118271:
	writetext GoldenrodUnderground_118271_Text_11880c
	endtext

GoldenrodUnderground_118277:
	writetext GoldenrodUnderground_118277_Text_118825
	endtext

GoldenrodUnderground_11821e:
	setevent EVENT_0
	clearevent EVENT_1
	clearevent EVENT_2
	jump GoldenrodUnderground_118242

GoldenrodUnderground_11822a:
	clearevent EVENT_0
	setevent EVENT_1
	clearevent EVENT_2
	jump GoldenrodUnderground_118242

GoldenrodUnderground_118236:
	clearevent EVENT_0
	clearevent EVENT_1
	setevent EVENT_2
	jump GoldenrodUnderground_118242

GoldenrodUnderground_1181d0:
	writetext GoldenrodUnderground_1181d0_Text_1186f5
	endtext

GoldenrodUnderground_1181c4:
	writetext GoldenrodUnderground_1181c4_Text_1186b4
	endtext

GoldenrodUnderground_1181ca:
	writetext GoldenrodUnderground_1181ca_Text_1186d3
	endtext

GoldenrodUnderground_118171:
	setevent EVENT_0
	clearevent EVENT_1
	clearevent EVENT_2
	jump GoldenrodUnderground_118195

GoldenrodUnderground_11817d:
	clearevent EVENT_0
	setevent EVENT_1
	clearevent EVENT_2
	jump GoldenrodUnderground_118195

GoldenrodUnderground_118189:
	clearevent EVENT_0
	clearevent EVENT_1
	setevent EVENT_2
	jump GoldenrodUnderground_118195

GoldenrodUnderground_118242:
	takemoney 0, 300
	special PlaceMoneyTopRight
	writetext GoldenrodUnderground_118242_Text_1187d8
	waitbutton
	closetext
	special Special_BattleTowerFade
	playwaitsfx SFX_HEAL_POKEMON
	special FadeInPalettes
	opentext
	writetext GoldenrodUnderground_118242_Text_1187f4
	waitbutton
	checkevent EVENT_0
	iftrue GoldenrodUnderground_118283
	checkevent EVENT_1
	iftrue GoldenrodUnderground_11828c
	jump GoldenrodUnderground_118295

GoldenrodUnderground_118195:
	takemoney 0, 500
	special PlaceMoneyTopRight
	writetext GoldenrodUnderground_118195_Text_118682
	waitbutton
	closetext
	special Special_BattleTowerFade
	playwaitsfx SFX_HEAL_POKEMON
	special FadeInPalettes
	opentext
	writetext GoldenrodUnderground_118195_Text_1186a2
	waitbutton
	checkevent EVENT_0
	iftrue GoldenrodUnderground_118283
	checkevent EVENT_1
	iftrue GoldenrodUnderground_11828c
	jump GoldenrodUnderground_118295

GoldenrodUnderground_118283:
	writetext GoldenrodUnderground_118283_Text_118889
	special PlayCurMonCry
	endtext

GoldenrodUnderground_11828c:
	writetext GoldenrodUnderground_11828c_Text_1188a6
	special PlayCurMonCry
	endtext

GoldenrodUnderground_118295:
	writetext GoldenrodUnderground_118295_Text_1188b8
	special PlayCurMonCry
	endtext

GoldenrodUndergroundSignpost1_Text_326e22:
	db TX_COMPRESSED, $07, $bb, $82, $e0, $79, $4e, $47, $2c, $12, $17, $39, $5d, $83, $f8
	db $1e, $29, $8b, $a5, $13, $85, $db, $a0, $79
	db $54, $d0

GoldenrodUnderground_Trainer_1_Text_326f1e:
	db TX_COMPRESSED, $75, $2a, $d2, $5c, $b0, $c4, $19, $c0, $41, $69
	db $6f, $2f, $56, $70, $1c, $af, $84, $9c
	db $69, $a0

GoldenrodUnderground_Trainer_1_Text_326f3d:
	db TX_COMPRESSED, $07, $86, $2c, $f5, $01, $24, $b0, $ce, $4e
	db $de, $7f, $73
	db $c6, $9a

GoldenrodUnderground_Trainer_1_Script_Text_326f54:
	db TX_COMPRESSED, $72, $85, $a2, $e3, $96, $b0, $43, $27, $32
	db $c2, $f3, $21, $7c, $47, $4e, $ce, $5a
	db $4d, $50, $3f, $7b, $4e, $06, $70, $1d, $3b

	db $4a, $01, $b8, $6a, $fc, $b4, $ed, $e2
	db $9a, $f0, $31, $ac, $14, $d7, $d5, $8e, $c6, $16
	db $90, $ab, $90, $ef, $78
	db $d3, $40

GoldenrodUnderground_Trainer_2_Text_326e52:
	db TX_COMPRESSED, $75, $32, $12, $53, $22, $cd, $90, $f2, $41, $89, $b3
	db $78, $10, $5a

	db $f0, $07, $51, $21, $10, $70, $10, $5a, $2e, $38, $40
	db $db, $cc, $eb, $48, $19, $39, $9a, $40
	db $4a, $ad, $61, $69, $5f, $4f
	db $d4, $d0

GoldenrodUnderground_Trainer_2_Text_326e8f:
	db TX_COMPRESSED, $ad, $32, $a3, $ef
	db $7d, $4d

GoldenrodUnderground_Trainer_2_Script_Text_326e99:
	db TX_COMPRESSED, $13, $06, $62, $25, $a4, $e2, $bd, $bb, $e9
	db $a1, $e6, $46, $0c, $3e, $8c, $4d, $9e, $60, $57, $0f, $a8

	db $30, $0e, $9c, $3d, $88, $3d, $ec, $b4, $8d
	db $11, $e1, $1d, $d6, $4e, $07, $0c

	db $3c, $01, $ca, $16, $a5, $5a, $4b, $96, $9d, $b8, $12
	db $3c, $08, $2d, $2e, $32, $12, $21, $91, $85, $a4, $52
	db $d3, $40

GoldenrodUnderground_Trainer_3_Text_326fb3:
	db TX_COMPRESSED, $63, $a0, $c7, $01, $05, $a8, $ac, $cc, $92
	db $c2, $f5, $a4, $e1, $0e, $a8, $c2, $d7
	db $cd, $53, $68, $56, $43, $5d
	db $2d, $34

GoldenrodUnderground_Trainer_3_Text_326fda:
	db TX_COMPRESSED, $75, $02, $4e, $82, $9a, $85, $23, $cc
	db $d7, $85, $9b, $46, $8b, $18, $49
	db $c6, $9a

GoldenrodUnderground_Trainer_3_Script_Text_326ff4:
	db TX_COMPRESSED, $72, $85, $a8, $ce, $92, $08, $ee, $82, $98, $0c, $18
	db $de, $e7, $5f, $34, $4d, $b9, $69
	db $35, $4c, $2d, $7c, $e3, $68, $56, $43, $5f
	db $1a, $68

GoldenrodUndergroundNPC3_Text_327e7f:
	db TX_COMPRESSED, $29, $21, $41, $c2, $97, $a3, $21, $ad
	db $0f, $64, $35, $12, $5a, $4d, $67, $19, $d2
	db $2a, $56, $71, $a2, $2d, $ae, $82
	db $f5, $34

GoldenrodUnderground_1181e8_Text_118726:
	db TX_COMPRESSED, $6e, $7d, $64, $2f, $9c, $b0, $cb, $49
	db $bc, $0e, $57, $c2, $48, $a3, $7a, $12, $71

	db $00, $e8, $b2, $5a, $4e, $02, $0b, $44, $e4
	db $d6, $f6, $93, $33, $a6, $84, $43, $a7, $44, $19, $00
	db $aa, $40, $c1, $8e, $07, $09, $69, $39, $75
	db $05, $53, $1d, $1a, $d9, $6a, $e0, $92, $c3, $69, $35, $a3

	db $c0, $1d, $38, $7b, $10, $20, $78, $61, $1a, $11, $01, $05, $a5
	db $bc, $0e, $57, $c2, $49, $80, $57, $29, $c6, $91
	db $6a, $84, $d6, $b8, $2c, $85, $81, $63

	db $c0, $14, $06, $96, $31, $0d, $53, $55, $85, $ab, $83, $ba
	db $5a, $68

GoldenrodUnderground_1181e8_Text_1187bb:
	db TX_COMPRESSED, $76, $26, $3f, $2a, $48, $d9, $4c, $07, $2b, $e1
	db $23, $c8, $48, $5a, $ee, $63, $a9, $90, $d2
	db $d3, $40

GoldenrodUnderground_1182c8_Text_1188ce:
	db TX_COMPRESSED, $75, $32, $12, $53, $25, $41, $5a
	db $93, $d6, $1c, $e8, $2f
	db $53, $40

GoldenrodUnderground_11813b_Text_1185c3:
	db TX_COMPRESSED, $6e, $7d, $64, $2f, $9f

	db $10, $0e, $a2, $da, $24, $b4, $9c, $07, $2b, $e1
	db $23, $ca, $37, $a1, $27

	db $10, $0e, $8b, $25, $a4, $e0, $7b, $93, $5c, $d2
	db $65, $e5, $67, $76, $6b, $81, $c2, $5a, $4e, $5d, $41
	db $54, $c7, $46, $b6, $5a, $b8, $24, $b0, $da, $4d, $68

	db $f0, $07, $51, $9d, $24, $7f, $54, $8e, $02, $0b, $4b
	db $78, $1c, $af, $84, $91, $59, $eb, $56, $3c, $1a
	db $ea, $ac, $02, $b9, $4e, $34, $8b, $82, $6b, $5c, $16, $c5, $81, $63

	db $c0, $1b, $85, $ae, $e6, $02, $0b, $53, $a3, $52, $38, $f9
	db $bd, $61, $99, $0c, $b4, $ed, $d2
	db $d3, $40

GoldenrodUnderground_11813b_Text_118664:
	db TX_COMPRESSED, $6e, $91, $b2, $98, $0e, $57, $c2
	db $47, $90, $90, $b5, $dc, $c7, $52, $a0, $ad, $4a, $04, $94
	db $b4, $d0

GoldenrodUnderground_11827d_Text_118845:
	db TX_COMPRESSED, $15, $05, $10, $91, $e1, $78, $a0, $41, $8d
	db $6f, $60, $15, $cb, $49, $cc, $e8, $2f
	db $53, $40

GoldenrodUnderground_118271_Text_11880c:
	db TX_COMPRESSED, $07, $86
	db $95, $e6, $21, $aa, $23, $73
	db $ea, $68

GoldenrodUnderground_118277_Text_118825:
	db TX_COMPRESSED, $50, $15, $ac, $17, $e0, $20, $b5, $08, $67, $98, $f8, $56, $71, $f0, $90, $c1
	db $7a, $9a

GoldenrodUnderground_1181d0_Text_1186f5:
	db TX_COMPRESSED, $75, $32, $18, $12, $74, $14, $09
	db $0d, $e4, $e8, $d6, $cb, $57, $36, $67, $41, $7a, $3a, $2c
	db $55, $90, $90, $e6, $01, $5c, $b0, $e7, $41
	db $7a, $9a

GoldenrodUnderground_1181c4_Text_1186b4:
	db TX_COMPRESSED, $74, $89, $69, $db, $8b, $1f, $29, $ba
	db $57, $8a, $4e, $de, $29, $b1, $09, $d7, $cf
	db $8d, $34

GoldenrodUnderground_1181ca_Text_1186d3:
	db TX_COMPRESSED, $72, $85, $a7, $0f, $61, $0c, $f3, $1f, $0a
	db $cd, $e7, $c2, $43, $05, $2d, $3a, $49, $69, $db
	db $f5, $34

GoldenrodUnderground_118242_Text_1187d8:
	db TX_COMPRESSED, $76, $26, $38, $c7, $4e, $1e, $c7, $f5, $48, $e0
	db $ed, $ee, $84, $2a, $51, $90, $87, $bc
	db $69, $a0

GoldenrodUnderground_118242_Text_1187f4:
	db TX_COMPRESSED, $29, $26, $b3, $95, $1c, $e4, $3c
	db $5e, $af, $bd, $99, $09, $0f
	db $8d, $34

GoldenrodUnderground_118195_Text_118682:
	db TX_COMPRESSED, $76, $26, $38, $c6, $fb, $6c, $a6, $0e
	db $de, $56, $6c, $85, $f3, $8a, $cf, $5a, $b1, $e0, $d7, $78
	db $d3, $40

GoldenrodUnderground_118195_Text_1186a2:
	db TX_COMPRESSED, $29, $26, $b3, $e3, $2b, $ef, $66, $42, $43
	db $e3, $4d

GoldenrodUnderground_118283_Text_118889:
	text_from_ram wStringBuffer1
	db TX_COMPRESSED, $9d, $08, $54, $91
	db $35, $ee, $8e, $ef, $a7, $13, $a2, $04, $0c, $d7
	db $ea, $68

GoldenrodUnderground_11828c_Text_1188a6:
	text_from_ram wStringBuffer1
	db TX_COMPRESSED, $9d, $08, $54
	db $90, $f2, $74, $40, $80, $5e
	db $a6, $80

GoldenrodUnderground_118295_Text_1188b8:
	text_from_ram wStringBuffer1
	db TX_COMPRESSED, $9d, $08, $54
	db $90, $f6, $4f, $a3, $e5, $36, $79
	db $e3, $4d

GoldenrodUnderground_MapEventHeader ;filler
	db 0, 0

;warps
	db 6
	warp_def $2, $1, 3, GOLDENROD_UNDERGROUND_ENTRY_A
	warp_def $22, $1, 3, GOLDENROD_UNDERGROUND_ENTRY_B
	warp_def $6, $12, 4, GOLDENROD_UNDERGROUND
	warp_def $23, $f, 3, GOLDENROD_UNDERGROUND
	warp_def $23, $10, 3, GOLDENROD_UNDERGROUND
	warp_def $1f, $10, 1, GOLDENROD_SWITCHES

	;xy triggers
	db 0

	;signposts
	db 1
	signpost 6, 19, SIGNPOST_READ, GoldenrodUndergroundSignpost1

	;people-events
	db 6
	person_event SPRITE_SUPER_NERD, 15, 5, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, 0, 0, GoldenrodUndergroundNPC1, -1
	person_event SPRITE_SUPER_NERD, 11, 5, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, 0, 0, GoldenrodUndergroundNPC2, -1
	person_event SPRITE_SUPER_NERD, 19, 4, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_BROWN, 2, 4, GoldenrodUnderground_Trainer_1, -1
	person_event SPRITE_OFFICER, 26, 3, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, 2, 2, GoldenrodUnderground_Trainer_2, -1
	person_event SPRITE_SUPER_NERD, 9, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_RED, 2, 2, GoldenrodUnderground_Trainer_3, -1
	person_event SPRITE_GRANNY, 20, 16, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, 0, 0, GoldenrodUndergroundNPC3, -1

