-- 基础信息 local base_info = { group_id = 133001188 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 188001, gadget_id = 70690011, pos = { x = 1898.170, y = 252.780, z = -565.566 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188002, gadget_id = 70690001, pos = { x = 1915.302, y = 276.325, z = -562.911 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188003, gadget_id = 70690001, pos = { x = 1925.148, y = 276.504, z = -561.178 }, rot = { x = 358.973, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188004, gadget_id = 70690001, pos = { x = 1934.995, y = 276.683, z = -559.444 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188005, gadget_id = 70690001, pos = { x = 1944.843, y = 276.862, z = -557.711 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188006, gadget_id = 70690001, pos = { x = 1971.810, y = 274.449, z = -552.963 }, rot = { x = 358.973, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188007, gadget_id = 70690001, pos = { x = 1981.501, y = 274.628, z = -550.348 }, rot = { x = 359.000, y = 80.000, z = 4.260 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188008, gadget_id = 70690001, pos = { x = 1990.842, y = 274.807, z = -545.953 }, rot = { x = 359.047, y = 58.175, z = 0.382 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188009, gadget_id = 70690001, pos = { x = 1997.768, y = 274.931, z = -541.188 }, rot = { x = 359.028, y = 58.100, z = 0.038 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188010, gadget_id = 70690011, pos = { x = 2017.115, y = 243.551, z = -531.463 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188011, gadget_id = 70690001, pos = { x = 2034.707, y = 265.479, z = -527.993 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188012, gadget_id = 70690001, pos = { x = 2044.553, y = 265.658, z = -526.260 }, rot = { x = 358.973, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188013, gadget_id = 70690001, pos = { x = 2054.400, y = 265.837, z = -524.526 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188014, gadget_id = 70690001, pos = { x = 2064.248, y = 266.016, z = -522.793 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188015, gadget_id = 70690001, pos = { x = 2148.652, y = 257.687, z = -507.324 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188016, gadget_id = 70690001, pos = { x = 2158.498, y = 257.866, z = -505.590 }, rot = { x = 358.973, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188017, gadget_id = 70690001, pos = { x = 2168.345, y = 258.045, z = -503.856 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188018, gadget_id = 70690001, pos = { x = 2178.193, y = 258.224, z = -502.123 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188019, gadget_id = 70690001, pos = { x = 2091.215, y = 261.592, z = -518.183 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188020, gadget_id = 70690001, pos = { x = 2101.061, y = 261.771, z = -516.449 }, rot = { x = 358.973, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188021, gadget_id = 70690001, pos = { x = 2110.908, y = 261.950, z = -514.715 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188022, gadget_id = 70690001, pos = { x = 2120.756, y = 262.129, z = -512.982 }, rot = { x = 358.974, y = 80.016, z = 0.000 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188024, gadget_id = 70690001, pos = { x = 2219.911, y = 248.892, z = -465.644 }, rot = { x = 342.840, y = 32.664, z = 358.099 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188025, gadget_id = 70690001, pos = { x = 2225.071, y = 251.826, z = -457.595 }, rot = { x = 342.840, y = 32.664, z = 358.099 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188026, gadget_id = 70690001, pos = { x = 2230.230, y = 254.777, z = -449.552 }, rot = { x = 342.840, y = 32.664, z = 358.099 }, level = 5, persistent = true, area_id = 3 }, { config_id = 188030, gadget_id = 70690013, pos = { x = 2208.109, y = 204.955, z = -485.194 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5, persistent = true, area_id = 3 } } -- 区域 regions = { { config_id = 188027, shape = RegionShape.SPHERE, radius = 50, pos = { x = 1891.028, y = 253.464, z = -559.250 }, area_id = 3 }, { config_id = 188028, shape = RegionShape.SPHERE, radius = 25, pos = { x = 2241.556, y = 266.938, z = -435.712 }, area_id = 3 } } -- 触发器 triggers = { { config_id = 1188027, name = "ENTER_REGION_188027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_188027", action = "action_EVENT_ENTER_REGION_188027", trigger_count = 0 }, { config_id = 1188028, name = "ENTER_REGION_188028", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_188028", action = "action_EVENT_ENTER_REGION_188028" }, { config_id = 1188029, name = "TIME_AXIS_PASS_188029", event = EventType.EVENT_TIME_AXIS_PASS, source = "T_sight", condition = "", action = "action_EVENT_TIME_AXIS_PASS_188029" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 188001, 188002, 188003, 188004, 188005, 188006, 188007, 188008, 188009, 188010, 188011, 188012, 188013, 188014, 188015, 188016, 188017, 188018, 188019, 188020, 188021, 188022, 188024, 188025, 188026, 188030 }, regions = { 188027, 188028 }, triggers = { "ENTER_REGION_188027", "ENTER_REGION_188028", "TIME_AXIS_PASS_188029" }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ENTER_REGION_188027(context, evt) if evt.param1 ~= 188027 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_188027(context, evt) -- 创建标识为"T_sight",时间节点为{3}的时间轴,false用于控制该时间轴是否循环 ScriptLib.InitTimeAxis(context, "T_sight", {3}, false) return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_188028(context, evt) if evt.param1 ~= 188028 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_188028(context, evt) -- 重新生成指定group,指定suite if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133001188, suite = 2 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite") return -1 end return 0 end -- 触发操作 function action_EVENT_TIME_AXIS_PASS_188029(context, evt) -- 触发镜头注目,注目位置为坐标(1898,256,-565.56),持续时间为3秒,并且为强制注目形式,不广播其他玩家 local pos = {x=1898, y=256, z=-565.56} local pos_follow = {x=0, y=0, z=0} if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0, is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false, is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin") return -1 end -- 调用提示id为 400872 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格 if 0 ~= ScriptLib.ShowReminder(context, 400872) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") return -1 end return 0 end