205 lines
8.8 KiB
Go
205 lines
8.8 KiB
Go
-- 基础信息
|
||
local base_info = {
|
||
group_id = 199004222
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 怪物
|
||
monsters = {
|
||
}
|
||
|
||
-- NPC
|
||
npcs = {
|
||
}
|
||
|
||
-- 装置
|
||
gadgets = {
|
||
{ config_id = 222001, gadget_id = 70220032, pos = { x = -315.604, y = 119.563, z = -576.195 }, rot = { x = 0.000, y = 67.823, z = 0.000 }, level = 20, area_id = 400 },
|
||
{ config_id = 222004, gadget_id = 40200001, pos = { x = -314.482, y = 120.215, z = -574.574 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, area_id = 400 },
|
||
{ config_id = 222005, gadget_id = 70220032, pos = { x = -225.479, y = 119.234, z = -539.766 }, rot = { x = 2.600, y = 28.495, z = 355.216 }, level = 20, area_id = 400 },
|
||
{ config_id = 222007, gadget_id = 40200001, pos = { x = -224.911, y = 120.215, z = -539.290 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, area_id = 400 },
|
||
{ config_id = 222008, gadget_id = 70690001, pos = { x = -248.014, y = 233.645, z = -558.943 }, rot = { x = 0.000, y = 217.695, z = 0.000 }, level = 20, area_id = 400 },
|
||
{ config_id = 222009, gadget_id = 70690001, pos = { x = -257.794, y = 233.645, z = -571.599 }, rot = { x = 0.000, y = 217.695, z = 0.000 }, level = 20, area_id = 400 },
|
||
{ config_id = 222010, gadget_id = 70690001, pos = { x = -266.698, y = 233.645, z = -583.121 }, rot = { x = 0.000, y = 217.695, z = 0.000 }, level = 20, area_id = 400 },
|
||
{ config_id = 222011, gadget_id = 70690001, pos = { x = -277.358, y = 233.645, z = -596.917 }, rot = { x = 0.000, y = 217.695, z = 0.000 }, level = 20, area_id = 400 },
|
||
{ config_id = 222012, gadget_id = 70690001, pos = { x = -286.549, y = 233.645, z = -608.810 }, rot = { x = 0.000, y = 217.695, z = 0.000 }, level = 20, area_id = 400 },
|
||
{ config_id = 222013, gadget_id = 70690001, pos = { x = -296.379, y = 233.645, z = -621.531 }, rot = { x = 0.000, y = 217.695, z = 0.000 }, level = 20, area_id = 400 },
|
||
{ config_id = 222015, gadget_id = 70690001, pos = { x = -225.014, y = 130.250, z = -539.539 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222016, gadget_id = 70690001, pos = { x = -225.014, y = 143.674, z = -539.539 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222017, gadget_id = 70690001, pos = { x = -225.014, y = 156.111, z = -539.539 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222018, gadget_id = 70690001, pos = { x = -225.014, y = 167.736, z = -539.539 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222019, gadget_id = 70690001, pos = { x = -225.014, y = 178.205, z = -539.539 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222020, gadget_id = 70690001, pos = { x = -225.014, y = 191.840, z = -539.539 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222021, gadget_id = 70690001, pos = { x = -225.014, y = 203.832, z = -539.539 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222022, gadget_id = 70690001, pos = { x = -314.819, y = 203.832, z = -575.502 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222023, gadget_id = 70690001, pos = { x = -314.819, y = 191.840, z = -575.502 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222024, gadget_id = 70690001, pos = { x = -314.819, y = 178.205, z = -575.502 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222025, gadget_id = 70690001, pos = { x = -314.819, y = 167.736, z = -575.502 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222026, gadget_id = 70690001, pos = { x = -314.819, y = 156.111, z = -575.502 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222027, gadget_id = 70690001, pos = { x = -314.819, y = 143.674, z = -575.502 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 },
|
||
{ config_id = 222028, gadget_id = 70690001, pos = { x = -314.819, y = 130.250, z = -575.502 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, area_id = 400 }
|
||
}
|
||
|
||
-- 区域
|
||
regions = {
|
||
}
|
||
|
||
-- 触发器
|
||
triggers = {
|
||
{ config_id = 1222002, name = "GADGET_STATE_CHANGE_222002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_222002", action = "action_EVENT_GADGET_STATE_CHANGE_222002", trigger_count = 0 },
|
||
{ config_id = 1222003, name = "TIME_AXIS_PASS_222003", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_222003", action = "action_EVENT_TIME_AXIS_PASS_222003", trigger_count = 0 },
|
||
{ config_id = 1222006, name = "GADGET_STATE_CHANGE_222006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_222006", action = "action_EVENT_GADGET_STATE_CHANGE_222006", trigger_count = 0 },
|
||
{ config_id = 1222014, name = "TIME_AXIS_PASS_222014", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_222014", action = "action_EVENT_TIME_AXIS_PASS_222014", trigger_count = 0 }
|
||
}
|
||
|
||
-- 变量
|
||
variables = {
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 初始化配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 初始化时创建
|
||
init_config = {
|
||
suite = 1,
|
||
end_suite = 0,
|
||
rand_suite = false
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 小组配置
|
||
--
|
||
--================================================================
|
||
|
||
suites = {
|
||
{
|
||
-- suite_id = 1,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 222001, 222005 },
|
||
regions = { },
|
||
triggers = { "GADGET_STATE_CHANGE_222002", "TIME_AXIS_PASS_222003", "GADGET_STATE_CHANGE_222006", "TIME_AXIS_PASS_222014" },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 2,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 222004, 222022, 222023, 222024, 222025, 222026, 222027, 222028 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 3,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 222007, 222008, 222009, 222010, 222011, 222012, 222013, 222015, 222016, 222017, 222018, 222019, 222020, 222021 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
}
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 触发器
|
||
--
|
||
--================================================================
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_GADGET_STATE_CHANGE_222002(context, evt)
|
||
if 222001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GADGET_STATE_CHANGE_222002(context, evt)
|
||
-- 创建标识为"temp",时间节点为{20}的时间轴,false用于控制该时间轴是否循环
|
||
ScriptLib.InitTimeAxis(context, "temp", {20}, false)
|
||
|
||
|
||
-- 添加suite2的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 199004222, 2)
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_TIME_AXIS_PASS_222003(context, evt)
|
||
if "temp" ~= evt.source_name or 1 ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIME_AXIS_PASS_222003(context, evt)
|
||
-- 将configid为 222001 的物件更改为状态 GadgetState.Default
|
||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 222001, GadgetState.Default) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||
return -1
|
||
end
|
||
|
||
-- 删除suite2的所有内容
|
||
ScriptLib.RemoveExtraGroupSuite(context, 199004222, 2)
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_GADGET_STATE_CHANGE_222006(context, evt)
|
||
if 222005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GADGET_STATE_CHANGE_222006(context, evt)
|
||
-- 创建标识为"temp1",时间节点为{20}的时间轴,false用于控制该时间轴是否循环
|
||
ScriptLib.InitTimeAxis(context, "temp1", {20}, false)
|
||
|
||
|
||
-- 添加suite3的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 199004222, 3)
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_TIME_AXIS_PASS_222014(context, evt)
|
||
if "temp1" ~= evt.source_name or 1 ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIME_AXIS_PASS_222014(context, evt)
|
||
-- 将configid为 222005 的物件更改为状态 GadgetState.Default
|
||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 222005, GadgetState.Default) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||
return -1
|
||
end
|
||
|
||
-- 删除suite3的所有内容
|
||
ScriptLib.RemoveExtraGroupSuite(context, 199004222, 3)
|
||
|
||
return 0
|
||
end |