-- 基础信息 local base_info = { group_id = 133004128 } -- Trigger变量 local defs = { gadget_id_1 = 791 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 791, gadget_id = 70211123, pos = { x = 2407.463, y = 283.765, z = -377.254 }, rot = { x = 6.602, y = 152.860, z = 343.720 }, level = 11, drop_tag = "解谜高级蒙德", isOneoff = true, persistent = true, area_id = 3 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1128001, name = "VARIABLE_CHANGE_128001", event = EventType.EVENT_VARIABLE_CHANGE, source = "count", condition = "condition_EVENT_VARIABLE_CHANGE_128001", action = "action_EVENT_VARIABLE_CHANGE_128001" } } -- 变量 variables = { { config_id = 1, name = "count", value = 0, no_refresh = true } } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 2, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { "VARIABLE_CHANGE_128001" }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { }, gadgets = { 791 }, regions = { }, triggers = { }, rand_weight = 0, ban_refresh = true } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_VARIABLE_CHANGE_128001(context, evt) if evt.param1 == evt.param2 then return false end -- 判断变量"count"为2 if ScriptLib.GetGroupVariableValue(context, "count") ~= 2 then return false end return true end -- 触发操作 function action_EVENT_VARIABLE_CHANGE_128001(context, evt) -- group调整group进度,只对非randSuite有效 if 0 ~= ScriptLib.GoToGroupSuite(context, 133004128, 2) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite") return -1 end return 0 end