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

645 lines
13 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
L0_1 = {}
L0_1.group_id = 133210284
L1_1 = {}
L1_1.active_step = 201
L1_1.inactive_step = 0
L2_1 = {}
L3_1 = 284003
L4_1 = 284002
L5_1 = 284004
L6_1 = 284001
L7_1 = 284005
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
L1_1.gadget_array = L2_1
L2_1 = {}
L1_1.reset_gear_list = L2_1
L2_1 = 0
L3_1 = 0
L4_1 = L1_1.gadget_array
L4_1 = #L4_1
L5_1 = {}
monsters = L5_1
L5_1 = {}
npcs = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 284001
L6_1.gadget_id = 70900008
L7_1 = {}
L7_1.x = -3868.454
L7_1.y = 101.97
L7_1.z = -788.426
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 11.87
L7_1.y = 229.137
L7_1.z = 356.155
L6_1.rot = L7_1
L6_1.level = 30
L6_1.persistent = true
L6_1.area_id = 17
L7_1 = {}
L7_1.config_id = 284002
L7_1.gadget_id = 70900008
L8_1 = {}
L8_1.x = -3863.547
L8_1.y = 106.505
L8_1.z = -803.297
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 355.94
L8_1.y = 209.302
L8_1.z = 355.749
L7_1.rot = L8_1
L7_1.level = 30
L7_1.persistent = true
L7_1.area_id = 17
L8_1 = {}
L8_1.config_id = 284003
L8_1.gadget_id = 70900008
L9_1 = {}
L9_1.x = -3887.793
L9_1.y = 109.5
L9_1.z = -790.218
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 358.831
L9_1.y = 247.311
L9_1.z = 339.244
L8_1.rot = L9_1
L8_1.level = 30
L8_1.persistent = true
L8_1.area_id = 17
L9_1 = {}
L9_1.config_id = 284004
L9_1.gadget_id = 70900008
L10_1 = {}
L10_1.x = -3894.866
L10_1.y = 108.284
L10_1.z = -806.261
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 355.327
L10_1.y = 186.965
L10_1.z = 12.032
L9_1.rot = L10_1
L9_1.level = 30
L9_1.persistent = true
L9_1.area_id = 17
L10_1 = {}
L10_1.config_id = 284005
L10_1.gadget_id = 70900008
L11_1 = {}
L11_1.x = -3889.874
L11_1.y = 101.246
L11_1.z = -818.933
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 1.781
L11_1.y = 359.847
L11_1.z = 356.42
L10_1.rot = L11_1
L10_1.level = 30
L10_1.persistent = true
L10_1.area_id = 17
L11_1 = {}
L11_1.config_id = 284006
L11_1.gadget_id = 70211101
L12_1 = {}
L12_1.x = -3864.194
L12_1.y = 107.366
L12_1.z = -810.462
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 7.064
L12_1.y = 10.211
L12_1.z = 1.847
L11_1.rot = L12_1
L11_1.level = 26
L11_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\231\168\187\229\166\187"
L11_1.isOneoff = true
L11_1.persistent = true
L12_1 = {}
L12_1.name = "chest"
L12_1.exp = 1
L11_1.explore = L12_1
L11_1.area_id = 17
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 = 1284007
L6_1.name = "GADGET_STATE_CHANGE_284007"
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_284007"
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_284007"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1284008
L7_1.name = "VARIABLE_CHANGE_284008"
L8_1 = EventType
L8_1 = L8_1.EVENT_VARIABLE_CHANGE
L7_1.event = L8_1
L7_1.source = "gear_reset"
L7_1.condition = ""
L7_1.action = "action_EVENT_VARIABLE_CHANGE_284008"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1284009
L8_1.name = "VARIABLE_CHANGE_284009"
L9_1 = EventType
L9_1 = L9_1.EVENT_VARIABLE_CHANGE
L8_1.event = L9_1
L8_1.source = "trigger_output"
L8_1.condition = "condition_EVENT_VARIABLE_CHANGE_284009"
L8_1.action = ""
L8_1.trigger_count = 0
L9_1 = {}
L9_1.config_id = 1284010
L9_1.name = "VARIABLE_CHANGE_284010"
L10_1 = EventType
L10_1 = L10_1.EVENT_VARIABLE_CHANGE
L9_1.event = L10_1
L9_1.source = "trigger_output"
L9_1.condition = "condition_EVENT_VARIABLE_CHANGE_284010"
L9_1.action = "action_EVENT_VARIABLE_CHANGE_284010"
L9_1.trigger_count = 0
L10_1 = {}
L10_1.config_id = 1284011
L10_1.name = "GROUP_LOAD_284011"
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_284011"
L10_1.action = "action_EVENT_GROUP_LOAD_284011"
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 = "sort"
L6_1.value = 0
L6_1.no_refresh = true
L7_1 = {}
L7_1.configId = 2
L7_1.name = "gear_reset"
L7_1.value = 0
L7_1.no_refresh = true
L8_1 = {}
L8_1.configId = 3
L8_1.name = "v_error"
L8_1.value = 0
L8_1.no_refresh = true
L9_1 = {}
L9_1.configId = 4
L9_1.name = "trigger_output"
L9_1.value = 0
L9_1.no_refresh = true
L10_1 = {}
L10_1.configId = 5
L10_1.name = "Success"
L10_1.value = 0
L10_1.no_refresh = true
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
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 = 284001
L9_1 = 284002
L10_1 = 284003
L11_1 = 284004
L12_1 = 284005
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.gadgets = L7_1
L7_1 = {}
L6_1.regions = L7_1
L7_1 = {}
L8_1 = "GADGET_STATE_CHANGE_284007"
L9_1 = "VARIABLE_CHANGE_284008"
L10_1 = "VARIABLE_CHANGE_284009"
L11_1 = "VARIABLE_CHANGE_284010"
L12_1 = "GROUP_LOAD_284011"
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, L6_2, L7_2
L2_2 = 1
L3_2 = L1_1.gadget_array
L3_2 = #L3_2
L4_2 = 1
for L5_2 = L2_2, L3_2, L4_2 do
L6_2 = L1_1.gadget_array
L6_2 = L6_2[L5_2]
L7_2 = A1_2.param2
if L6_2 == L7_2 then
L6_2 = true
return L6_2
end
end
L2_2 = false
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_284007 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
L2_2 = L4_1
if not (9 < L2_2) then
L2_2 = L4_1
if not (L2_2 <= 1) then
goto lbl_9
end
end
L2_2 = -1
do return L2_2 end
::lbl_9::
L2_2 = A1_2.param1
L3_2 = L1_1.active_step
if L2_2 == L3_2 then
L2_2 = 1
L3_2 = L4_1
L4_2 = 1
for L5_2 = L2_2, L3_2, L4_2 do
L6_2 = L1_1.gadget_array
L6_2 = L6_2[L5_2]
L7_2 = A1_2.param2
if L6_2 == L7_2 then
L6_2 = ScriptLib
L6_2 = L6_2.GetGroupVariableValue
L7_2 = A0_2
L8_2 = "sort"
L6_2 = L6_2(L7_2, L8_2)
L2_1 = L6_2
L6_2 = L2_1
L6_2 = 10 * L6_2
L6_2 = L6_2 + L5_2
L2_1 = L6_2
L6_2 = ScriptLib
L6_2 = L6_2.SetGroupVariableValue
L7_2 = A0_2
L8_2 = "sort"
L9_2 = L2_1
L6_2(L7_2, L8_2, L9_2)
break
end
L6_2 = L4_1
if L5_2 == L6_2 then
L6_2 = L1_1.gadget_array
L6_2 = L6_2[L5_2]
L7_2 = A1_2.param2
if L6_2 ~= L7_2 then
L6_2 = ScriptLib
L6_2 = L6_2.SetGroupVariableValue
L7_2 = A0_2
L8_2 = "v_error"
L9_2 = 1
L6_2(L7_2, L8_2, L9_2)
L6_2 = L2_1
L6_2 = 10 * L6_2
L2_1 = L6_2
end
end
end
end
L2_2 = L2_1
L3_2 = L4_1
L3_2 = L3_2 - 1
L3_2 = 10 ^ L3_2
if L2_2 > L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "v_error"
L2_2 = L2_2(L3_2, L4_2)
L3_1 = L2_2
L2_2 = L3_1
if 0 == L2_2 then
L2_2 = L4_1
L3_2 = 1
L4_2 = -1
for L5_2 = L2_2, L3_2, L4_2 do
L6_2 = L2_1
L6_2 = L6_2 % 10
if L6_2 ~= L5_2 then
L6_2 = 1
L3_1 = L6_2
break
end
L6_2 = math
L6_2 = L6_2.floor
L7_2 = L2_1
L7_2 = L7_2 / 10
L6_2 = L6_2(L7_2)
L2_1 = L6_2
end
end
L2_2 = 0
L2_1 = L2_2
L2_2 = L3_1
if L2_2 ~= 1 then
L2_2 = -1
L3_1 = L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "sort"
L5_2 = L2_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "gear_reset"
L5_2 = L3_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "v_error"
L5_2 = 0
L2_2(L3_2, L4_2, L5_2)
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_284007 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
L2_2 = A1_2.param1
L3_2 = A1_2.param2
if L2_2 == L3_2 then
L2_2 = -1
return L2_2
end
L2_2 = A1_2.param1
if L2_2 == 1 then
L2_2 = L1_1.reset_gear_list
L2_2 = #L2_2
if L2_2 == 0 then
L2_2 = suites
L2_2 = L2_2[1]
L2_2 = L2_2.gadgets
L1_1.reset_gear_list = L2_2
end
L2_2 = 1
L3_2 = L1_1.reset_gear_list
L3_2 = #L3_2
L4_2 = 1
for L5_2 = L2_2, L3_2, L4_2 do
L6_2 = ScriptLib
L6_2 = L6_2.SetGroupGadgetStateByConfigId
L7_2 = A0_2
L8_2 = 0
L9_2 = L1_1.reset_gear_list
L9_2 = L9_2[L5_2]
L10_2 = L1_1.inactive_step
L6_2(L7_2, L8_2, L9_2, L10_2)
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "trigger_output"
L5_2 = -1
L2_2(L3_2, L4_2, L5_2)
else
L2_2 = A1_2.param1
if -1 == L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "trigger_output"
L5_2 = 1
L2_2(L3_2, L4_2, L5_2)
end
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "gear_reset"
L5_2 = 0
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_284008 = L5_1
function L5_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 L2_2 == -1 then
L2_2 = true
return L2_2
end
L2_2 = false
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_284009 = L5_1
function L5_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 0 < L2_2 then
L2_2 = true
return L2_2
end
L2_2 = false
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_284010 = 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.CreateGadget
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 284006
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 : create_gadget"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GoToFlowSuite
L3_2 = A0_2
L4_2 = 133210285
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Success"
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_VARIABLE_CHANGE_284010 = L5_1
function L5_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 = "Success"
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_284011 = 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.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 284001
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.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 284002
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.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 284003
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.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 284004
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.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 284005
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 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_284011 = L5_1