-- 基础信息 local base_info = { group_id = 250004061 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 599, gadget_id = 70380005, pos = { x = -603.000, y = -8.000, z = -474.000 }, rot = { x = 0.000, y = 91.181, z = 0.000 }, level = 1, route_id = 50004016 }, { config_id = 600, gadget_id = 70900008, pos = { x = -602.981, y = -11.028, z = -477.081 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 601, gadget_id = 70350004, pos = { x = -603.410, y = -8.000, z = -468.572 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 602, gadget_id = 70900008, pos = { x = -605.737, y = -11.007, z = -465.062 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1000107, name = "GADGET_STATE_CHANGE_107", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_107", action = "action_EVENT_GADGET_STATE_CHANGE_107" }, { config_id = 1000108, name = "GADGET_STATE_CHANGE_108", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_108", action = "action_EVENT_GADGET_STATE_CHANGE_108" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = true } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 599, 600, 601, 602 }, regions = { }, triggers = { "GADGET_STATE_CHANGE_107", "GADGET_STATE_CHANGE_108" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_GADGET_STATE_CHANGE_107(context, evt) if 600 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_GADGET_STATE_CHANGE_107(context, evt) -- 设置移动平台路径 if 0 ~= ScriptLib.SetPlatformRouteId(context, 599, 50004017) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId") return -1 end return 0 end -- 触发条件 function condition_EVENT_GADGET_STATE_CHANGE_108(context, evt) if 602 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_GADGET_STATE_CHANGE_108(context, evt) -- 设置移动平台路径 if 0 ~= ScriptLib.SetPlatformRouteId(context, 599, 50004018) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId") return -1 end return 0 end