MtMoon_B2F_MapScripts:: @ 8160699
	map_script 3, MtMoon_B2F_MapScript1_16069F
	.byte 0

MtMoon_B2F_MapScript1_16069F:: @ 816069F
	checkflag FLAG_GOT_FOSSIL_FROM_MT_MOON
	call_if FALSE, EventScript_1606A9
	end

EventScript_1606A9:: @ 81606A9
	clearflag FLAG_HIDE_DOME_FOSSIL
	clearflag FLAG_HIDE_HELIX_FOSSIL
	return

MtMoon_B2F_EventScript_1606B0:: @ 81606B0
	lockall
	applymovement 3, Movement_1A75EB
	waitmovement 0
	call EventScript_1606DD
	releaseall
	end

MtMoon_B2F_EventScript_1606C2:: @ 81606C2
	lock
	faceplayer
	checkflag FLAG_GOT_FOSSIL_FROM_MT_MOON
	goto_if TRUE, EventScript_160707
	checktrainerflag TRAINER_SUPER_NERD_MIGUEL
	goto_if eq, EventScript_160711
	call EventScript_1606DD
	release
	end

EventScript_1606DD:: @ 81606DD
	textcolor 0
	message Text_172B64
	waitmessage
	playbgm MUS_EXEYE, 0
	waitbuttonpress
	setvar VAR_LAST_TALKED, 3
	trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_SUPER_NERD_MIGUEL, 0, Text_172B99
	setvar VAR_MAP_SCENE_MT_MOON_B2F, 1
	msgbox gUnknown_8172BAB
	return

EventScript_160707:: @ 8160707
	msgbox gUnknown_8172BFB
	release
	end

EventScript_160711:: @ 8160711
	msgbox gUnknown_8172BAB
	release
	end

MtMoon_B2F_EventScript_16071B:: @ 816071B
	lock
	faceplayer
	msgbox gUnknown_8172E77, MSGBOX_YESNO
	compare_var_to_value VAR_RESULT, 0
	goto_if eq, EventScript_1607DE
	removeobject 1
	additem ITEM_DOME_FOSSIL, 1
	giveitemfanfaremsg gUnknown_8172ECD, ITEM_DOME_FOSSIL, 1, MUS_FAN5
	closemessage
	special sub_8112364
	delay 10
	applymovement 3, Movement_16077A
	waitmovement 0
	moveobjectoffscreen 3
	textcolor 0
	playfanfare MUS_FAN5
	message Text_172BD6
	waitmessage
	waitfanfare
	removeobject 2
	setflag FLAG_GOT_DOME_FOSSIL
	setflag FLAG_GOT_FOSSIL_FROM_MT_MOON
	release
	end

Movement_16077A:: @ 816077A
	step_13
	step_11
	step_11
	step_11
	step_end

MtMoon_B2F_EventScript_16077F:: @ 816077F
	lock
	faceplayer
	msgbox gUnknown_8172E94, MSGBOX_YESNO
	compare_var_to_value VAR_RESULT, 0
	goto_if eq, EventScript_1607DE
	removeobject 2
	additem ITEM_HELIX_FOSSIL, 1
	giveitemfanfaremsg gUnknown_8172EB2, ITEM_HELIX_FOSSIL, 1, MUS_FAN5
	closemessage
	special sub_8112364
	delay 10
	applymovement 3, Movement_1607E0
	waitmovement 0
	moveobjectoffscreen 3
	textcolor 0
	playfanfare MUS_FAN5
	message Text_172BD6
	waitmessage
	waitfanfare
	removeobject 1
	setflag FLAG_GOT_HELIX_FOSSIL
	setflag FLAG_GOT_FOSSIL_FROM_MT_MOON
	release
	end

EventScript_1607DE:: @ 81607DE
	release
	end

Movement_1607E0:: @ 81607E0
	step_11
	step_11
	step_11
	step_end

MtMoon_B2F_EventScript_1607E4:: @ 81607E4
	trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT, 0, Text_172C5A, Text_172CB8
	msgbox gUnknown_8172CCB, 6
	end

MtMoon_B2F_EventScript_1607FB:: @ 81607FB
	trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_2, 0, Text_172CFC, Text_172D46
	msgbox gUnknown_8172D51, 6
	end

MtMoon_B2F_EventScript_160812:: @ 8160812
	trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_3, 0, Text_172D82, Text_172DAF
	msgbox gUnknown_8172DC1, 6
	end

MtMoon_B2F_EventScript_160829:: @ 8160829
	trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_4, 0, Text_172DF0, Text_172E3E
	msgbox gUnknown_8172E4B, 6
	end
