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

805 lines
17 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
L0_1 = {}
L0_1.group_id = 133008052
L1_1 = {}
L1_1.group_id = 133008052
L1_1.gadget_riddle_hint = 52011
L1_1.gadget_riddle_1 = 52012
L1_1.gadget_riddle_2 = 52013
L1_1.gadget_riddle_3 = 52014
L1_1.gadget_riddle_4 = 52015
L1_1.gadget_chest = 52004
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 52001
L3_1.gadget_id = 70350081
L4_1 = {}
L4_1.x = 876.358
L4_1.y = 323.8
L4_1.z = -547.858
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 43.911
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 30
L4_1 = GadgetState
L4_1 = L4_1.GearStop
L3_1.state = L4_1
L3_1.persistent = true
L3_1.area_id = 10
L4_1 = {}
L4_1.config_id = 52002
L4_1.gadget_id = 70380022
L5_1 = {}
L5_1.x = 895.711
L5_1.y = 319.969
L5_1.z = -572.593
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 0.0
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 30
L4_1.route_id = 300800001
L4_1.start_route = false
L4_1.persistent = true
L4_1.area_id = 10
L5_1 = {}
L5_1.config_id = 52004
L5_1.gadget_id = 70360001
L6_1 = {}
L6_1.x = 876.862
L6_1.y = 324.716
L6_1.z = -547.554
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 61.327
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 30
L5_1.persistent = true
L5_1.area_id = 10
L6_1 = {}
L6_1.config_id = 52011
L6_1.gadget_id = 70310012
L7_1 = {}
L7_1.x = 876.359
L7_1.y = 323.377
L7_1.z = -547.833
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 231.189
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 30
L6_1.persistent = true
L6_1.area_id = 10
L7_1 = {}
L7_1.config_id = 52012
L7_1.gadget_id = 70900009
L8_1 = {}
L8_1.x = 912.161
L8_1.y = 323.816
L8_1.z = -558.332
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 2.134
L8_1.y = 254.488
L8_1.z = 355.718
L7_1.rot = L8_1
L7_1.level = 30
L7_1.persistent = true
L7_1.area_id = 10
L8_1 = {}
L8_1.config_id = 52013
L8_1.gadget_id = 70900009
L9_1 = {}
L9_1.x = 874.961
L9_1.y = 323.972
L9_1.z = -572.504
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 359.554
L9_1.y = 317.448
L9_1.z = 342.618
L8_1.rot = L9_1
L8_1.level = 30
L8_1.persistent = true
L8_1.area_id = 10
L9_1 = {}
L9_1.config_id = 52014
L9_1.gadget_id = 70900009
L10_1 = {}
L10_1.x = 913.211
L10_1.y = 354.478
L10_1.z = -564.947
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.274
L10_1.y = 257.581
L10_1.z = 0.001
L9_1.rot = L10_1
L9_1.level = 30
L9_1.persistent = true
L9_1.area_id = 10
L10_1 = {}
L10_1.config_id = 52015
L10_1.gadget_id = 70900009
L11_1 = {}
L11_1.x = 863.349
L11_1.y = 331.766
L11_1.z = -567.835
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 349.544
L11_1.y = 338.639
L11_1.z = 10.032
L10_1.rot = L11_1
L10_1.level = 30
L10_1.persistent = true
L10_1.area_id = 10
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
L2_1[8] = L10_1
gadgets = L2_1
L2_1 = {}
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1052003
L3_1.name = "GADGET_CREATE_52003"
L4_1 = EventType
L4_1 = L4_1.EVENT_GADGET_CREATE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_GADGET_CREATE_52003"
L3_1.action = "action_EVENT_GADGET_CREATE_52003"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1052005
L4_1.name = "SELECT_OPTION_52005"
L5_1 = EventType
L5_1 = L5_1.EVENT_SELECT_OPTION
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_SELECT_OPTION_52005"
L4_1.action = "action_EVENT_SELECT_OPTION_52005"
L5_1 = {}
L5_1.config_id = 1052006
L5_1.name = "GROUP_LOAD_52006"
L6_1 = EventType
L6_1 = L6_1.EVENT_GROUP_LOAD
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_GROUP_LOAD_52006"
L5_1.action = "action_EVENT_GROUP_LOAD_52006"
L5_1.trigger_count = 0
L6_1 = {}
L6_1.config_id = 1052017
L6_1.name = "GADGET_STATE_CHANGE_52017"
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_52017"
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_52017"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1052018
L7_1.name = "VARIABLE_CHANGE_52018"
L8_1 = EventType
L8_1 = L8_1.EVENT_VARIABLE_CHANGE
L7_1.event = L8_1
L7_1.source = "State_Flag"
L7_1.condition = "condition_EVENT_VARIABLE_CHANGE_52018"
L7_1.action = "action_EVENT_VARIABLE_CHANGE_52018"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1052019
L8_1.name = "GROUP_LOAD_52019"
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_52019"
L9_1 = {}
L9_1.config_id = 1052020
L9_1.name = "PLATFORM_REACH_POINT_52020"
L10_1 = EventType
L10_1 = L10_1.EVENT_PLATFORM_REACH_POINT
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_PLATFORM_REACH_POINT_52020"
L9_1.action = "action_EVENT_PLATFORM_REACH_POINT_52020"
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
triggers = L2_1
L2_1 = {}
L3_1 = {}
L3_1.configId = 1
L3_1.name = "State_Flag"
L3_1.value = 0
L3_1.no_refresh = true
L4_1 = {}
L4_1.configId = 2
L4_1.name = "Finish"
L4_1.value = 0
L4_1.no_refresh = true
L2_1[1] = L3_1
L2_1[2] = L4_1
variables = L2_1
L2_1 = {}
L2_1.suite = 1
L2_1.end_suite = 0
L2_1.rand_suite = false
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 52001
L6_1 = 52002
L7_1 = 52011
L8_1 = 52012
L9_1 = 52013
L10_1 = 52014
L11_1 = 52015
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "GADGET_CREATE_52003"
L6_1 = "SELECT_OPTION_52005"
L7_1 = "GROUP_LOAD_52006"
L8_1 = "GADGET_STATE_CHANGE_52017"
L9_1 = "VARIABLE_CHANGE_52018"
L10_1 = "GROUP_LOAD_52019"
L11_1 = "PLATFORM_REACH_POINT_52020"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L2_1[1] = L3_1
suites = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 52004 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_CREATE_52003 = L2_1
function L2_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.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 133008052
L5_2 = 52004
L6_2 = {}
L7_2 = 24
L6_2[1] = L7_2
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_wok_options_by_configid"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_CREATE_52003 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 52004 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = A1_2.param2
if 24 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_SELECT_OPTION_52005 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 52001
L5_2 = GadgetState
L5_2 = L5_2.GearStart
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_gadget_state_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.KillEntityByConfigId
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 52004
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : kill_entity_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.StartPlatform
L3_2 = A0_2
L4_2 = 52002
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : start_platform"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.RefreshGroup
L3_2 = A0_2
L4_2 = {}
L4_2.group_id = 133008054
L4_2.suite = 1
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.RefreshGroup
L3_2 = A0_2
L4_2 = {}
L4_2.group_id = 133008379
L4_2.suite = 1
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.ChangeGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "canopen"
L5_2 = 1
L6_2 = 133008053
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : change_GroupVariable_by_group"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Finish"
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 = ScriptLib
L2_2 = L2_2.PlayCutScene
L3_2 = A0_2
L4_2 = 300805201
L5_2 = 0
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 : play_cutscene"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_SELECT_OPTION_52005 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "Finish"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GROUP_LOAD_52006 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.StartPlatform
L3_2 = A0_2
L4_2 = 52002
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : start_platform"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_52006 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
L3_2 = L1_1.gadget_riddle_1
if L2_2 ~= L3_2 then
L2_2 = A1_2.param2
L3_2 = L1_1.gadget_riddle_2
if L2_2 ~= L3_2 then
L2_2 = A1_2.param2
L3_2 = L1_1.gadget_riddle_3
if L2_2 ~= L3_2 then
L2_2 = A1_2.param2
L3_2 = L1_1.gadget_riddle_4
if L2_2 ~= L3_2 then
L2_2 = false
return L2_2
end
end
end
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_52017 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = A1_2.param1
L3_2 = GadgetState
L3_2 = L3_2.GearStart
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "State_Flag"
L5_2 = 1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.GetCurTriggerCount
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if 0 == L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 1
L6_2 = 1
L2_2(L3_2, L4_2, L5_2, L6_2)
end
else
L2_2 = A1_2.param1
L3_2 = GadgetState
L3_2 = L3_2.Default
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "State_Flag"
L5_2 = -1
L2_2(L3_2, L4_2, L5_2)
end
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_52017 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param1
L3_2 = A1_2.param2
if L2_2 == L3_2 then
L2_2 = false
return L2_2
end
L2_2 = A1_2.param1
if not (L2_2 < 0) then
L2_2 = A1_2.param1
if not (4 < L2_2) then
goto lbl_15
end
end
L2_2 = false
do return L2_2 end
::lbl_15::
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_52018 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = A1_2.param1
if L2_2 == 0 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Default
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 1 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Action01
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 2
L6_2 = 2
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 2 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Action02
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 2
L6_2 = 3
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 3 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Action03
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 2
L6_2 = 4
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 4 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.GearStart
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 3
L6_2 = 5
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.CreateGadget
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 52004
L2_2(L3_2, L4_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 52001
L5_2 = GadgetState
L5_2 = L5_2.Default
L2_2(L3_2, L4_2, L5_2)
end
end
end
end
end
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_52018 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = 0
L3_2 = ScriptLib
L3_2 = L3_2.GetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_riddle_1
L3_2 = L3_2(L4_2, L5_2, L6_2)
L4_2 = GadgetState
L4_2 = L4_2.GearStart
if L3_2 == L4_2 then
L2_2 = L2_2 + 1
end
L3_2 = ScriptLib
L3_2 = L3_2.GetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_riddle_2
L3_2 = L3_2(L4_2, L5_2, L6_2)
L4_2 = GadgetState
L4_2 = L4_2.GearStart
if L3_2 == L4_2 then
L2_2 = L2_2 + 1
end
L3_2 = ScriptLib
L3_2 = L3_2.GetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_riddle_3
L3_2 = L3_2(L4_2, L5_2, L6_2)
L4_2 = GadgetState
L4_2 = L4_2.GearStart
if L3_2 == L4_2 then
L2_2 = L2_2 + 1
end
L3_2 = ScriptLib
L3_2 = L3_2.GetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_riddle_4
L3_2 = L3_2(L4_2, L5_2, L6_2)
L4_2 = GadgetState
L4_2 = L4_2.GearStart
if L3_2 == L4_2 then
L2_2 = L2_2 + 1
end
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupVariableValue
L4_2 = A0_2
L5_2 = "State_Flag"
L6_2 = L2_2
L3_2(L4_2, L5_2, L6_2)
L3_2 = 0
return L3_2
end
action_EVENT_GROUP_LOAD_52019 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 52002 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = A1_2.param2
if 300800001 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = A1_2.param3
if 1 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_PLATFORM_REACH_POINT_52020 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Finish"
L5_2 = 2
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_PLATFORM_REACH_POINT_52020 = L2_1