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

97 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 = 3477, gadget_id = 70900007, pos = { x = 2402.8, y = 312.4, z = -1788.6 }, rot = { x = 0.7, y = 45.4, z = 1.6 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 413, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2398.2, y = 297.0, z = -1782.5 } }
}
-- 触发器
triggers = {
{ name = "GADGET_STATE_CHANGE_413", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_413" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 3477 },
regions = { 413 },
triggers = { "GADGET_STATE_CHANGE_413" },
rand_weight = 100
},
{
-- suite_id = 1,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_413(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133003350, suite = 2 }) then
return -1
end
-- 触发镜头注目注目位置为坐标2362299-1790持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=2362, y=299, z=-1790}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 3, is_force = true, is_broadcast = false }) then
return -1
end
return 0
end