MersonCaveB1F_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

MersonCaveB1FSignpost:
	ctxt "<LEFT> Route 54"
	done

MersonCaveB1F_Item_1:
	db HP_UP, 1

MersonCaveB1F_Item_2:
	db DUSK_RING, 1

MersonCaveB1F_Trainer_1:
	trainer EVENT_MERSON_CAVE_B1F_TRAINER_1, BUG_CATCHER, 5, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	ctxt "I almost found my"
	line "way out!"
	done

.battle_won_text
	ctxt "Oh well, my bugs"
	line "still grow"
	cont "stronger!"
	done

.after_battle_text
	ctxt "I've battled"
	line "several people"

	para "who chose to"
	line "travel through"
	cont "this cave."
	done

MersonCaveB1F_Trainer_2:
	trainer EVENT_MERSON_CAVE_B1F_TRAINER_2, HIKER, 4, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	ctxt "Always a good hike"
	line "through this cave."
	done

.battle_won_text
	ctxt "It just never"
	line "gets old!"
	done

.after_battle_text
	ctxt "Cave structures"
	line "are known to"

	para "change every once"
	line "in a while."

	para "You'll never know"
	line "what's new!"
	done

MersonCaveB1F_Trainer_3:
	trainer EVENT_MERSON_CAVE_B1F_TRAINER_3, LASS, 2, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	ctxt "This cave's like"
	line "a confusing maze."
	done

.battle_won_text
	ctxt "Well that wasn't"
	line "cool."
	done

.after_battle_text
	ctxt "Maybe there's areas"
	line "that only #mon"
	cont "have explored."
	done

MersonCaveB1F_MapEventHeader ;filler
	db 0, 0

;warps
	db 4
	warp_def $f, $19, 4, MERSON_CAVE_B2F
	warp_def $21, $f, 1, ROUTE_54
	warp_def $7, $5, 5, MERSON_CAVE_B2F
	warp_def $d, $b, 3, SEASHORE_CITY

	;xy triggers
	db 0

	;signposts
	db 1
	signpost 23, 15, SIGNPOST_LOAD, MersonCaveB1FSignpost

	;people-events
	db 5
	person_event SPRITE_POKE_BALL, 12, 2, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, MersonCaveB1F_Item_1, EVENT_MERSON_CAVE_B1F_ITEM_1
	person_event SPRITE_POKE_BALL, 23, 25, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, MersonCaveB1F_Item_2, EVENT_MERSON_CAVE_B1F_ITEM_2
	person_event SPRITE_YOUNGSTER, 30, 6, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 4, MersonCaveB1F_Trainer_1, -1
	person_event SPRITE_FISHER, 17, 24, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 3, MersonCaveB1F_Trainer_2, -1
	person_event SPRITE_COOLTRAINER_F, 4, 20, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_PURPLE, PERSONTYPE_TRAINER, 1, MersonCaveB1F_Trainer_3, -1
