SilkTunnelB3F_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

SilkTunnelB3F_Item_MaxEther:
	db MAX_ETHER, 1

SilkTunnelB3F_Item_DuskStone:
	db DUSK_STONE, 1

SilkTunnelB3F_Trainer_1:
	trainer EVENT_SILK_TUNNEL_B3F_TRAINER_1, HIKER, 10, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $62, $60, $a5, $a4, $d6, $7c

	db $40, $3a, $9d, $1a, $91, $c6, $43, $de, $9b, $36, $32
	db $72, $f2, $c2, $ca, $92, $3f, $06, $46, $7a, $d6, $46, $4e
	db $55, $5a, $4d, $07, $02, $43, $47
	db $1a, $68

.battle_won_text
	db TX_COMPRESSED, $e0, $d5, $92, $0e, $e6, $f7, $be
	db $a6, $80

.after_battle_text
	db TX_COMPRESSED, $61, $18, $72, $68, $9a, $4c
	db $bc, $c2, $30, $e5, $ac, $9f, $e1, $a6
	db $96, $9a

SilkTunnelB3F_Trainer_2:
	trainer EVENT_SILK_TUNNEL_B3F_TRAINER_2, HIKER, 11, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $29, $21, $41, $cd, $59, $c4, $05, $f3
	db $79, $90, $87, $b1, $09, $09, $a3

	db $c0, $2b, $ef, $65, $9a, $d7, $a3, $27
	db $de, $58, $f9, $4d, $d2
	db $d3, $40

.battle_won_text
	text "Ack!"
	done

.after_battle_text
	db TX_COMPRESSED, $62, $1a, $a3, $ed, $32, $99, $91, $e6, $5a, $42, $83
	db $79, $09, $09, $a2, $32, $14, $5d

	db $28, $02, $92, $70, $d9, $09, $02, $f8, $28, $32
	db $3c, $08, $2d, $2e, $2c, $f9, $18, $49, $1f, $69
	db $16, $a9, $59, $c0, $b5, $70, $38, $46, $42, $4b, $58, $7b
	db $ea, $68

SilkTunnelB3F_Trainer_3:
	trainer EVENT_SILK_TUNNEL_B3F_TRAINER_3, PICNICKER, 7, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $6d, $de, $f6, $3e, $72, $a3, $1a, $f3
	db $f7, $95, $b5, $71, $d4, $c0, $64, $cc, $b4, $8d
	db $0a, $84, $77, $59, $38, $b3, $ee, $d3, $a3, $27, $3e
	db $a6, $80

.battle_won_text
	db TX_COMPRESSED, $15, $0a, $2e, $07, $09, $69, $39, $63, $7c, $f8
	db $d3, $40

.after_battle_text
	db TX_COMPRESSED, $75, $84, $04, $16, $a0, $f9, $20, $56, $72, $d2
	db $6f, $09, $ae, $69, $5e, $dc, $d2, $66, $21, $a6, $53
	db $f0, $16, $91, $a2, $5b, $44, $21, $f6, $0d, $13
	db $5e, $e5, $67, $b7, $04, $77, $59, $39, $61
	db $54, $d1, $2a, $19, $33
	db $ea, $68

SilkTunnelB3F_MapEventHeader ;filler
	db 0, 0

;warps
	db 3
	warp_def $21, $1b, 1, SILK_TUNNEL_B4F
	warp_def $3, $1b, 7, SILK_TUNNEL_B2F
	warp_def $b, $17, 2, SILK_TUNNEL_B2F

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 5
	person_event SPRITE_HIKER, 16, 37, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_TRAINER, 5, SilkTunnelB3F_Trainer_1, -1
	person_event SPRITE_HIKER, 17, 9, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_TRAINER, 4, SilkTunnelB3F_Trainer_2, -1
	person_event SPRITE_PICNICKER, 26, 16, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_TRAINER, 2, SilkTunnelB3F_Trainer_3, -1
	person_event SPRITE_POKE_BALL, 21, 22, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, SilkTunnelB3F_Item_MaxEther, EVENT_SILK_TUNNEL_B3F_ITEM_1
	person_event SPRITE_POKE_BALL, 12, 6, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, SilkTunnelB3F_Item_DuskStone, EVENT_SILK_TUNNEL_B3F_ITEM_2

