-- 基础信息 local base_info = { group_id = 133102528 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 528001, gadget_id = 70900059, pos = { x = 1062.426, y = 206.200, z = 732.156 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 19, area_id = 6 }, { config_id = 528003, gadget_id = 70211001, pos = { x = 1061.900, y = 200.780, z = 732.794 }, rot = { x = 355.646, y = 0.809, z = 351.957 }, level = 16, drop_tag = "战斗低级璃月", showcutscene = true, isOneoff = true, persistent = true, explore = { name = "chest", exp = 1 }, area_id = 6 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1528002, name = "GADGET_STATE_CHANGE_528002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_528002", action = "action_EVENT_GADGET_STATE_CHANGE_528002" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 2, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 528001 }, regions = { }, triggers = { "GADGET_STATE_CHANGE_528002" }, rand_weight = 100 }, { -- suite_id = 2, -- description = suite_2, monsters = { }, gadgets = { 528003 }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_GADGET_STATE_CHANGE_528002(context, evt) if 528001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_GADGET_STATE_CHANGE_528002(context, evt) -- group调整group进度,只对非randSuite有效 if 0 ~= ScriptLib.GoToGroupSuite(context, 133102528, 2) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite") return -1 end return 0 end