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

454 lines
9.1 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 = 155007074
L1_1 = {}
L1_1.max_gear = 4
L1_1.timer = 10
L1_1.group_id = 155007074
L1_1.gadget_1 = 74001
L1_1.gadget_2 = 74002
L1_1.gadget_3 = 74003
L1_1.gadget_4 = 74005
L1_1.gadget_chest = 74004
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 74001
L3_1.gadget_id = 70900008
L4_1 = {}
L4_1.x = -430.851
L4_1.y = 208.46
L4_1.z = 1612.807
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 354.488
L4_1.y = 332.25
L4_1.z = 343.385
L3_1.rot = L4_1
L3_1.level = 36
L4_1 = GadgetState
L4_1 = L4_1.Action01
L3_1.state = L4_1
L3_1.persistent = true
L3_1.area_id = 200
L4_1 = {}
L4_1.config_id = 74002
L4_1.gadget_id = 70900008
L5_1 = {}
L5_1.x = -421.102
L5_1.y = 204.712
L5_1.z = 1616.235
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 348.327
L5_1.y = 303.499
L5_1.z = 350.824
L4_1.rot = L5_1
L4_1.level = 36
L5_1 = GadgetState
L5_1 = L5_1.Action01
L4_1.state = L5_1
L4_1.persistent = true
L4_1.area_id = 200
L5_1 = {}
L5_1.config_id = 74003
L5_1.gadget_id = 70900008
L6_1 = {}
L6_1.x = -420.661
L6_1.y = 204.925
L6_1.z = 1607.349
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 13.463
L6_1.y = 56.803
L6_1.z = 342.355
L5_1.rot = L6_1
L5_1.level = 36
L6_1 = GadgetState
L6_1 = L6_1.Action01
L5_1.state = L6_1
L5_1.persistent = true
L5_1.area_id = 200
L6_1 = {}
L6_1.config_id = 74004
L6_1.gadget_id = 70211101
L7_1 = {}
L7_1.x = -425.192
L7_1.y = 206.408
L7_1.z = 1608.066
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 350.338
L7_1.y = 325.794
L7_1.z = 339.662
L6_1.rot = L7_1
L6_1.level = 26
L6_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\231\168\187\229\166\187"
L6_1.showcutscene = true
L6_1.isOneoff = true
L6_1.persistent = true
L7_1 = {}
L7_1.name = "chest"
L7_1.exp = 1
L6_1.explore = L7_1
L6_1.area_id = 200
L7_1 = {}
L7_1.config_id = 74005
L7_1.gadget_id = 70900008
L8_1 = {}
L8_1.x = -428.914
L8_1.y = 207.595
L8_1.z = 1601.545
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 354.533
L8_1.y = 2.101
L8_1.z = 341.205
L7_1.rot = L8_1
L7_1.level = 36
L8_1 = GadgetState
L8_1 = L8_1.Action01
L7_1.state = L8_1
L7_1.persistent = true
L7_1.area_id = 200
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 = 1074006
L3_1.name = "GADGET_STATE_CHANGE_74006"
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_74006"
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_74006"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1074007
L4_1.name = "TIMER_EVENT_74007"
L5_1 = EventType
L5_1 = L5_1.EVENT_TIMER_EVENT
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_TIMER_EVENT_74007"
L4_1.action = "action_EVENT_TIMER_EVENT_74007"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1074008
L5_1.name = "VARIABLE_CHANGE_74008"
L6_1 = EventType
L6_1 = L6_1.EVENT_VARIABLE_CHANGE
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_VARIABLE_CHANGE_74008"
L5_1.action = "action_EVENT_VARIABLE_CHANGE_74008"
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 = "active_count"
L3_1.value = 0
L3_1.no_refresh = false
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 = 74001
L6_1 = 74002
L7_1 = 74003
L8_1 = 74005
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_74006"
L6_1 = "TIMER_EVENT_74007"
L7_1 = "VARIABLE_CHANGE_74008"
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 = L1_1.gadget_1
L3_2 = A1_2.param2
if L2_2 ~= L3_2 then
L2_2 = L1_1.gadget_2
L3_2 = A1_2.param2
if L2_2 ~= L3_2 then
L2_2 = L1_1.gadget_3
L3_2 = A1_2.param2
if L2_2 ~= L3_2 then
L2_2 = L1_1.gadget_4
L3_2 = A1_2.param2
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_74006 = 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.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "active_count"
L2_2 = L2_2(L3_2, L4_2)
if 0 == L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1001
L5_2 = 1
L6_2 = 1
L2_2(L3_2, L4_2, L5_2, L6_2)
end
L2_2 = A1_2.param1
L3_2 = GadgetState
L3_2 = L3_2.Action01
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "active_count"
L5_2 = -1
L2_2(L3_2, L4_2, L5_2)
else
L2_2 = A1_2.param1
L3_2 = GadgetState
L3_2 = L3_2.Action02
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "active_count"
L5_2 = 1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.CreateGroupTimerEvent
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = tostring
L6_2 = A1_2.param2
L5_2 = L5_2(L6_2)
L6_2 = L1_1.timer
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = -1
return L2_2
end
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_74006 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2.source_name
L3_2 = tostring
L4_2 = L1_1.gadget_1
L3_2 = L3_2(L4_2)
if L2_2 ~= L3_2 then
L2_2 = A1_2.source_name
L3_2 = tostring
L4_2 = L1_1.gadget_2
L3_2 = L3_2(L4_2)
if L2_2 ~= L3_2 then
L2_2 = A1_2.source_name
L3_2 = tostring
L4_2 = L1_1.gadget_3
L3_2 = L3_2(L4_2)
if L2_2 ~= L3_2 then
L2_2 = A1_2.source_name
L3_2 = tostring
L4_2 = L1_1.gadget_4
L3_2 = L3_2(L4_2)
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_TIMER_EVENT_74007 = 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.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = tonumber
L5_2 = A1_2.source_name
L4_2 = L4_2(L5_2)
L5_2 = GadgetState
L5_2 = L5_2.Action01
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_TIMER_EVENT_74007 = 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 = 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 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1001
L5_2 = 4
L6_2 = 1
L2_2(L3_2, L4_2, L5_2, L6_2)
end
L2_2 = A1_2.param1
L3_2 = L1_1.max_gear
if L2_2 ~= L3_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_74008 = 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.CancelGroupTimerEvent
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = tostring
L6_2 = L1_1.gadget_1
L5_2, L6_2 = L5_2(L6_2)
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.CancelGroupTimerEvent
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = tostring
L6_2 = L1_1.gadget_2
L5_2, L6_2 = L5_2(L6_2)
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.CancelGroupTimerEvent
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = tostring
L6_2 = L1_1.gadget_3
L5_2, L6_2 = L5_2(L6_2)
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.CancelGroupTimerEvent
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = tostring
L6_2 = L1_1.gadget_4
L5_2, L6_2 = L5_2(L6_2)
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = L1_1.gadget_1
if L2_2 ~= 0 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_1
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2(L3_2, L4_2, L5_2)
end
L2_2 = L1_1.gadget_2
if L2_2 ~= 0 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_2
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2(L3_2, L4_2, L5_2)
end
L2_2 = L1_1.gadget_3
if L2_2 ~= 0 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_3
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2(L3_2, L4_2, L5_2)
end
L2_2 = L1_1.gadget_4
if L2_2 ~= 0 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_4
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2(L3_2, L4_2, L5_2)
end
L2_2 = ScriptLib
L2_2 = L2_2.CreateGadget
L3_2 = A0_2
L4_2 = {}
L5_2 = L1_1.gadget_chest
L4_2.config_id = L5_2
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 0 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1001
L5_2 = 3
L6_2 = 1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_74008 = L2_1