--================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 2, monster_id = 20011201, pos = { x = 2.1, y = 0.0, z = -70.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 3, monster_id = 20011201, pos = { x = -10.0, y = 0.0, z = -70.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 4, monster_id = 20011201, pos = { x = -15.5, y = 0.0, z = -65.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 57, monster_id = 20010801, pos = { x = -5.4, y = 0.0, z = -68.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 58, monster_id = 20010801, pos = { x = -0.1, y = 0.0, z = -65.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 59, monster_id = 20010801, pos = { x = -8.6, y = 0.0, z = -63.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 60, monster_id = 20011401, pos = { x = -11.9, y = 0.0, z = -67.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 61, monster_id = 20011401, pos = { x = -5.2, y = 0.0, z = -70.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 62, monster_id = 20011401, pos = { x = -2.5, y = 0.0, z = -63.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 63, monster_id = 20010501, pos = { x = -10.4, y = 0.0, z = -63.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 64, monster_id = 20010501, pos = { x = -6.8, y = 0.0, z = -68.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 65, monster_id = 20010501, pos = { x = -0.3, y = 0.0, z = -66.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }, { config_id = 66, monster_id = 20011001, pos = { x = -3.6, y = 0.0, z = -63.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 } } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 1, gadget_id = 70210022, pos = { x = -5.0, y = 0.0, z = -62.7 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, chest_drop_id = 1300101, state = GadgetState.ChestLocked } } -- 区域 regions = { { config_id = 19, shape = RegionShape.SPHERE, radius = 5, pos = { x = -5.5, y = 0.0, z = -62.7 } } } -- 触发器 triggers = { { name = "ANY_MONSTER_DIE_19", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_19", action = "action_EVENT_ANY_MONSTER_DIE_19" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, rand_suite = true, npcs = { } } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 0, -- description = , monsters = { 2, 3, 4 }, gadgets = { 1 }, regions = { 19 }, triggers = { "ANY_MONSTER_DIE_19" }, rand_weight = 100 }, { -- suite_id = 1, -- description = suite_2, monsters = { 57, 58, 59 }, gadgets = { 1 }, regions = { 19 }, triggers = { "ANY_MONSTER_DIE_19" }, rand_weight = 100 }, { -- suite_id = 2, -- description = suite_3, monsters = { 60, 61, 62 }, gadgets = { 1 }, regions = { 19 }, triggers = { "ANY_MONSTER_DIE_19" }, rand_weight = 100 }, { -- suite_id = 3, -- description = suite_4, monsters = { 63, 64, 65, 66 }, gadgets = { 1 }, regions = { 19 }, triggers = { "ANY_MONSTER_DIE_19" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_19(context, evt) -- 判断剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCount(context) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_19(context, evt) -- 解锁目标1 if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 1, state = GadgetState.Default }) then return -1 end -- 调用提示id为 20010301 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格 if 0 ~= ScriptLib.ShowReminder(context, 20010301) then return -1 end return 0 end