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

95 lines
2.2 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 = 897, gadget_id = 70900009, pos = { x = 1842.4, y = 242.2, z = -822.3 }, rot = { x = 1.0, y = 27.4, z = 1.0 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 31, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1923.6, y = 255.3, z = -839.4 } }
}
-- 触发器
triggers = {
{ name = "GADGET_STATE_CHANGE_31", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_31", action = "action_EVENT_GADGET_STATE_CHANGE_31", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 897 },
regions = { 31 },
triggers = { "GADGET_STATE_CHANGE_31" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_31(context, evt)
if 897 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_31(context, evt)
-- 触发镜头注目注目位置为坐标1793239-913持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=1793, y=239, z=-913}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 3, is_force = true, is_broadcast = false }) then
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133002050, suite = 2 }) then
return -1
end
return 0
end