-- 基础信息 local base_info = { group_id = 250015008 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 28, monster_id = 21010101, pos = { x = -57.602, y = 0.500, z = 83.421 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 29, monster_id = 21010101, pos = { x = -60.199, y = 0.500, z = 80.545 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 30, monster_id = 21010101, pos = { x = -59.716, y = 0.500, z = 77.102 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 31, monster_id = 20010301, pos = { x = -48.439, y = 0.500, z = 83.181 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 32, monster_id = 20010301, pos = { x = -48.514, y = 0.500, z = 80.216 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 33, monster_id = 20010301, pos = { x = -49.346, y = 0.500, z = 75.923 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 34, monster_id = 21010101, pos = { x = -54.800, y = 0.500, z = 76.422 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1000001, name = "ANY_MONSTER_DIE_1", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1", action = "action_EVENT_ANY_MONSTER_DIE_1" }, { config_id = 1000002, name = "ANY_MONSTER_DIE_2", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { 28, 29, 30, 34 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_1" }, rand_weight = 100 }, { -- suite_id = 2, -- description = suite_2, monsters = { 31, 32, 33 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_2" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_1(context, evt) -- 判断剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCount(context) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_1(context, evt) -- 调用提示id为 1105001 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格 if 0 ~= ScriptLib.ShowReminder(context, 1105001) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") return -1 end -- 添加suite2的新内容 ScriptLib.AddExtraGroupSuite(context, 250015008, 2) return 0 end