GSServer-CBT/soggy_resources/lua/Scene/3/scene3_group133002219.lua

94 lines
3.2 KiB
Lua

--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1765, gadget_id = 70310001, pos = { x = 1763.1, y = 244.0, z = -776.6 }, rot = { x = 0.0, y = 172.9, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1766, gadget_id = 70310001, pos = { x = 1750.2, y = 246.8, z = -780.7 }, rot = { x = 0.0, y = 272.7, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1767, gadget_id = 70310001, pos = { x = 1722.5, y = 252.3, z = -782.6 }, rot = { x = 0.0, y = 46.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1768, gadget_id = 70310001, pos = { x = 1689.0, y = 256.3, z = -754.2 }, rot = { x = 0.0, y = 73.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1769, gadget_id = 70310001, pos = { x = 1730.1, y = 257.5, z = -746.6 }, rot = { x = 0.0, y = 332.4, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1770, gadget_id = 70310001, pos = { x = 1635.9, y = 266.1, z = -773.5 }, rot = { x = 0.0, y = 359.8, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1771, gadget_id = 70310001, pos = { x = 1636.9, y = 266.1, z = -782.7 }, rot = { x = 0.0, y = 277.1, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1772, gadget_id = 70310001, pos = { x = 1645.3, y = 266.2, z = -748.7 }, rot = { x = 0.0, y = 337.9, z = 0.0 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 274, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1696.6, y = 256.9, z = -768.2 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_274", event = EventType.EVENT_CLIENT_EXECUTE, source = "FireSourceChange", condition = "", action = "action_EVENT_CLIENT_EXECUTE_274", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 1765, 1766, 1767, 1768, 1769, 1770, 1771, 1772 },
regions = { 274 },
triggers = { "CLIENT_EXECUTE_274" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_274(context, evt)
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
local this_group = ScriptLib.GetContextGroupId(context)
if evt.param1 == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, this_group, this_gadget, GadgetState.GearStart )
return 0
end
if evt.param1 == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(context, this_group, this_gadget, GadgetState.Default )
return 0
end
return 0
end