-- 基础信息 local base_info = { group_id = 250016015 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 56, monster_id = 20011201, pos = { x = -128.800, y = -11.000, z = -294.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 }, { config_id = 57, monster_id = 20011201, pos = { x = -133.143, y = -11.000, z = -294.042 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 }, { config_id = 58, monster_id = 20011201, pos = { x = -127.159, y = -11.000, z = -291.668 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 }, { config_id = 59, monster_id = 20011201, pos = { x = -135.121, y = -11.000, z = -291.652 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 }, { config_id = 60, monster_id = 20011301, pos = { x = -131.060, y = -11.000, z = -296.481 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1000039, name = "ANY_MONSTER_DIE_39", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_39", action = "action_EVENT_ANY_MONSTER_DIE_39", trigger_count = 0 }, { config_id = 1000106, name = "ANY_MONSTER_DIE_106", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_106", action = "action_EVENT_ANY_MONSTER_DIE_106", 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 = { 56, 57, 58, 59, 60 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_106" }, rand_weight = 100 }, { -- suite_id = 3, -- description = suite_3, monsters = { }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_39" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_39(context, evt) -- 判断指定group组剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016015) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_39(context, evt) -- 添加suite1的新内容 ScriptLib.AddExtraGroupSuite(context, 250016013, 1) return 0 end -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_106(context, evt) -- 判断指定group组剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016015) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_106(context, evt) -- 添加suite1的新内容 ScriptLib.AddExtraGroupSuite(context, 250016030, 1) return 0 end