mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
504 lines
9.9 KiB
Lua
504 lines
9.9 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 = 155006087
|
|
L1_1 = {}
|
|
L1_1.active_step = 201
|
|
L1_1.inactive_step = 0
|
|
L2_1 = {}
|
|
L3_1 = 87001
|
|
L4_1 = 87002
|
|
L5_1 = 87003
|
|
L6_1 = 87004
|
|
L7_1 = 87005
|
|
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 = 87001
|
|
L6_1.gadget_id = 70900056
|
|
L7_1 = {}
|
|
L7_1.x = 453.328
|
|
L7_1.y = 178.42
|
|
L7_1.z = -330.917
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 7.572
|
|
L7_1.y = 359.982
|
|
L7_1.z = 359.731
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 1
|
|
L6_1.persistent = true
|
|
L6_1.area_id = 200
|
|
L7_1 = {}
|
|
L7_1.config_id = 87002
|
|
L7_1.gadget_id = 70900056
|
|
L8_1 = {}
|
|
L8_1.x = 473.458
|
|
L8_1.y = 182.983
|
|
L8_1.z = -366.188
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 13.177
|
|
L8_1.y = 0.326
|
|
L8_1.z = 3.196
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 1
|
|
L7_1.persistent = true
|
|
L7_1.area_id = 200
|
|
L8_1 = {}
|
|
L8_1.config_id = 87003
|
|
L8_1.gadget_id = 70900056
|
|
L9_1 = {}
|
|
L9_1.x = 477.713
|
|
L9_1.y = 178.894
|
|
L9_1.z = -342.367
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 10.634
|
|
L9_1.y = 0.142
|
|
L9_1.z = 356.085
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 1
|
|
L8_1.persistent = true
|
|
L8_1.area_id = 200
|
|
L9_1 = {}
|
|
L9_1.config_id = 87004
|
|
L9_1.gadget_id = 70900056
|
|
L10_1 = {}
|
|
L10_1.x = 459.85
|
|
L10_1.y = 180.814
|
|
L10_1.z = -352.123
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 5.621
|
|
L10_1.y = 0.118
|
|
L10_1.z = 1.651
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 1
|
|
L9_1.persistent = true
|
|
L9_1.area_id = 200
|
|
L10_1 = {}
|
|
L10_1.config_id = 87005
|
|
L10_1.gadget_id = 70900056
|
|
L11_1 = {}
|
|
L11_1.x = 499.259
|
|
L11_1.y = 184.905
|
|
L11_1.z = -372.218
|
|
L10_1.pos = L11_1
|
|
L11_1 = {}
|
|
L11_1.x = 14.552
|
|
L11_1.y = 0.633
|
|
L11_1.z = 359.196
|
|
L10_1.rot = L11_1
|
|
L10_1.level = 1
|
|
L10_1.persistent = true
|
|
L10_1.area_id = 200
|
|
L11_1 = {}
|
|
L11_1.config_id = 87006
|
|
L11_1.gadget_id = 70211111
|
|
L12_1 = {}
|
|
L12_1.x = 497.999
|
|
L12_1.y = 183.226
|
|
L12_1.z = -366.092
|
|
L11_1.pos = L12_1
|
|
L12_1 = {}
|
|
L12_1.x = 14.175
|
|
L12_1.y = 30.55
|
|
L12_1.z = 8.992
|
|
L11_1.rot = L12_1
|
|
L11_1.level = 16
|
|
L11_1.drop_tag = "\232\167\163\232\176\156\228\184\173\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 = 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 = 1087007
|
|
L6_1.name = "GADGET_STATE_CHANGE_87007"
|
|
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_87007"
|
|
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_87007"
|
|
L6_1.trigger_count = 0
|
|
L7_1 = {}
|
|
L7_1.config_id = 1087008
|
|
L7_1.name = "VARIABLE_CHANGE_87008"
|
|
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_87008"
|
|
L7_1.trigger_count = 0
|
|
L8_1 = {}
|
|
L8_1.config_id = 1087009
|
|
L8_1.name = "VARIABLE_CHANGE_87009"
|
|
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_87009"
|
|
L8_1.action = ""
|
|
L8_1.trigger_count = 0
|
|
L9_1 = {}
|
|
L9_1.config_id = 1087010
|
|
L9_1.name = "VARIABLE_CHANGE_87010"
|
|
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_87010"
|
|
L9_1.action = "action_EVENT_VARIABLE_CHANGE_87010"
|
|
L9_1.trigger_count = 0
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L5_1[4] = L9_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
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L5_1[4] = L9_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 = 87001
|
|
L9_1 = 87002
|
|
L10_1 = 87003
|
|
L11_1 = 87004
|
|
L12_1 = 87005
|
|
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_87007"
|
|
L9_1 = "VARIABLE_CHANGE_87008"
|
|
L10_1 = "VARIABLE_CHANGE_87009"
|
|
L11_1 = "VARIABLE_CHANGE_87010"
|
|
L7_1[1] = L8_1
|
|
L7_1[2] = L9_1
|
|
L7_1[3] = L10_1
|
|
L7_1[4] = L11_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_87007 = 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_87007 = 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_87008 = 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_87009 = 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_87010 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateGadget
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.config_id = 87006
|
|
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 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_VARIABLE_CHANGE_87010 = L5_1
|