mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-29 09:35:48 +00:00
104 lines
2.8 KiB
Lua
104 lines
2.8 KiB
Lua
-- 基础信息
|
|
local base_info = {
|
|
group_id = 111101173
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
{ config_id = 173002, gadget_id = 70310001, pos = { x = 2507.581, y = 214.473, z = -1289.011 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
|
{ config_id = 173003, gadget_id = 70310001, pos = { x = 2504.882, y = 214.322, z = -1293.014 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
|
{ config_id = 173004, gadget_id = 70310001, pos = { x = 2508.103, y = 214.393, z = -1297.207 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
|
{ config_id = 173005, gadget_id = 70211021, pos = { x = 2508.829, y = 214.592, z = -1292.908 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", isOneoff = true, persistent = true }
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ config_id = 1173001, name = "GADGET_STATE_CHANGE_173001", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_173001", action = "action_EVENT_GADGET_STATE_CHANGE_173001", trigger_count = 0 }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
end_suite = 0,
|
|
rand_suite = false
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 1,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { 173002, 173003, 173004 },
|
|
regions = { },
|
|
triggers = { "GADGET_STATE_CHANGE_173001" },
|
|
rand_weight = 100
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GADGET_STATE_CHANGE_173001(context, evt)
|
|
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101173, 173002) then
|
|
return false
|
|
end
|
|
|
|
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101173, 173003) then
|
|
return false
|
|
end
|
|
|
|
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101173, 173004) then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GADGET_STATE_CHANGE_173001(context, evt)
|
|
-- 创建id为173005的gadget
|
|
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 173005 }) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end |