-- 基础信息 local base_info = { group_id = 244002009 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 9001, gadget_id = 70900201, pos = { x = 343.262, y = -26.021, z = 474.396 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 9002, gadget_id = 70900201, pos = { x = 343.307, y = -27.691, z = 430.804 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 9003, gadget_id = 70900201, pos = { x = 343.252, y = -18.077, z = 343.655 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 9004, gadget_id = 70900201, pos = { x = 343.324, y = -11.540, z = 263.010 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 9005, gadget_id = 70900201, pos = { x = 343.252, y = -10.295, z = 243.780 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 } } -- 区域 regions = { { config_id = 9006, shape = RegionShape.SPHERE, radius = 10, pos = { x = 342.524, y = -27.850, z = 476.446 } } } -- 触发器 triggers = { { config_id = 1009006, name = "ENTER_REGION_9006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9006", action = "action_EVENT_ENTER_REGION_9006", forbid_guest = false } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 9001 }, regions = { 9006 }, triggers = { "ENTER_REGION_9006" }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { }, gadgets = { 9002 }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 3, -- description = , monsters = { }, gadgets = { 9003 }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 4, -- description = , monsters = { }, gadgets = { 9004 }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 5, -- description = , monsters = { }, gadgets = { 9005 }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 6, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ENTER_REGION_9006(context, evt) if evt.param1 ~= 9006 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_9006(context, evt) -- 添加suite2的新内容 ScriptLib.AddExtraGroupSuite(context, 244002009, 2) -- 删除suite1的所有内容 ScriptLib.RemoveExtraGroupSuite(context, 244002009, 1) return 0 end