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

89 lines
2.0 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 = 371, gadget_id = 70900008, pos = { x = 2536.9, y = 217.6, z = -102.6 }, rot = { x = 0.0, y = 93.1, z = 0.0 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 47, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2532.8, y = 217.6, z = -100.8 } }
}
-- 触发器
triggers = {
{ name = "GADGET_STATE_CHANGE_47", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_47", action = "action_EVENT_GADGET_STATE_CHANGE_47", trigger_count = 0, tlog_tag = "风龙_174_火史莱姆挑战_开始" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 371 },
regions = { 47 },
triggers = { "GADGET_STATE_CHANGE_47" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_47(context, evt)
if 371 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_47(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133007174, suite = 2 }) then
return -1
end
return 0
end