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

89 lines
1.9 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 = 951, gadget_id = 70900009, pos = { x = 2296.7, y = 230.8, z = -56.2 }, rot = { x = 0.0, y = 93.1, z = 0.0 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 243, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2292.5, y = 230.7, z = -54.4 } }
}
-- 触发器
triggers = {
{ name = "GADGET_STATE_CHANGE_243", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_243", action = "action_EVENT_GADGET_STATE_CHANGE_243", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 951 },
regions = { 243 },
triggers = { "GADGET_STATE_CHANGE_243" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_243(context, evt)
if 951 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_243(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133007218, suite = 2 }) then
return -1
end
return 0
end