MilosB2Fb_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1
	dbw MAPCALLBACK_TILES, SetBlocksB2fb

SetBlocksB2fb:
	checkevent EVENT_0
	iffalse .skip1B2fb
	scall MilosB2Fb_RedOff
.skip1B2fb
	checkevent EVENT_1
	iffalse .skip2B2fb
	scall MilosB2Fb_YellowOff
.skip2B2fb
	checkevent EVENT_2
	iffalse .skip3B2fb
	scall MilosB2Fb_GreenOff
.skip3B2fb
	checkevent EVENT_3
	iffalse .skip4B2fb
	scall MilosB2Fb_BrownOff
.skip4B2fb
	return

MilosB2Fb_RedOn:
	changeblock $c, $6, $6a
	changeblock $8, $a, $6a
	changeblock $0, $12, $6a
	changeblock $12, $16, $6a
	changeblock $8, $1e, $6a
	changeblock $c, $8, $67
	changeblock $c, $a, $68
	changeblock $4, $10, $67
	changeblock $4, $12, $68
	changeblock $12, $18, $67
	changeblock $12, $1a, $68
	changeblock $4, $6, $83
	changeblock $18, $16, $83
	changeblock $c, $1e, $83
	end

MilosB2Fb_RedOff:
	changeblock $c, $6, $6b
	changeblock $8, $a, $6b
	changeblock $0, $12, $6b
	changeblock $12, $16, $6b
	changeblock $8, $1e, $6b
	changeblock $c, $8, $52
	changeblock $c, $a, $51
	changeblock $4, $10, $52
	changeblock $4, $12, $51
	changeblock $12, $18, $52
	changeblock $12, $1a, $51
	changeblock $4, $6, $50
	changeblock $18, $16, $50
	changeblock $c, $1e, $50
	end

MilosB2Fb_YellowOn:
	changeblock $4, $16, $76
	changeblock $c, $14, $7d
	changeblock $c, $16, $7e
	changeblock $2, $1a, $7d
	changeblock $2, $1c, $7e
	end

MilosB2Fb_YellowOff:
	changeblock $4, $16, $77
	changeblock $c, $14, $52
	changeblock $c, $16, $51
	changeblock $2, $1a, $52
	changeblock $2, $1c, $51
	end

MilosB2Fb_GreenOn:
	changeblock $c, $12, $7b
	changeblock $6, $1a, $4c
	changeblock $30, $18, $30
	end

MilosB2Fb_GreenOff:
	changeblock $c, $12, $36
	changeblock $6, $1a, $50
	changeblock $30, $18, $52
	changeblock $30, $1a, $51
	end

MilosB2Fb_BrownOn:
	changeblock $10, $16, $33
	changeblock $12, $1e, $33
	changeblock $12, $22, $4d
	changeblock $a, $12, $4d
	changeblock $8, $18, $49
	changeblock $8, $1a, $48
	end

MilosB2Fb_BrownOff:
	changeblock $10, $16, $32
	changeblock $12, $1e, $32
	changeblock $12, $22, $82
	changeblock $a, $12, $82
	changeblock $8, $18, $52
	changeblock $8, $1a, $51
	end

MilosB2FbSignpost1:
MilosB2FbSignpost2:
MilosB2FbSignpost3:
MilosB2FbSignpost4:
MilosB2FbSignpost5:
	opentext
	writetext MilosB2FbSignpost1_Text_122b55
	playwaitsfx SFX_STOP_SLOT
	scall MilosB2Fb_122ad3
	reloadmappart
	closetext
	end

MilosB2FbSignpost6:
	opentext
	writetext MilosB2FbSignpost6_Text_122c18
	playwaitsfx SFX_STOP_SLOT
	scall MilosB2Fb_122bde
	reloadmappart
	closetext
	end

MilosB2FbSignpost7:
	opentext
	writetext MilosB2FbSignpost7_Text_122c6a
	playwaitsfx SFX_STOP_SLOT
	scall MilosB2Fb_122c38
	reloadmappart
	closetext
	end

MilosB2FbSignpost9:
MilosB2FbSignpost8:
	opentext
	writetext MilosB2FbSignpost8_Text_122ccb
	playwaitsfx SFX_STOP_SLOT
	scall MilosB2Fb_122c89
	reloadmappart
	closetext
	end

MilosB2FbSignpost10:
MilosB2FbSignpost11:
	jumptext MilosB2FbSignpost10_Text_123101

MilosB2FbSignpost12:
MilosB2FbSignpost13:
	jumptext MilosB2FbSignpost12_Text_123118

MilosB2FbSignpost14:
MilosB2FbSignpost15:
	jumptext MilosB2FbSignpost14_Text_123139

MilosB2FbSignpost16:
MilosB2FbSignpost17:
	jumptext MilosB2FbSignpost16_Text_12314f

