-- 基础信息 local base_info = { group_id = 166001136 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 136001, gadget_id = 70290290, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 32, area_id = 300 }, { config_id = 136003, gadget_id = 70290307, pos = { x = 209.032, y = 461.105, z = 614.531 }, rot = { x = 0.000, y = 276.025, z = 0.000 }, level = 36, area_id = 300 }, { config_id = 136004, gadget_id = 70290347, pos = { x = 172.915, y = 452.535, z = 601.099 }, rot = { x = 0.000, y = 332.417, z = 0.000 }, level = 36, state = GadgetState.GearStart, persistent = true, area_id = 300 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1136002, name = "GADGET_CREATE_136002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_136002", action = "action_EVENT_GADGET_CREATE_136002" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 136004 }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { }, gadgets = { 136001, 136003 }, regions = { }, triggers = { "GADGET_CREATE_136002" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_GADGET_CREATE_136002(context, evt) if 136003 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_GADGET_CREATE_136002(context, evt) -- 重新生成指定group,指定suite if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 166001609, suite = 2 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite") return -1 end return 0 end