-- 基础信息 local base_info = { group_id = 133003351 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 3481, gadget_id = 70900009, pos = { x = 2327.341, y = 300.443, z = -1753.810 }, rot = { x = 0.000, y = 245.868, z = 0.000 }, level = 15, persistent = true, area_id = 1 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1000415, name = "GADGET_STATE_CHANGE_415", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_415" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 2, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 2, -- description = suite_2, monsters = { }, gadgets = { 3481 }, regions = { }, triggers = { "GADGET_STATE_CHANGE_415" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发操作 function action_EVENT_GADGET_STATE_CHANGE_415(context, evt) -- 重新生成指定group,指定suite if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133003352, suite = 2 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite") return -1 end return 0 end