Route5_SouthEntrance_MapScripts:: @ 816F900
	.byte 0

Route5_SouthEntrance_EventScript_16F901:: @ 816F901
	msgbox gUnknown_819E16D, MSGBOX_NPC
	end

Route5_SouthEntrance_EventScript_16F90A:: @ 816F90A
	lockall
	setvar VAR_TEMP_1, 0
	goto EventScript_16F92E
	end

Route5_SouthEntrance_EventScript_16F916:: @ 816F916
	lockall
	setvar VAR_TEMP_1, 1
	goto EventScript_16F92E
	end

Route5_SouthEntrance_EventScript_16F922:: @ 816F922
	lockall
	setvar VAR_TEMP_1, 2
	goto EventScript_16F92E
	end

EventScript_16F92E:: @ 816F92E
	textcolor 0
	applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestLeft
	waitmovement 0
	goto_if_set FLAG_GOT_TEA, EventScript_16F958
	msgbox gUnknown_819E04B
	closemessage
	applymovement OBJ_EVENT_ID_PLAYER, Movement_16F9C4
	waitmovement 0
	releaseall
	end

EventScript_16F958:: @ 816F958
	removeitem ITEM_TEA, 1
	goto EventScript_16F963
	end

EventScript_16F963:: @ 816F963
	msgbox gUnknown_819E09B
	closemessage
	compare VAR_TEMP_1, 0
	call_if_eq EventScript_16F99C
	compare VAR_TEMP_1, 1
	call_if_eq EventScript_16F9A7
	compare VAR_TEMP_1, 2
	call_if_eq EventScript_16F9B2
	msgbox gUnknown_819E0C1
	setvar VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES, 1
	releaseall
	end

EventScript_16F99C:: @ 816F99C
	applymovement OBJ_EVENT_ID_PLAYER, Movement_16F9C2
	waitmovement 0
	return

EventScript_16F9A7:: @ 816F9A7
	applymovement OBJ_EVENT_ID_PLAYER, Movement_16F9BD
	waitmovement 0
	return

EventScript_16F9B2:: @ 816F9B2
	applymovement OBJ_EVENT_ID_PLAYER, Movement_16F9BF
	waitmovement 0
	return

Movement_16F9BD:: @ 816F9BD
	walk_left
	step_end

Movement_16F9BF:: @ 816F9BF
	walk_left
	walk_left
	step_end

Movement_16F9C2:: @ 816F9C2
	walk_in_place_left
	step_end

Movement_16F9C4:: @ 816F9C4
	walk_up
	step_end
