2017-11-10 02:21:31 +01:00
|
|
|
LilycoveCity_DepartmentStoreElevator_MapScripts:: @ 8220623
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_220624:: @ 8220624
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setvar VAR_0x8004, 0
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_unset FLAG_TEMP_2, LilycoveCity_DepartmentStoreElevator_EventScript_2207FC
|
2017-11-10 02:21:31 +01:00
|
|
|
copyvar VAR_0x8005, VAR_DEPT_STORE_FLOOR
|
2019-09-14 02:22:09 +02:00
|
|
|
special ShowDeptStoreElevatorFloorSelect
|
2019-08-15 05:38:42 +02:00
|
|
|
message gText_WhichFloorWouldYouLike
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
setvar VAR_0x8004, 0
|
2019-09-13 20:24:07 +02:00
|
|
|
specialvar VAR_RESULT, GetDeptStoreDefaultFloorChoice
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
|
|
|
case 0, LilycoveCity_DepartmentStoreElevator_EventScript_220689
|
|
|
|
case 1, LilycoveCity_DepartmentStoreElevator_EventScript_220695
|
|
|
|
case 2, LilycoveCity_DepartmentStoreElevator_EventScript_2206A1
|
|
|
|
case 3, LilycoveCity_DepartmentStoreElevator_EventScript_2206AD
|
|
|
|
case 4, LilycoveCity_DepartmentStoreElevator_EventScript_2206B9
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_220689:: @ 8220689
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoicedefault 0, 0, MULTI_FLOORS, 0, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2206C5
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_220695:: @ 8220695
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoicedefault 0, 0, MULTI_FLOORS, 1, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2206C5
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_2206A1:: @ 82206A1
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoicedefault 0, 0, MULTI_FLOORS, 2, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2206C5
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_2206AD:: @ 82206AD
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoicedefault 0, 0, MULTI_FLOORS, 3, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2206C5
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_2206B9:: @ 82206B9
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoicedefault 0, 0, MULTI_FLOORS, 4, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2206C5
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_2206C5:: @ 82206C5
|
|
|
|
switch VAR_RESULT
|
|
|
|
case 0, LilycoveCity_DepartmentStoreElevator_EventScript_2207B8
|
|
|
|
case 1, LilycoveCity_DepartmentStoreElevator_EventScript_220790
|
|
|
|
case 2, LilycoveCity_DepartmentStoreElevator_EventScript_220768
|
|
|
|
case 3, LilycoveCity_DepartmentStoreElevator_EventScript_220740
|
|
|
|
case 4, LilycoveCity_DepartmentStoreElevator_EventScript_220718
|
|
|
|
case 5, LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
2019-09-19 06:56:51 +02:00
|
|
|
case MULTI_B_PRESSED, LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_220718:: @ 8220718
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_0x8006, DEPT_STORE_FLOORNUM_1F
|
2018-06-15 05:00:09 +02:00
|
|
|
setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_1F, 255, 2, 1
|
2019-09-13 20:24:07 +02:00
|
|
|
compare VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_1F
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
2017-11-10 02:21:31 +01:00
|
|
|
call LilycoveCity_DepartmentStoreElevator_EventScript_2207E5
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_1F
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_220740:: @ 8220740
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_0x8006, DEPT_STORE_FLOORNUM_2F
|
2018-06-15 05:00:09 +02:00
|
|
|
setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_2F, 255, 2, 1
|
2019-09-13 20:24:07 +02:00
|
|
|
compare VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_2F
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
2017-11-10 02:21:31 +01:00
|
|
|
call LilycoveCity_DepartmentStoreElevator_EventScript_2207E5
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_2F
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_220768:: @ 8220768
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_0x8006, DEPT_STORE_FLOORNUM_3F
|
2018-06-15 05:00:09 +02:00
|
|
|
setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_3F, 255, 2, 1
|
2019-09-13 20:24:07 +02:00
|
|
|
compare VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_3F
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
2017-11-10 02:21:31 +01:00
|
|
|
call LilycoveCity_DepartmentStoreElevator_EventScript_2207E5
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_3F
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_220790:: @ 8220790
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_0x8006, DEPT_STORE_FLOORNUM_4F
|
2018-06-15 05:00:09 +02:00
|
|
|
setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_4F, 255, 2, 1
|
2019-09-13 20:24:07 +02:00
|
|
|
compare VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_4F
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
2017-11-10 02:21:31 +01:00
|
|
|
call LilycoveCity_DepartmentStoreElevator_EventScript_2207E5
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_4F
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_2207B8:: @ 82207B8
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_0x8006, DEPT_STORE_FLOORNUM_5F
|
2018-06-15 05:00:09 +02:00
|
|
|
setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_5F, 255, 2, 1
|
2019-09-13 20:24:07 +02:00
|
|
|
compare VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_5F
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
2017-11-10 02:21:31 +01:00
|
|
|
call LilycoveCity_DepartmentStoreElevator_EventScript_2207E5
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_DEPT_STORE_FLOOR, DEPT_STORE_FLOORNUM_5F
|
2017-11-10 02:21:31 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreElevator_EventScript_2207E0
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_2207E0:: @ 82207E0
|
2019-09-14 02:22:09 +02:00
|
|
|
special CloseDeptStoreElevatorWindow
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_2207E5:: @ 82207E5
|
2019-09-14 02:22:09 +02:00
|
|
|
special CloseDeptStoreElevatorWindow
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2019-10-06 19:55:30 +02:00
|
|
|
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
waitse
|
2019-09-14 02:22:09 +02:00
|
|
|
special MoveElevator
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
2018-10-17 18:25:12 +02:00
|
|
|
setflag FLAG_TEMP_2
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
LilycoveCity_DepartmentStoreElevator_EventScript_2207FC:: @ 82207FC
|
2019-09-13 20:24:07 +02:00
|
|
|
special SetDeptStoreFloor
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|