MilosB2FbNPC1:
	opentext
	writetext MilosB2FbNPC1_Text_122d0e
	playwaitsfx SFX_DEX_FANFARE_80_109
	disappear 2
	writetext MilosB2FbNPC1_Text_122d2c
	waitbutton
	setevent EVENT_JUMPING_SHOES
	playsound SFX_STRENGTH
	scall MilosB2Fb_122ad3
	scall MilosB2Fb_122bde
	scall MilosB2Fb_122c38
	scall MilosB2Fb_122c89
	reloadmappart
	earthquake 20
	jumptext MilosB2Fb_123890_Text_122d62

MilosB2Fb_Item_1:
	db SACRED_ASH, 1

MilosB2Fb_Item_2:
	db DAWN_STONE, 1

MilosB2Fb_Trainer_1:
	trainer EVENT_MILOS_B2FB_TRAINER_1, PATROLLER, 13, MilosB2Fb_Trainer_1_Text_123570, MilosB2Fb_Trainer_1_Text_1235e1, $0000, .Script

.Script:
	jumptext MilosB2Fb_Trainer_1_Script_Text_123602

MilosB2Fb_Trainer_2:
	trainer EVENT_MILOS_B2FB_TRAINER_2, PATROLLER, 2, MilosB2Fb_Trainer_2_Text_1234dc, MilosB2Fb_Trainer_2_Text_12351b, $0000, .Script

.Script:
	jumptext MilosB2Fb_Trainer_2_Script_Text_123530

MilosB2Fb_122ad3:
	milosswitch EVENT_0, MilosB2Fb_RedOff, MilosB2Fb_RedOn
	end

MilosB2Fb_122bde:
	milosswitch EVENT_1, MilosB2Fb_YellowOff, MilosB2Fb_YellowOn
	end

MilosB2Fb_122c38:
	milosswitch EVENT_2, MilosB2Fb_GreenOff, MilosB2Fb_GreenOn
	end

MilosB2Fb_122c89:
	milosswitch EVENT_3, MilosB2Fb_BrownOff, MilosB2Fb_BrownOn
	end

MilosB2Fb_123890:
	jumptext MilosB2Fb_123890_Text_122d62

MilosB2FbSignpost1_Text_122b55:
	db TX_COMPRESSED, $e1, $6b, $bd, $3c, $cb, $49, $c7, $21
	db $e5, $e5, $15, $0e, $d9, $4f
	db $10, $73

MilosB2FbSignpost6_Text_122c18:
	db TX_COMPRESSED, $e1, $6b, $bd, $3c, $cb, $49, $c7, $29, $f7, $a1
	db $a9, $e5, $15, $0e, $d9, $4f
	db $10, $73

MilosB2FbSignpost7_Text_122c6a:
	db TX_COMPRESSED, $e1, $6b, $bd, $3c, $cb, $49, $c1, $2e, $b4
	db $6f, $28, $a8, $76, $ca, $78
	db $83, $98

MilosB2FbSignpost8_Text_122ccb:
	db TX_COMPRESSED, $e1, $6b, $bd, $3c, $cb, $49, $c1, $25, $86, $a2
	db $3c, $a2, $a1, $db, $29
	db $e2, $0e, $60

MilosB2FbSignpost10_Text_123101:
	text "INVICTVS MANEO"
	done

MilosB2FbSignpost12_Text_123118:
	text "NON PROGREDI EST"
	line "REGREDI"
	done

MilosB2FbSignpost14_Text_123139:
	text "SEMPER FORTIS"
	done

MilosB2FbSignpost16_Text_12314f:
	text "HONOR VIRTVTIS"
	line "PRAEMIVM"
	done

MilosB2FbNPC1_Text_122d0e:
	db TX_COMPRESSED, $72, $85, $a9, $80, $5a, $26, $65, $a4
	db $de, $a7, $1a, $7c, $40, $c9, $cc, $42, $42, $68
	db $e3, $4d

MilosB2FbNPC1_Text_122d2c:
	db TX_COMPRESSED, $6e, $93, $24, $04, $16, $a2, $cf, $59, $4c
	db $d7, $90, $fe, $f7, $b3, $9d, $11, $f8, $21, $66, $84
	db $2a, $ae, $58, $65, $38, $d3, $e2, $20, $41, $8d
	db $6a, $87, $7c
	db $69, $a0

MilosB2Fb_Trainer_1_Text_123570:
	db TX_COMPRESSED, $76, $9f, $c1, $de, $28, $08, $2d, $4d, $e7, $46, $4f

	db $00, $75, $11, $b5, $4b, $48, $d1, $19, $0b, $e3, $27, $3e

	db $00, $dc, $e6, $f7, $b3, $23, $cf

	db $80, $3a, $c2, $02, $0b, $52, $d2, $32, $29, $4c, $02
	db $b7, $b6, $20, $d9, $09, $33, $01, $05, $a2, $e3
	db $55, $c9, $dd, $8c, $9c, $c1, $1a, $8b, $8f, $9f

	db $c0, $5a, $4c, $90, $10, $5a, $70, $f6, $2b
	db $37, $91, $b9, $e8, $28, $f8, $d1, $7a, $a4, $64
	db $f5, $34

MilosB2Fb_Trainer_1_Text_1235e1:
	db TX_COMPRESSED, $29, $3b, $78, $a0, $8d, $b4, $9d, $8d, $9f

	db $00, $72, $85, $a2, $e3, $82, $36, $d2, $76, $36
	db $7d, $4d

