LilycoveCity_DepartmentStoreElevator_MapScripts:: @ 815A39B
	.byte 0

LilycoveCity_DepartmentStoreElevator_EventScript_Attendant:: @ 815A39C
	lock
	faceplayer
	call_if_unset FLAG_TEMP_2, LilycoveCity_DepartmentStoreElevator_EventScript_SetFloor
	copyvar VAR_0x8005, VAR_DEPT_STORE_FLOOR
	special DisplayCurrentElevatorFloor
	message LilycoveCity_DepartmentStoreElevator_Text_WhichFloorWouldYouLike
	waitmessage
	multichoice 0, 0, 57, 0
	switch VAR_RESULT
	case 0, LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom5th
	case 1, LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom4th
	case 2, LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom3rd
	case 3, LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom2nd
	case 4, LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom1st
	case 127, LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	end

LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom5th:: @ 815A402
	setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_1F, 255, 2, 1
	compare VAR_DEPT_STORE_FLOOR, 0
	goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	call LilycoveCity_DepartmentStoreElevator_EventScript_MoveElevator
	setvar VAR_DEPT_STORE_FLOOR, 0
	goto LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	end

LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom4th:: @ 815A425
	setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_2F, 255, 2, 1
	compare VAR_DEPT_STORE_FLOOR, 1
	goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	call LilycoveCity_DepartmentStoreElevator_EventScript_MoveElevator
	setvar VAR_DEPT_STORE_FLOOR, 1
	goto LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	end

LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom3rd:: @ 815A448
	setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_3F, 255, 2, 1
	compare VAR_DEPT_STORE_FLOOR, 2
	goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	call LilycoveCity_DepartmentStoreElevator_EventScript_MoveElevator
	setvar VAR_DEPT_STORE_FLOOR, 2
	goto LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	end

LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom2nd:: @ 815A46B
	setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_4F, 255, 2, 1
	compare VAR_DEPT_STORE_FLOOR, 3
	goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	call LilycoveCity_DepartmentStoreElevator_EventScript_MoveElevator
	setvar VAR_DEPT_STORE_FLOOR, 3
	goto LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	end

LilycoveCity_DepartmentStoreElevator_EventScript_ChooseFloorFrom1st:: @ 815A48E
	setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_5F, 255, 2, 1
	compare VAR_DEPT_STORE_FLOOR, 4
	goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	call LilycoveCity_DepartmentStoreElevator_EventScript_MoveElevator
	setvar VAR_DEPT_STORE_FLOOR, 4
	goto LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect
	end

LilycoveCity_DepartmentStoreElevator_EventScript_ExitFloorSelect:: @ 815A4B1
	erasebox 0, 0, 29, 19
	release
	end

LilycoveCity_DepartmentStoreElevator_EventScript_MoveElevator:: @ 815A4B8
	erasebox 0, 0, 29, 19
	applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
	waitmovement 0
	special ShakeScreenInElevator
	waitstate
	setflag FLAG_TEMP_2
	return

LilycoveCity_DepartmentStoreElevator_EventScript_SetFloor:: @ 815A4CF
	special SetDepartmentStoreFloorVar
	return
