mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-29 09:35:48 +00:00
120 lines
3.1 KiB
Lua
120 lines
3.1 KiB
Lua
-- 基础信息
|
|
local base_info = {
|
|
group_id = 111102022
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
{ config_id = 22001, gadget_id = 70330064, pos = { x = 1356.364, y = 331.656, z = -2065.052 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 22003, gadget_id = 70900380, pos = { x = 1356.098, y = 335.459, z = -2060.109 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 22004, gadget_id = 70900380, pos = { x = 1359.856, y = 340.725, z = -2055.122 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 22005, gadget_id = 70900380, pos = { x = 1362.792, y = 344.737, z = -2050.735 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ config_id = 1022002, name = "GADGET_STATE_CHANGE_22002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_22002", action = "action_EVENT_GADGET_STATE_CHANGE_22002" },
|
|
{ config_id = 1022006, name = "GADGET_STATE_CHANGE_22006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_22006", action = "action_EVENT_GADGET_STATE_CHANGE_22006" }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
end_suite = 0,
|
|
rand_suite = false
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 1,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { 22001 },
|
|
regions = { },
|
|
triggers = { "GADGET_STATE_CHANGE_22002", "GADGET_STATE_CHANGE_22006" },
|
|
rand_weight = 100
|
|
},
|
|
{
|
|
-- suite_id = 2,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { 22003, 22004, 22005 },
|
|
regions = { },
|
|
triggers = { },
|
|
rand_weight = 100
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GADGET_STATE_CHANGE_22002(context, evt)
|
|
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111102022, 22001) then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GADGET_STATE_CHANGE_22002(context, evt)
|
|
-- 添加suite2的新内容
|
|
ScriptLib.AddExtraGroupSuite(context, 111102022, 2)
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GADGET_STATE_CHANGE_22006(context, evt)
|
|
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 111102022, 22001) then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GADGET_STATE_CHANGE_22006(context, evt)
|
|
-- 删除suite2的所有内容
|
|
ScriptLib.RemoveExtraGroupSuite(context, 111102022, 2)
|
|
|
|
return 0
|
|
end |