GoldenrodUnderground_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

GoldenrodUnderground_NoEntrySign:
	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:
	trainer EVENT_GOLDENROD_UNDERGROUND_TRAINER_1, SUPER_NERD, 6, .before_battle_text, .defeated_text

	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

.before_battle_text
	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

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

GoldenrodUnderground_Trainer_2:
	trainer EVENT_GOLDENROD_UNDERGROUND_TRAINER_2, OFFICER, 2, .before_battle_text, .defeated_text

	db TX_COMPRESSED, $13, $06, $62, $25, $a4, $e2, $bd, $bb, $e9
	db $a1, $e6, $46, $0c, $3e, $8c, $4d, $9e, $7f, $02, $b8, $7d, $41
	db $80, $74, $e1, $ec, $41, $ef, $65, $a4, $68
	db $8f, $08, $ee, $b2, $70, $38, $61

	db $e0, $0e, $50, $b5, $2a, $d2, $5c, $b4, $ed, $c0
	db $91, $e0, $41, $69, $71, $90, $91, $0c, $8c, $c8, $c9, $d2
	db $d3, $40

.before_battle_text
	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

.defeated_text
	db TX_COMPRESSED, $ad, $32, $a3, $ef
	db $7d, $4d

GoldenrodUnderground_Trainer_3:
	trainer EVENT_GOLDENROD_UNDERGROUND_TRAINER_3, SUPER_NERD, 7, .before_battle_text, .defeated_text

	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

.before_battle_text
	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

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

GoldenrodUnderground_YoungerHaircutBrother:
	opentext
	checkcode VAR_WEEKDAY
	isinsingulararray .workdays_array
	sif false
		jumptext GoldenrodUnderground_HaircutBrothers_NotTodayText
	checkflag EVENT_GOLDENROD_HAIRCUT_BROTHERS
	sif true
		jumptext .already_cut_hair_text
	special PlaceMoneyTopRight
	writetext .welcome_text
	yesorno
	sif false
		jumptext .declined_text
	checkmoney 0, 300
	sif =, 2
		jumptext .not_enough_money_text
	writetext .select_mon_text
	buttonsound
	special Special_YoungerHaircutBrother
	sif <, 2
		jumptext .declined_text
	setflag EVENT_GOLDENROD_HAIRCUT_BROTHERS
	takemoney 0, 300
	special PlaceMoneyTopRight
	writetext .go_text
	closetext
	special Special_BattleTowerFade
	playwaitsfx SFX_HEAL_POKEMON
	special FadeInPalettes
	opentext
	writetext .done_text
	jump GoldenrodUnderground_HaircutBrothers_Finish

.workdays_array
	db SUNDAY, WEDNESDAY, FRIDAY, -1

.welcome_text
	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

.not_enough_money_text
	db TX_COMPRESSED, $50, $15, $ac, $17, $e0, $20, $b5, $08, $67
	db $97, $9f, $0a, $ce, $3e, $12, $18, $2f
	db $53, $40

.select_mon_text
	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

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

.declined_text
	db TX_COMPRESSED, $07, $86
	db $95, $e6, $21, $aa, $23, $73
	db $ea, $68

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

.done_text
	db TX_COMPRESSED, $29, $26, $b3, $95, $1c, $e4, $3c
	db $5e, $af, $bd, $99, $09, $0f
	db $8d, $3c, $40

GoldenrodUnderground_OlderHaircutBrother:
	opentext
	checkcode VAR_WEEKDAY
	isinsingulararray GoldenrodUnderground_OlderHaircutBrother_Workdays
	sif false
		jumptext GoldenrodUnderground_HaircutBrothers_NotTodayText
	checkflag EVENT_GOLDENROD_HAIRCUT_BROTHERS
	sif true
		jumptext GoldenrodUnderground_OlderHaircutBrother_ShiftOverText
	special PlaceMoneyTopRight
	writetext GoldenrodUnderground_OlderHaircutBrother_WelcomeText
	yesorno
	sif false
		jumptext GoldenrodUnderground_OlderHaircutBrother_DeclinedText
	checkmoney 0, 500
	sif =, 2
		jumptext GoldenrodUnderground_OlderHaircutBrother_NeedMoreMoneyText
	writetext GoldenrodUnderground_OlderHaircutBrother_WhichMonText
	buttonsound
	special Special_YoungerHaircutBrother
	sif <, 2
		jumptext GoldenrodUnderground_OlderHaircutBrother_DeclinedText
	setflag EVENT_GOLDENROD_HAIRCUT_BROTHERS
	takemoney 0, 500
	special PlaceMoneyTopRight
	writetext GoldenrodUnderground_OlderHaircutBrother_LetsGoText
	closetext
	special Special_BattleTowerFade
	playwaitsfx SFX_HEAL_POKEMON
	special FadeInPalettes
	opentext
	writetext GoldenrodUnderground_OlderHaircutBrother_DoneText
GoldenrodUnderground_HaircutBrothers_Finish:
	sif =, 2
		writetext .little_happier
	selse
		sif =, 3
			writetext .happy
		selse
			writetext .delighted
		sendif
	sendif
	special PlayCurMonCry
	endtext

.little_happier
	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

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

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

GoldenrodUnderground_OlderHaircutBrother_Workdays:
	db TUESDAY, THURSDAY, SATURDAY, -1

GoldenrodUnderground_OlderHaircutBrother_WelcomeText:
	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_OlderHaircutBrother_NeedMoreMoneyText:
	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_OlderHaircutBrother_WhichMonText:
	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_OlderHaircutBrother_ShiftOverText:
	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_OlderHaircutBrother_DeclinedText:
	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_OlderHaircutBrother_LetsGoText:
	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, $c4

GoldenrodUnderground_OlderHaircutBrother_DoneText:
	db TX_COMPRESSED, $29, $26, $b3, $e3, $2b, $ef, $66, $42, $43
	db $e3, $4f, $10

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

GoldenrodUndergroundNPC:
	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_MapEventHeader:: 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

.CoordEvents
	db 0

.BGEvents
	db 1
	signpost 6, 19, SIGNPOST_TEXT, GoldenrodUnderground_NoEntrySign

.ObjectEvents
	db 6
	person_event SPRITE_SUPER_NERD, 15, 5, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, GoldenrodUnderground_YoungerHaircutBrother, -1
	person_event SPRITE_SUPER_NERD, 11, 5, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, GoldenrodUnderground_OlderHaircutBrother, -1
	person_event SPRITE_SUPER_NERD, 19, 4, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_GENERICTRAINER, 4, GoldenrodUnderground_Trainer_1, -1
	person_event SPRITE_OFFICER, 26, 3, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_GENERICTRAINER, 2, GoldenrodUnderground_Trainer_2, -1
	person_event SPRITE_SUPER_NERD, 9, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_GENERICTRAINER, 2, GoldenrodUnderground_Trainer_3, -1
	person_event SPRITE_GRANNY, 20, 16, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, GoldenrodUndergroundNPC, -1

