ClathriteB1F_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

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

.text
	ctxt "Wow, it's way too"
	line "cold in here."

	para "Unless I want to"
	line "catch hypothermia,"
	para "I'd better head"
	line "back for now."
	sdone

.movement
	step_right
	step_end

ClathriteB1F_Trainer_1:
	trainer EVENT_CLATHRITE_B1F_TRAINER_1, BOARDER, 1, .before_battle_text, .defeated_text

	ctxt "At least it's fun"
	line "sliding down this"
	cont "maze on my board."
	done

.before_battle_text:
	ctxt "I'm lost, can you"
	line "help me get out?"
	done

.defeated_text:
	ctxt "I guess not."
	done

ClathriteB1F_Trainer_2:
	trainer EVENT_CLATHRITE_B1F_TRAINER_2, BOARDER, 2, .before_battle_text, .defeated_text

	ctxt "I heard a legend"
	line "resides somewhere"
	cont "in this very cave<...>"

	para "Well, it's probably"
	line "just some rumor."
	done

.before_battle_text:
	ctxt "Just came in from"
	line "outside, looking"
	para "to catch some wild"
	line "icy #mon!"
	done

.defeated_text:
	ctxt "You see why I"
	line "would need to."
	done

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, 1, ETHER, EVENT_CLATHRITE_B1F_ITEM_ETHER
	person_event SPRITE_POKE_BALL, 22, 2, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 1, PP_UP, EVENT_CLATHRITE_B1F_ITEM_PP_UP
	person_event SPRITE_BOARDER, 6, 20, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_GENERICTRAINER, 2, ClathriteB1F_Trainer_1, -1
	person_event SPRITE_BOARDER, 22, 26, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_GENERICTRAINER, 2, ClathriteB1F_Trainer_2, -1
