Grasscutter_Resources/Resources/Scripts/Scene/5/scene5_group155005118.lua
2022-04-29 16:40:51 +02:00

488 lines
9.8 KiB
Lua

local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1
L0_1 = {}
L0_1.group_id = 155005118
L1_1 = {}
L1_1.pointarryRot = 500500007
L1_1.pointarryRott = 500500008
L2_1 = {}
L3_1 = 118003
L4_1 = 118004
L2_1[1] = L3_1
L2_1[2] = L4_1
L3_1 = {}
L4_1 = {}
L5_1 = {}
monsters = L5_1
L5_1 = {}
npcs = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 118001
L6_1.gadget_id = 70290170
L7_1 = {}
L7_1.x = 644.987
L7_1.y = 191.653
L7_1.z = 491.749
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 170.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 36
L6_1.persistent = true
L6_1.is_use_point_array = true
L6_1.area_id = 200
L7_1 = {}
L7_1.config_id = 118002
L7_1.gadget_id = 70211101
L8_1 = {}
L8_1.x = 631.762
L8_1.y = 192.268
L8_1.z = 494.572
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 82.509
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 16
L7_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\231\168\187\229\166\187"
L7_1.isOneoff = true
L7_1.persistent = true
L8_1 = {}
L8_1.name = "chest"
L8_1.exp = 1
L7_1.explore = L8_1
L7_1.area_id = 200
L8_1 = {}
L8_1.config_id = 118003
L8_1.gadget_id = 70360305
L9_1 = {}
L9_1.x = 642.484
L9_1.y = 191.668
L9_1.z = 480.686
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 4.548
L9_1.y = 161.352
L9_1.z = 357.743
L8_1.rot = L9_1
L8_1.level = 36
L8_1.area_id = 200
L9_1 = {}
L9_1.config_id = 118004
L9_1.gadget_id = 70360309
L10_1 = {}
L10_1.x = 646.886
L10_1.y = 192.219
L10_1.z = 498.093
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 78.295
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 36
L9_1.area_id = 200
L10_1 = {}
L10_1.config_id = 118005
L10_1.gadget_id = 70211101
L11_1 = {}
L11_1.x = 643.522
L11_1.y = 192.32
L11_1.z = 499.43
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 168.68
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 16
L10_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\231\168\187\229\166\187"
L10_1.isOneoff = true
L10_1.persistent = true
L11_1 = {}
L11_1.name = "chest"
L11_1.exp = 1
L10_1.explore = L11_1
L10_1.area_id = 200
L11_1 = {}
L11_1.config_id = 118006
L11_1.gadget_id = 70290170
L12_1 = {}
L12_1.x = 639.047
L12_1.y = 191.653
L12_1.z = 495.544
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 80.52
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 36
L11_1.persistent = true
L11_1.is_use_point_array = true
L11_1.area_id = 200
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
L5_1[6] = L11_1
gadgets = L5_1
L5_1 = {}
regions = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 1118007
L6_1.name = "GADGET_STATE_CHANGE_118007"
L7_1 = EventType
L7_1 = L7_1.EVENT_GADGET_STATE_CHANGE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_118007"
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_118007"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1118008
L7_1.name = "GADGET_STATE_CHANGE_118008"
L8_1 = EventType
L8_1 = L8_1.EVENT_GADGET_STATE_CHANGE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_118008"
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_118008"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1118009
L8_1.name = "GROUP_LOAD_118009"
L9_1 = EventType
L9_1 = L9_1.EVENT_GROUP_LOAD
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = ""
L8_1.action = "action_EVENT_GROUP_LOAD_118009"
L8_1.trigger_count = 0
L9_1 = {}
L9_1.config_id = 1118010
L9_1.name = "GROUP_LOAD_118010"
L10_1 = EventType
L10_1 = L10_1.EVENT_GROUP_LOAD
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_GROUP_LOAD_118010"
L9_1.action = "action_EVENT_GROUP_LOAD_118010"
L9_1.trigger_count = 0
L10_1 = {}
L10_1.config_id = 1118011
L10_1.name = "GROUP_LOAD_118011"
L11_1 = EventType
L11_1 = L11_1.EVENT_GROUP_LOAD
L10_1.event = L11_1
L10_1.source = ""
L10_1.condition = "condition_EVENT_GROUP_LOAD_118011"
L10_1.action = "action_EVENT_GROUP_LOAD_118011"
L10_1.trigger_count = 0
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
triggers = L5_1
L5_1 = {}
L6_1 = {}
L6_1.configId = 1
L6_1.name = "Door02"
L6_1.value = 0
L6_1.no_refresh = true
L7_1 = {}
L7_1.configId = 2
L7_1.name = "Door01"
L7_1.value = 0
L7_1.no_refresh = true
L5_1[1] = L6_1
L5_1[2] = L7_1
variables = L5_1
L5_1 = {}
L5_1.suite = 1
L5_1.end_suite = 0
L5_1.rand_suite = false
init_config = L5_1
L5_1 = {}
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L8_1 = 118001
L9_1 = 118002
L10_1 = 118003
L11_1 = 118004
L12_1 = 118005
L13_1 = 118006
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L7_1[5] = L12_1
L7_1[6] = L13_1
L6_1.gadgets = L7_1
L7_1 = {}
L6_1.regions = L7_1
L7_1 = {}
L8_1 = "GADGET_STATE_CHANGE_118007"
L9_1 = "GADGET_STATE_CHANGE_118008"
L10_1 = "GROUP_LOAD_118009"
L11_1 = "GROUP_LOAD_118010"
L12_1 = "GROUP_LOAD_118011"
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L7_1[5] = L12_1
L6_1.triggers = L7_1
L6_1.rand_weight = 100
L5_1[1] = L6_1
suites = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = A1_2.param2
if 118003 == L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.GetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 155005118
L5_2 = 118003
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 222 == L2_2 then
goto lbl_14
end
end
L2_2 = false
do return L2_2 end
::lbl_14::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_118007 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L2_2 = ScriptLib
L2_2 = L2_2.SetPlatformPointArray
L3_2 = A0_2
L4_2 = 118001
L5_2 = L1_1.pointarryRot
L6_2 = {}
L7_2 = 1
L6_2[1] = L7_2
L7_2 = {}
L7_2.route_type = 0
L7_2.turn_mode = true
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = {}
L2_2.x = 644.9871
L2_2.y = 195
L2_2.z = 492
L3_2 = {}
L3_2.x = 0
L3_2.y = 0
L3_2.z = 0
L4_2 = ScriptLib
L4_2 = L4_2.BeginCameraSceneLook
L5_2 = A0_2
L6_2 = {}
L6_2.look_pos = L2_2
L6_2.is_allow_input = false
L6_2.duration = 2
L6_2.is_force = true
L6_2.is_broadcast = false
L6_2.is_recover_keep_current = true
L6_2.delay = 0
L6_2.is_set_follow_pos = false
L6_2.follow_pos = L3_2
L6_2.is_force_walk = false
L6_2.is_change_play_mode = false
L6_2.is_set_screen_XY = false
L6_2.screen_x = 0
L6_2.screen_y = 0
L4_2 = L4_2(L5_2, L6_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : active_cameraLook_Begin"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = ScriptLib
L4_2 = L4_2.SetGroupVariableValue
L5_2 = A0_2
L6_2 = "Door01"
L7_2 = 1
L4_2 = L4_2(L5_2, L6_2, L7_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : set_groupVariable"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = 0
return L4_2
end
action_EVENT_GADGET_STATE_CHANGE_118007 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = A1_2.param2
if 118004 == L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.GetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 155005118
L5_2 = 118004
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 322 == L2_2 then
goto lbl_14
end
end
L2_2 = false
do return L2_2 end
::lbl_14::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_118008 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L2_2 = ScriptLib
L2_2 = L2_2.SetPlatformPointArray
L3_2 = A0_2
L4_2 = 118006
L5_2 = L1_1.pointarryRott
L6_2 = {}
L7_2 = 1
L6_2[1] = L7_2
L7_2 = {}
L7_2.route_type = 0
L7_2.turn_mode = true
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetPlatformPointArray
L3_2 = A0_2
L4_2 = 118001
L5_2 = L1_1.pointarryRot
L6_2 = {}
L7_2 = 1
L6_2[1] = L7_2
L7_2 = {}
L7_2.route_type = 0
L7_2.turn_mode = true
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Door02"
L5_2 = 1
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_groupVariable"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_118008 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = DayNight_Gadget_Unlock
L3_2 = A0_2
L4_2 = 118003
L2_2(L3_2, L4_2)
L2_2 = DayNight_Gadget_Unlock
L3_2 = A0_2
L4_2 = 118004
L2_2(L3_2, L4_2)
L2_2 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_118009 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "Door02"
L5_2 = 155005118
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GROUP_LOAD_118010 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L2_2 = ScriptLib
L2_2 = L2_2.SetPlatformPointArray
L3_2 = A0_2
L4_2 = 118006
L5_2 = L1_1.pointarryRott
L6_2 = {}
L7_2 = 1
L6_2[1] = L7_2
L7_2 = {}
L7_2.route_type = 0
L7_2.turn_mode = true
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_118010 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "Door01"
L5_2 = 155005118
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GROUP_LOAD_118011 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L2_2 = ScriptLib
L2_2 = L2_2.SetPlatformPointArray
L3_2 = A0_2
L4_2 = 118001
L5_2 = L1_1.pointarryRot
L6_2 = {}
L7_2 = 1
L6_2[1] = L7_2
L7_2 = {}
L7_2.route_type = 0
L7_2.turn_mode = true
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_118011 = L5_1
L5_1 = require
L6_1 = "V2_4/EnvState"
L5_1(L6_1)