mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
341 lines
6.8 KiB
Lua
341 lines
6.8 KiB
Lua
local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1
|
|
L0_1 = {}
|
|
L0_1.group_id = 177005165
|
|
L1_1 = {}
|
|
L1_1.group_id = 177005165
|
|
L1_1.gadget_riddle_1 = 165002
|
|
L1_1.gadget_riddle_2 = 165003
|
|
L1_1.gadget_riddle_3 = 165004
|
|
L1_1.gadget_riddle_4 = 165005
|
|
L1_1.gadget_chest = 165006
|
|
L2_1 = {}
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 165002
|
|
L3_1.gadget_id = 70310011
|
|
L4_1 = {}
|
|
L4_1.x = 578.238
|
|
L4_1.y = 239.194
|
|
L4_1.z = 845.52
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 346.357
|
|
L4_1.y = 292.559
|
|
L4_1.z = 3.029
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 36
|
|
L3_1.persistent = true
|
|
L3_1.area_id = 210
|
|
L4_1 = {}
|
|
L4_1.config_id = 165003
|
|
L4_1.gadget_id = 70310011
|
|
L5_1 = {}
|
|
L5_1.x = 559.006
|
|
L5_1.y = 234.53
|
|
L5_1.z = 845.572
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 22.887
|
|
L5_1.y = 276.486
|
|
L5_1.z = 353.933
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 36
|
|
L4_1.persistent = true
|
|
L4_1.area_id = 210
|
|
L5_1 = {}
|
|
L5_1.config_id = 165004
|
|
L5_1.gadget_id = 70310011
|
|
L6_1 = {}
|
|
L6_1.x = 578.322
|
|
L6_1.y = 230.081
|
|
L6_1.z = 865.556
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 0.0
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 36
|
|
L5_1.persistent = true
|
|
L5_1.area_id = 210
|
|
L6_1 = {}
|
|
L6_1.config_id = 165005
|
|
L6_1.gadget_id = 70310011
|
|
L7_1 = {}
|
|
L7_1.x = 558.895
|
|
L7_1.y = 234.132
|
|
L7_1.z = 865.826
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 333.803
|
|
L7_1.y = 12.344
|
|
L7_1.z = 336.462
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 36
|
|
L6_1.persistent = true
|
|
L6_1.area_id = 210
|
|
L7_1 = {}
|
|
L7_1.config_id = 165006
|
|
L7_1.gadget_id = 70211161
|
|
L8_1 = {}
|
|
L8_1.x = 559.57
|
|
L8_1.y = 230.072
|
|
L8_1.z = 855.556
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 270.4
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 16
|
|
L7_1.drop_tag = "\230\184\138\228\184\139\229\174\171\230\180\187\229\138\168\228\184\173\231\186\167\231\168\187\229\166\187"
|
|
L7_1.isOneoff = true
|
|
L7_1.persistent = true
|
|
L7_1.area_id = 210
|
|
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
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1165007
|
|
L3_1.name = "GADGET_STATE_CHANGE_165007"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_GADGET_STATE_CHANGE
|
|
L3_1.event = L4_1
|
|
L3_1.source = ""
|
|
L3_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_165007"
|
|
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_165007"
|
|
L3_1.trigger_count = 0
|
|
L4_1 = {}
|
|
L4_1.config_id = 1165008
|
|
L4_1.name = "VARIABLE_CHANGE_165008"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_VARIABLE_CHANGE
|
|
L4_1.event = L5_1
|
|
L4_1.source = "State_Flag"
|
|
L4_1.condition = "condition_EVENT_VARIABLE_CHANGE_165008"
|
|
L4_1.action = "action_EVENT_VARIABLE_CHANGE_165008"
|
|
L4_1.trigger_count = 0
|
|
L5_1 = {}
|
|
L5_1.config_id = 1165009
|
|
L5_1.name = "GROUP_LOAD_165009"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_GROUP_LOAD
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = ""
|
|
L5_1.action = "action_EVENT_GROUP_LOAD_165009"
|
|
L5_1.trigger_count = 0
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_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
|
|
L2_1[1] = L3_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 = 165002
|
|
L6_1 = 165003
|
|
L7_1 = 165004
|
|
L8_1 = 165005
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_1
|
|
L4_1[4] = L8_1
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "GADGET_STATE_CHANGE_165007"
|
|
L6_1 = "VARIABLE_CHANGE_165008"
|
|
L7_1 = "GROUP_LOAD_165009"
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_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, 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_165007 = 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_165007 = 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_165008 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = A1_2.param1
|
|
if L2_2 == 4 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateGadget
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.config_id = 165006
|
|
L2_2(L3_2, L4_2)
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_VARIABLE_CHANGE_165008 = 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_165009 = L2_1
|