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

95 lines
2.3 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 700, gadget_id = 70900039, pos = { x = 2478.3, y = 245.7, z = 466.3 }, rot = { x = 0.0, y = 3.6, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 226, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2478.2, y = 245.7, z = 466.3 } }
}
-- 触发器
triggers = {
{ name = "GADGET_STATE_CHANGE_226", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_226", action = "action_EVENT_GADGET_STATE_CHANGE_226", trigger_count = 0, tlog_tag = "风龙_194_风场机关2_触发" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 700 },
regions = { 226 },
triggers = { "GADGET_STATE_CHANGE_226" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_226(context, evt)
if 700 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_226(context, evt)
-- 触发镜头注目注目位置为坐标2477245452持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=2477, y=245, z=452}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133007195, suite = 2 }) then
return -1
end
return 0
end