ClathriteB1F_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

ClathriteB1FTrap:
	checkitem FLUFFY_COAT
	sif true
		end
	showtext .text
	applymovement PLAYER, .movement
	end

.text
	db TX_COMPRESSED, $6e, $1a, $bf, $07, $78, $a5, $5a, $0a, $58
	db $42, $f3, $21, $ee, $60, $c9, $12, $6b, $3f

	db $00, $73, $93, $a6, $84, $47, $52, $ad, $25, $cb
	db $0b, $cc, $ed, $b2, $98, $90, $42, $03, $69, $35, $be, $3d
	db $f8, $07, $58, $d1, $59, $dd, $9a, $e2, $4f
	db $72, $f2, $bd, $65, $4a, $60, $15, $c2, $06, $af
	db $53, $c4

.movement
	step_right
	step_end

ClathriteB1F_Ether:
	db ETHER, 1

ClathriteB1F_PP_Up:
	db PP_UP, 1

ClathriteB1F_Trainer_1:
	trainer EVENT_CLATHRITE_B1F_TRAINER_1, BOARDER, 1, .before_battle_text, .defeated_text, $0000, .script

.script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text:
	db TX_COMPRESSED, $74, $59, $3a, $14, $5f, $e3, $3a, $48, $08, $2d
	db $3c, $93, $e8, $88, $f9, $ce, $4e, $e0, $5a, $ba
	db $5a, $68

.defeated_text:
	db TX_COMPRESSED, $75, $39, $68, $d0, $88, $40, $df
	db $a9, $a0

.after_battle_text:
	db TX_COMPRESSED, $ae, $e7, $4f, $51, $70, $77, $8a, $60, $d1
	db $1e, $47, $47, $91, $93, $99, $90, $d4, $49, $69, $1a
	db $15, $3f, $a2, $6c, $e0, $49, $1f, $05, $15, $87, $57, $9f
	db $53, $40

ClathriteB1F_Trainer_2:
	trainer EVENT_CLATHRITE_B1F_TRAINER_2, BOARDER, 2, .before_battle_text, .defeated_text, $0000, .script

.script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text:
	db TX_COMPRESSED, $13, $2d, $22, $e3, $3a, $f9, $c1, $92, $60, $b0
	db $be, $f0, $5a, $b4, $0f, $27, $f9, $d0, $85, $48, $64
	db $e4, $05, $86, $33, $b6, $ca, $62, $02, $f9, $ca, $87, $dc
	db $bc, $36, $41, $40, $72, $be, $12, $71
	db $a6, $80

.defeated_text:
	db TX_COMPRESSED, $72, $85, $a8, $83, $39, $52, $41, $47
	db $4f, $54, $16, $bb, $98, $43, $3c, $cb, $0f
	db $a9, $a0

.after_battle_text:
	db TX_COMPRESSED, $75, $12, $7a, $bc, $cd, $9d, $3e, $4c, $99
	db $79, $66, $81, $e4, $d1, $10, $17, $ce, $a4, $9a
	db $cd, $50, $c9, $2d, $23, $44, $06, $35, $82, $8c, $e8, $31, $d3

	db $c0, $01, $b9, $f7, $bf, $83, $bc, $50, $42, $c2, $af, $55, $f4
	db $13, $d4, $e3, $48, $b8, $80, $be, $71, $6d, $3e, $15
	db $fa, $9a

ClathriteB1F_MapEventHeader:: db 0, 0

.Warps
	db 4
	warp_def $21, $f, 1, CLATHRITE_B2F
	warp_def $29, $1d, 3, CLATHRITE_1F
	warp_def $3, $3, 3, CLATHRITE_B2F
	warp_def $17, $1b, 2, CLATHRITE_1F

.CoordEvents
	db 2
	xy_trigger 0, $18, $19, $0, ClathriteB1FTrap, $0, $0
	xy_trigger 0, $27, $1a, $0, ClathriteB1FTrap, $0, $0

.BGEvents
	db 0

.ObjectEvents
	db 4
	person_event SPRITE_POKE_BALL, 16, 18, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, ClathriteB1F_Ether, EVENT_CLATHRITE_B1F_ITEM_1
	person_event SPRITE_POKE_BALL, 22, 2, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, ClathriteB1F_PP_Up, EVENT_CLATHRITE_B1F_ITEM_2
	person_event SPRITE_BOARDER, 6, 20, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_TRAINER, 2, ClathriteB1F_Trainer_1, -1
	person_event SPRITE_BOARDER, 22, 26, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_TRAINER, 2, ClathriteB1F_Trainer_2, -1

