-- 基础信息 local base_info = { group_id = 201058017 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 17001, gadget_id = 70900201, pos = { x = -69.432, y = 109.024, z = 38.052 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1017002, name = "VARIABLE_CHANGE_17002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_17002", action = "action_EVENT_VARIABLE_CHANGE_17002" } } -- 变量 variables = { { config_id = 1, name = "showGuidePoint1", value = 0, no_refresh = false } } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { }, gadgets = { 17001 }, regions = { }, triggers = { "VARIABLE_CHANGE_17002" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_VARIABLE_CHANGE_17002(context, evt) if evt.param1 == evt.param2 then return false end -- 判断变量"showGuidePoint1"为1 if ScriptLib.GetGroupVariableValue(context, "showGuidePoint1") ~= 1 then return false end return true end -- 触发操作 function action_EVENT_VARIABLE_CHANGE_17002(context, evt) -- 添加suite2的新内容 ScriptLib.AddExtraGroupSuite(context, 201058017, 2) return 0 end