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

117 lines
3.1 KiB
Lua
Raw Permalink Normal View History

2022-11-21 11:30:31 +03:00
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 849, gadget_id = 70500000, pos = { x = 2589.8, y = 245.1, z = 404.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 4001001, isOneoff = true },
{ config_id = 850, gadget_id = 70900039, pos = { x = 2532.4, y = 211.0, z = 406.1 }, rot = { x = 0.0, y = 34.7, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 231, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2532.7, y = 211.1, z = 405.7 } },
{ config_id = 240, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2534.3, y = 211.1, z = 409.0 } }
}
-- 触发器
triggers = {
{ name = "GADGET_STATE_CHANGE_231", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_231", action = "action_EVENT_GADGET_STATE_CHANGE_231", trigger_count = 0, tlog_tag = "风龙_200_风场机关3_触发" },
{ name = "GATHER_240", event = EventType.EVENT_GATHER, source = "849", condition = "condition_EVENT_GATHER_240", action = "action_EVENT_GATHER_240" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 849, 850 },
regions = { 231, 240 },
triggers = { "GADGET_STATE_CHANGE_231", "GATHER_240" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_231(context, evt)
if 850 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_231(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133007199, suite = 2 }) then
return -1
end
-- 触发镜头注目注目位置为坐标2580223404持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=2580, y=223, z=404}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GATHER_240(context, evt)
if 849 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GATHER_240(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133007199, suite = 1 }) then
return -1
end
return 0
end