-- 基础信息 local base_info = { group_id = 250016005 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 14, monster_id = 20010801, pos = { x = -51.964, y = -11.000, z = -128.370 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 }, { config_id = 15, monster_id = 20010801, pos = { x = -49.494, y = -11.000, z = -129.934 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 }, { config_id = 16, monster_id = 20010801, pos = { x = -49.473, y = -11.000, z = -133.566 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 }, { config_id = 17, monster_id = 20010801, pos = { x = -52.077, y = -11.000, z = -135.211 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 }, { config_id = 18, monster_id = 21030201, pos = { x = -47.491, y = -11.000, z = -131.929 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1000011, name = "ANY_MONSTER_DIE_11", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11", action = "action_EVENT_ANY_MONSTER_DIE_11", trigger_count = 0 }, { config_id = 1000092, name = "ANY_MONSTER_DIE_92", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_92", action = "action_EVENT_ANY_MONSTER_DIE_92", trigger_count = 0 } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 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 = suite_2, monsters = { 14, 15, 16, 17, 18 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_92" }, rand_weight = 100 }, { -- suite_id = 3, -- description = suite_3, monsters = { }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_11" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_11(context, evt) -- 判断指定group组剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016005) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_11(context, evt) -- 添加suite1的新内容 ScriptLib.AddExtraGroupSuite(context, 250016028, 1) return 0 end -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_92(context, evt) -- 判断指定group组剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016005) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_92(context, evt) -- 添加suite1的新内容 ScriptLib.AddExtraGroupSuite(context, 250016004, 1) return 0 end