MilosB2Fb_Trainer_1_Script_Text_123602:
	db TX_COMPRESSED, $6d, $6a, $e5, $a4, $e0, $44, $58, $df, $1a, $1f
	db $fb, $c0, $82, $d4, $21, $9e, $66, $c5, $9e
	db $f5, $52, $cf, $7a, $3b, $05, $19, $49, $b2, $a5

	db $e0, $02, $65, $a4, $5c, $a9, $21, $9a, $b3, $80, $82
	db $d3, $d5, $0e, $d2, $16, $ae, $02, $0b, $4b, $99, $3d
	db $5a, $a0, $72, $be, $12, $7e, $25, $a4, $d2
	db $d3, $40

MilosB2Fb_Trainer_2_Text_1234dc:
	db TX_COMPRESSED, $6d, $d2, $40, $41, $6a, $08, $d0, $51, $01, $7c
	db $de, $db, $b3, $25, $8c, $24, $96, $18, $f9
	db $aa, $a9, $23, $e9, $c7, $50, $42, $ce, $cc, $99
	db $55, $69, $db, $8e, $a6, $42, $4a, $64, $67, $56, $74
	db $b4, $d0

MilosB2Fb_Trainer_2_Text_12351b:
	db TX_COMPRESSED, $72, $1e, $f6, $5e, $f5, $4b, $f2, $d3, $b7
	db $89, $e5, $21, $93, $3b, $1a, $26, $1a, $35, $d3
	db $c1, $4d

MilosB2Fb_Trainer_2_Script_Text_123530:
	db TX_COMPRESSED, $74, $59, $06, $4b, $58, $f9, $68, $64, $e7, $f1, $5b
	db $56, $f1, $02, $ac, $39, $05, $2a, $d2, $5a, $25
	db $85, $53, $44, $c9, $ad, $17, $a4, $cc, $7c, $e9, $e0
	db $a6, $80

MilosB2Fb_123890_Text_122d62:
	db TX_COMPRESSED, $73, $a6, $05, $3c

	db $40, $70, $8d, $95, $21, $93, $98, $d0, $89, $69
	db $37, $90, $90, $9a, $22, $cc, $18, $d6, $83
	db $ca, $ad, $ef, $60, $70, $96, $93
	db $54, $8a, $87, $6c, $a4, $d1
	db $c6, $9a

MilosB2Fb_MapEventHeader:: db 0, 0

.Warps: db 2
	warp_def 3, 19, 4, MILOS_B1F
	warp_def 3, 27, 4, MILOS_F1

.CoordEvents: db 0

.BGEvents: db 17
	signpost 6, 12, SIGNPOST_LEFT, MilosB2FbSignpost1
	signpost 10, 8, SIGNPOST_LEFT, MilosB2FbSignpost2
	signpost 22, 18, SIGNPOST_LEFT, MilosB2FbSignpost3
	signpost 30, 8, SIGNPOST_LEFT, MilosB2FbSignpost4
	signpost 18, 0, SIGNPOST_LEFT, MilosB2FbSignpost5
	signpost 22, 4, SIGNPOST_LEFT, MilosB2FbSignpost6
	signpost 18, 13, SIGNPOST_RIGHT, MilosB2FbSignpost7
	signpost 22, 17, SIGNPOST_RIGHT, MilosB2FbSignpost8
	signpost 30, 19, SIGNPOST_RIGHT, MilosB2FbSignpost9
	signpost 5, 7, SIGNPOST_UP, MilosB2FbSignpost10
	signpost 6, 7, SIGNPOST_READ, MilosB2FbSignpost11
	signpost 21, 9, SIGNPOST_UP, MilosB2FbSignpost12
	signpost 22, 9, SIGNPOST_READ, MilosB2FbSignpost13
	signpost 34, 15, SIGNPOST_READ, MilosB2FbSignpost14
	signpost 33, 15, SIGNPOST_UP, MilosB2FbSignpost15
	signpost 26, 43, SIGNPOST_READ, MilosB2FbSignpost16
	signpost 25, 43, SIGNPOST_UP, MilosB2FbSignpost17

.ObjectEvents: db 5
	person_event SPRITE_POKE_BALL, 30, 20, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_PURPLE, 0, 4, MilosB2FbNPC1, EVENT_JUMPING_SHOES
	person_event SPRITE_POKE_BALL, 40, 54, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, 1, 3, MilosB2Fb_Item_1, EVENT_MILOS_B2FB_ITEM_1
	person_event SPRITE_POKE_BALL, 26, 48, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, 1, 76, MilosB2Fb_Item_2, EVENT_MILOS_B2FB_ITEM_2
	person_event SPRITE_PALETTE_PATROLLER, 6, 31, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_GREEN, 2, 1, MilosB2Fb_Trainer_1, EVENT_MILOS_B2FB_TRAINER_1
	person_event SPRITE_PALETTE_PATROLLER, 14, 0, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_SILVER, 2, 1, MilosB2Fb_Trainer_2, EVENT_MILOS_B2FB_TRAINER_2


