添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -512.0, z = -512.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = 329.870, y = 179.839, z = 282.783 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = 170,
city_id = 4,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20157 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,42 @@
{
"sceneId": 20157,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 246.8903,
"y": 182.32341,
"z": 247.272766
},
"waitTime": 1.0,
"speedLevel": 1
},
{
"pos": {
"x": 250.153915,
"y": 182.366653,
"z": 247.2728
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 251.417908,
"y": 182.1339,
"z": 249.162216
},
"waitTime": 2.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,11 @@
-- 所有的group
groups = {
{ id = 220157001, refresh_id = 1, pos = { x = 273.434, y = 183.864, z = 282.665 } },
{ id = 220157002, refresh_id = 1002, pos = { x = 269.965, y = 183.824, z = 282.666 } },
{ id = 220157003, refresh_id = 1001, pos = { x = 90.602, y = 188.330, z = 282.560 } },
{ id = 220157004, refresh_id = 1000, pos = { x = 267.915, y = 183.762, z = 271.703 } },
{ id = 220157005, refresh_id = 1000, pos = { x = 245.143, y = 182.215, z = 250.864 } },
{ id = 220157006, refresh_id = 1, pos = { x = 275.158, y = 183.762, z = 281.775 } },
{ id = 220157007, pos = { x = 327.005, y = 180.012, z = 283.714 } },
{ id = 220157008, refresh_id = 1002, pos = { x = 156.665, y = 181.997, z = 283.008 } }
}
@@ -0,0 +1,9 @@
dummy_points = {
["Q1301198_N10000005"] = { pos = { x = 153.825, y = 181.936, z = 281.816 }, rot = { x = 0.000, y = 286.247, z = 0.000 } },
["Q1301198_N1005"] = { pos = { x = 153.842, y = 181.936, z = 282.961 }, rot = { x = 0.000, y = 264.771, z = 0.000 } },
["Q1301198_N1058"] = { pos = { x = 153.964, y = 181.947, z = 284.178 }, rot = { x = 0.000, y = 255.143, z = 0.000 } },
["Q1301199_N10000005"] = { pos = { x = 92.763, y = 188.247, z = 282.070 }, rot = { x = 0.000, y = 271.929, z = 0.000 } },
["Q1301199_N1005"] = { pos = { x = 92.639, y = 188.247, z = 282.981 }, rot = { x = 0.000, y = 253.727, z = 0.000 } },
["Q1301199_N1058"] = { pos = { x = 92.515, y = 188.247, z = 281.183 }, rot = { x = 0.000, y = 301.564, z = 0.000 } },
["Q1301199_N12788"] = { pos = { x = 89.612, y = 188.247, z = 282.548 }, rot = { x = 0.000, y = 268.899, z = 0.000 } }
}
@@ -0,0 +1,691 @@
-- 基础信息
local base_info = {
group_id = 220157001
}
-- DEFS_MISCS
local Option_to_Rotation = {
[1001]={
[1] = { levelTag = 48, arrayPoint = 1 },
[7] = { levelTag = 49, arrayPoint = 2 },
},
[1002]={
[1] = { levelTag = 50, arrayPoint = 1 },
[7] = { levelTag = 51, arrayPoint = 2 },
},
[1003]={
[1] = { levelTag = 52, arrayPoint = 1 },
[31] = { levelTag = 53, arrayPoint = 2 },
[613] = { levelTag = 54, arrayPoint = 3 },
},
}
------------轴的configID
local AxisList = {
[1001] = 1011,
[1002] = 1012,
[1003] = 1013,
}
------------操作台对应的点阵ID
local ArrayID = {
[1001] = 1,
[1002] = 2,
[1003] = 3,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 通道旋转
{ config_id = 1001, gadget_id = 70330333, pos = { x = 221.625, y = 184.403, z = 250.477 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
-- 房间A
{ config_id = 1002, gadget_id = 70330459, pos = { x = 247.993, y = 180.281, z = 282.624 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
-- 房间B
{ config_id = 1003, gadget_id = 70330459, pos = { x = 194.283, y = 179.964, z = 282.630 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
-- 通道旋转
{ config_id = 1011, gadget_id = 70590072, pos = { x = 243.575, y = 187.830, z = 250.410 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
-- 房间A
{ config_id = 1012, gadget_id = 70590072, pos = { x = 237.764, y = 184.130, z = 282.625 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
-- 房间B
{ config_id = 1013, gadget_id = 70590072, pos = { x = 171.200, y = 186.840, z = 282.625 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 1014, gadget_id = 70330425, pos = { x = 255.220, y = 177.200, z = 282.625 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1015, gadget_id = 70330425, pos = { x = 201.344, y = 176.800, z = 282.625 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
-- 墙壁
{ config_id = 1016, gadget_id = 70330399, pos = { x = 187.231, y = 196.936, z = 282.636 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 1 },
{ config_id = 1019, gadget_id = 70330412, pos = { x = 173.940, y = 186.840, z = 282.619 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 1025, gadget_id = 70330455, pos = { x = 176.223, y = 182.760, z = 282.608 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
-- 旋转时堵房门1
{ config_id = 1027, gadget_id = 70950164, pos = { x = 258.060, y = 184.450, z = 282.570 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
-- 旋转时堵房门2
{ config_id = 1028, gadget_id = 70950164, pos = { x = 212.740, y = 184.450, z = 282.570 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1020, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 212.331, y = 183.945, z = 282.630 } }
}
-- 触发器
triggers = {
-- 房间A
{ config_id = 1001005, name = "GADGET_CREATE_1005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1005", action = "action_EVENT_GADGET_CREATE_1005" },
-- 房间B
{ config_id = 1001006, name = "GADGET_CREATE_1006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1006", action = "action_EVENT_GADGET_CREATE_1006" },
-- 通道
{ config_id = 1001007, name = "SELECT_OPTION_1007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1007", action = "action_EVENT_SELECT_OPTION_1007" },
-- 房间A
{ config_id = 1001008, name = "SELECT_OPTION_1008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1008", action = "action_EVENT_SELECT_OPTION_1008" },
-- 房间B旋转180
{ config_id = 1001009, name = "SELECT_OPTION_1009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1009", action = "action_EVENT_SELECT_OPTION_1009", trigger_count = 0 },
-- 房间B旋转归零
{ config_id = 1001010, name = "SELECT_OPTION_1010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1010", action = "action_EVENT_SELECT_OPTION_1010", trigger_count = 0 },
{ config_id = 1001017, name = "TIME_AXIS_PASS_1017", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1017", action = "action_EVENT_TIME_AXIS_PASS_1017" },
{ config_id = 1001018, name = "GADGET_CREATE_1018", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1018", action = "action_EVENT_GADGET_CREATE_1018", trigger_count = 0 },
{ config_id = 1001020, name = "ENTER_REGION_1020", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1020", action = "action_EVENT_ENTER_REGION_1020" },
{ config_id = 1001021, name = "TIME_AXIS_PASS_1021", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1021", action = "action_EVENT_TIME_AXIS_PASS_1021" },
-- 墙壁推出
{ config_id = 1001022, name = "SELECT_OPTION_1022", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1022", action = "action_EVENT_SELECT_OPTION_1022", trigger_count = 0 },
-- 房间B旋转180
{ config_id = 1001023, name = "TIME_AXIS_PASS_1023", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1023", action = "action_EVENT_TIME_AXIS_PASS_1023", trigger_count = 0 },
-- 房间B旋转归零
{ config_id = 1001024, name = "TIME_AXIS_PASS_1024", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1024", action = "action_EVENT_TIME_AXIS_PASS_1024", trigger_count = 0 },
{ config_id = 1001026, name = "TIME_AXIS_PASS_1026", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1026", action = "action_EVENT_TIME_AXIS_PASS_1026" }
}
-- 变量
variables = {
{ config_id = 1, name = "EyeCount", value = 0, no_refresh = false },
{ config_id = 2, name = "StairCount", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1001004, name = "GADGET_CREATE_1004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1004", action = "action_EVENT_GADGET_CREATE_1004" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1011 },
regions = { },
triggers = { "SELECT_OPTION_1007", "TIME_AXIS_PASS_1021" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1002, 1012, 1014 },
regions = { },
triggers = { "GADGET_CREATE_1005", "SELECT_OPTION_1008", "TIME_AXIS_PASS_1017" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 1003, 1013, 1015 },
regions = { 1020 },
triggers = { "GADGET_CREATE_1006", "SELECT_OPTION_1009", "SELECT_OPTION_1010", "ENTER_REGION_1020", "TIME_AXIS_PASS_1023", "TIME_AXIS_PASS_1024", "TIME_AXIS_PASS_1026" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 1016, 1019, 1025 },
regions = { },
triggers = { "GADGET_CREATE_1018", "SELECT_OPTION_1022" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 1027 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 1028 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1005(context, evt)
if 1002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220157001, 1002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1006(context, evt)
if 1003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1006(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220157001, 1003, {31}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1007(context, evt)
-- 判断是gadgetid 1001 option_id 7
if 1001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1007(context, evt)
-- 删除指定group 220157001 ;指定config1001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220157001, 1001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220157001, 2)
-- 锁视角禁移动
local pos = { x=243.575, y=187.83, z=250.41}
local pos_follow = { x=224.658, y=187.252, z=250.407}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 8, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0, is_set_follow_pos = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false, screen_x = 0, screen_y = 0, is_set_screenXY = false }) then
ScriptLib.PrintContextLog(context, "@@Lua_warning : active_cameralook_begin")
return -1
end
-- 创建标识为"timer4",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "timer4", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1008(context, evt)
-- 判断是gadgetid 1002 option_id 7
if 1002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1008(context, evt)
-- 删除指定group 220157001 ;指定config1002;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220157001, 1002, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220157001, 3)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220157001, 4)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220157001, 5)
-- 锁视角禁移动
local pos = { x=237.764, y=184.13, z=282.625}
local pos_follow = { x=255.729, y=180.95, z=282.625}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 8, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0, is_set_follow_pos = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false, screen_x = 0, screen_y = 0, is_set_screenXY = false }) then
ScriptLib.PrintContextLog(context, "@@Lua_warning : active_cameralook_begin")
return -1
end
-- 创建标识为"timer1",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "timer1", {8}, false)
ScriptLib.RefreshGroup(context, { group_id = 220157006, suite = 7 })
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1009(context, evt)
-- 判断是gadgetid 1003 option_id 31
if 1003 ~= evt.param1 then
return false
end
if 31 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1009(context, evt)
-- 删除指定group 220157001 ;指定config1003;物件身上指定option31
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220157001, 1003, 31) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 创建标识为"timer2",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "timer2", {8}, false)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 220157001, 6)
-- 锁视角禁移动
local pos = { x=171.2, y=186.84, z=282.625}
local pos_follow = { x=202.128, y=180.312, z=282.625}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 8, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0, is_set_follow_pos = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false, screen_x = 0, screen_y = 0, is_set_screenXY = false }) then
ScriptLib.PrintContextLog(context, "@@Lua_warning : active_cameralook_begin")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if ScriptLib.GetGroupVariableValueByGroup(context, "EyeCount", 220157001) ~= 1 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 1019, 4, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
ScriptLib.RefreshGroup(context, { group_id = 220157006, suite = 8 })
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1010(context, evt)
-- 判断是gadgetid 1003 option_id 613
if 1003 ~= evt.param1 then
return false
end
if 613 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1010(context, evt)
-- 删除指定group 220157001 ;指定config1003;物件身上指定option613
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220157001, 1003, 613) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 创建标识为"timer3",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
if ScriptLib.GetGroupVariableValueByGroup(context, "StairCount", 220157001) ~= 1 then
ScriptLib.InitTimeAxis(context, "timer3", {8}, false)
end
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 220157001, 6)
-- 将configid为 1025 的物件更改为状态 GadgetState.GearStart
if ScriptLib.GetGroupVariableValueByGroup(context, "EyeCount", 220157001) ~= 0 then
ScriptLib.InitTimeAxis(context, "timer4", {7}, false)
end
-- 锁视角禁移动
local pos = { x=171.2, y=186.84, z=282.625}
local pos_follow = { x=202.128, y=180.312, z=282.625}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 8, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0, is_set_follow_pos = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false, screen_x = 0, screen_y = 0, is_set_screenXY = false }) then
ScriptLib.PrintContextLog(context, "@@Lua_warning : active_cameralook_begin")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if ScriptLib.GetGroupVariableValueByGroup(context, "EyeCount", 220157001) ~= 1 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 1019, 4, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1017(context, evt)
if "timer1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1017(context, evt)
-- 调用提示id为 201570401 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201570401) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220157001, 5)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220157008, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1018(context, evt)
if 1016 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1018(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220157001, 1016, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1020(context, evt)
if evt.param1 ~= 1020 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_1020(context, evt)
-- 调用提示id为 201570501 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201570501) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1021(context, evt)
if "timer4" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1021(context, evt)
-- 调用提示id为 201570301 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201570301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220157004, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220157006, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1022(context, evt)
-- 判断是gadgetid 1016 option_id 7
if 1016 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1022(context, evt)
-- 将configid为 1016 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1016, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220157001 ;指定config1016;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220157001, 1016, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1019 的物件更改为状态 GadgetState.GearAction2
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1019, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "EyeCount" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "EyeCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 锁视角禁移动
local pos = { x=173.94, y=186.84, z=282.625}
local pos_follow = { x=190, y=180, z=282.625}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0, is_set_follow_pos = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false, screen_x = 0, screen_y = 0, is_set_screenXY = false }) then
ScriptLib.PrintContextLog(context, "@@Lua_warning : active_cameralook_begin")
return -1
end
-- 将本组内变量名为 "StairCount" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StairCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1023(context, evt)
if "timer2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1023(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220157001, 1003, {613}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220157001, 6)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1024(context, evt)
if "timer3" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1024(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220157001, 1003, {31}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220157001, 6)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1026(context, evt)
if "timer4" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1026(context, evt)
-- 将configid为 1025 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1025, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220157001, 6)
return 0
end
require "V3_1/RotateDungeon"
@@ -0,0 +1,111 @@
-- 基础信息
local base_info = {
group_id = 220157002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 24040301, pos = { x = 270.445, y = 183.717, z = 282.224 }, rot = { x = 0.000, y = 315.000, z = 0.000 }, level = 1, pose_id = 1002 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2006, gadget_id = 70211012, pos = { x = 264.301, y = 183.711, z = 279.574 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, drop_tag = "战斗中级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 2007, gadget_id = 70330416, pos = { x = 267.305, y = 184.262, z = 268.586 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002005, name = "ANY_MONSTER_DIE_2005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2005", action = "action_EVENT_ANY_MONSTER_DIE_2005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2001 },
gadgets = { 2006, 2007 },
regions = { },
triggers = { "ANY_MONSTER_DIE_2005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2005(context, evt)
-- 将configid为 2007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220157005, 2)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220157006, 2)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220157007, 2)
-- 将configid为 2006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,201 @@
-- 基础信息
local base_info = {
group_id = 220157003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 25210307, pos = { x = 90.308, y = 188.330, z = 282.582 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 }, title_id = 10135, special_name_id = 10186 },
{ config_id = 3004, monster_id = 25110202, pos = { x = 86.641, y = 188.303, z = 286.278 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 3005, monster_id = 25110102, pos = { x = 86.838, y = 188.303, z = 279.079 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3006, gadget_id = 70330453, pos = { x = 119.295, y = 189.022, z = 282.657 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70310043, pos = { x = 90.271, y = 188.330, z = 282.591 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003002, name = "QUEST_FINISH_3002", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_3002", action = "action_EVENT_QUEST_FINISH_3002" },
{ config_id = 1003003, name = "ANY_MONSTER_DIE_3003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3003", action = "action_EVENT_ANY_MONSTER_DIE_3003" },
{ config_id = 1003007, name = "QUEST_FINISH_3007", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_3007", action = "action_EVENT_QUEST_FINISH_3007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3006 },
regions = { },
triggers = { "QUEST_FINISH_3002", "ANY_MONSTER_DIE_3003", "QUEST_FINISH_3007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3001, 3004, 3005 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 3008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_3002(context, evt)
--检查ID为1301113的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 1301113 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_3002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220157003, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220157003, 3)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220157006, suite = 11 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
ScriptLib.ActivateDungeonCheckPoint(context, 1)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3003(context, evt)
--判断死亡怪物的configid是否为 3001
if evt.param1 ~= 3001 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3003(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "1301119") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220157003, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220157003, 3)
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_3007(context, evt)
--检查ID为1301112的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 1301112 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_3007(context, evt)
-- 将configid为 3006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220157006, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,113 @@
-- 基础信息
local base_info = {
group_id = 220157004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4003, monster_id = 28060402, pos = { x = 281.082, y = 174.332, z = 257.716 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 3 },
{ config_id = 4004, monster_id = 28060402, pos = { x = 279.583, y = 174.332, z = 260.226 }, rot = { x = 0.000, y = 320.000, z = 0.000 }, level = 1, pose_id = 3 },
{ config_id = 4005, monster_id = 28060402, pos = { x = 277.480, y = 174.332, z = 255.986 }, rot = { x = 0.000, y = 330.000, z = 0.000 }, level = 1, pose_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70350004, pos = { x = 282.719, y = 174.649, z = 258.522 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70211102, pos = { x = 287.722, y = 174.342, z = 257.807 }, rot = { x = 0.000, y = 240.000, z = 0.000 }, level = 1, drop_tag = "解谜低级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004006, name = "ANY_MONSTER_DIE_4006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4006", action = "action_EVENT_ANY_MONSTER_DIE_4006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4003, 4004, 4005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4006(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,116 @@
-- 基础信息
local base_info = {
group_id = 220157005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5002, monster_id = 28060402, pos = { x = 246.890, y = 182.323, z = 247.273 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 5003, monster_id = 28060402, pos = { x = 248.967, y = 182.355, z = 253.264 }, rot = { x = 0.000, y = 135.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005001, name = "ANY_MONSTER_DIE_5001", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5001", action = "action_EVENT_ANY_MONSTER_DIE_5001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 5002, 5003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_5001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5001(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5001(context, evt)
-- 改变指定group组220157001中, configid为1001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220157001, 1001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220157001, 1001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220157006, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,221 @@
-- 基础信息
local base_info = {
group_id = 220157006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70900201, pos = { x = 249.275, y = 182.531, z = 250.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70900202, pos = { x = 221.625, y = 186.371, z = 250.477 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6003, gadget_id = 70900201, pos = { x = 259.601, y = 176.301, z = 250.099 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70900201, pos = { x = 264.921, y = 177.551, z = 282.456 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6007, gadget_id = 70900202, pos = { x = 247.993, y = 179.860, z = 282.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6008, gadget_id = 70900202, pos = { x = 194.283, y = 179.544, z = 282.630 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6009, gadget_id = 70360001, pos = { x = 194.345, y = 179.403, z = 282.667 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6010, gadget_id = 70900201, pos = { x = 124.248, y = 188.718, z = 282.662 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6011, gadget_id = 70360001, pos = { x = 194.345, y = 179.403, z = 282.667 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6012, gadget_id = 70900201, pos = { x = 90.270, y = 188.824, z = 282.661 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6004, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 259.601, y = 175.667, z = 250.099 } },
{ config_id = 6006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 264.921, y = 178.998, z = 282.669 } }
}
-- 触发器
triggers = {
{ config_id = 1006004, name = "ENTER_REGION_6004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6004", action = "action_EVENT_ENTER_REGION_6004" },
{ config_id = 1006006, name = "ENTER_REGION_6006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6006", action = "action_EVENT_ENTER_REGION_6006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 6002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 6003 },
regions = { 6004 },
triggers = { "ENTER_REGION_6004" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 6005 },
regions = { 6006 },
triggers = { "ENTER_REGION_6006" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 6007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 6008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 6009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 6010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 6012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 6011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_6004(context, evt)
if evt.param1 ~= 6004 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_6004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220157006, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6006(context, evt)
if evt.param1 ~= 6006 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_6006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220157006, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,130 @@
-- 基础信息
local base_info = {
group_id = 220157007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 7001, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 323.123, y = 183.448, z = 282.834 } },
{ config_id = 7002, shape = RegionShape.CUBIC, size = { x = 20.000, y = 30.000, z = 10.000 }, pos = { x = 268.272, y = 187.774, z = 257.745 } }
}
-- 触发器
triggers = {
{ config_id = 1007001, name = "ENTER_REGION_7001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7001", action = "action_EVENT_ENTER_REGION_7001" },
{ config_id = 1007002, name = "ENTER_REGION_7002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7002", action = "action_EVENT_ENTER_REGION_7002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 7001 },
triggers = { "ENTER_REGION_7001" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 7002 },
triggers = { "ENTER_REGION_7002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_7001(context, evt)
if evt.param1 ~= 7001 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_7001(context, evt)
-- 调用提示id为 201570101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201570101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7002(context, evt)
if evt.param1 ~= 7002 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_7002(context, evt)
-- 调用提示id为 201570201 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201570201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,166 @@
-- 基础信息
local base_info = {
group_id = 220157008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 24040201, pos = { x = 155.869, y = 181.864, z = 282.481 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 8005, shape = RegionShape.CUBIC, size = { x = 10.000, y = 20.000, z = 25.000 }, pos = { x = 162.533, y = 189.929, z = 283.008 } }
}
-- 触发器
triggers = {
{ config_id = 1008003, name = "ANY_MONSTER_DIE_8003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8003", action = "action_EVENT_ANY_MONSTER_DIE_8003" },
{ config_id = 1008004, name = "TIME_AXIS_PASS_8004", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_8004", action = "action_EVENT_TIME_AXIS_PASS_8004" },
{ config_id = 1008005, name = "ENTER_REGION_8005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8005", action = "action_EVENT_ENTER_REGION_8005" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
regions = {
{ config_id = 8002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 169.432, y = 185.017, z = 282.885 } }
},
triggers = {
{ config_id = 1008002, name = "ENTER_REGION_8002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8002", action = "action_EVENT_ENTER_REGION_8002" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 8005 },
triggers = { "ENTER_REGION_8005" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 8001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_8003", "TIME_AXIS_PASS_8004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8003(context, evt)
-- 创建标识为"timergate",时间节点为{3}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "timergate", {3}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_8004(context, evt)
if "timergate" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_8004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "1301125") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8005(context, evt)
if evt.param1 ~= 8005 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_8005(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220157008, 3)
-- 激活复活点
ScriptLib.ActivateDungeonCheckPoint(context, 2)
return 0
end
@@ -0,0 +1,212 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 339.0353,
"y": 158.9135,
"z": 276.4477
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 30.0,
"useHeight": true,
"width": 30.0
},
"stringParam": "",
"tranPos": {
"x": 339.035278,
"y": 137.726624,
"z": 276.447723
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 86.74696,
"y": 175.8747,
"z": 282.487
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 60.0,
"useHeight": true,
"width": 60.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 99.47007,
"y": 188.2471,
"z": 282.739
},
"rot": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 167.8289,
"y": 182.1777,
"z": 282.739
},
"rot": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}
@@ -0,0 +1,229 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 243.575,
"y": 187.83,
"z": 250.41
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 243.575,
"y": 187.83,
"z": 250.41
},
"rotation": {
"x": 0.0,
"y": 180.0,
"z": 180.0
},
"velocity": 0.0,
"time": 8.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 2,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 237.764,
"y": 184.13,
"z": 282.625
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 237.764,
"y": 184.13,
"z": 282.625
},
"rotation": {
"x": 0.0,
"y": 180.0,
"z": 180.0
},
"velocity": 0.0,
"time": 8.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 3,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 171.2,
"y": 186.84,
"z": 282.625
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 4.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 171.2,
"y": 186.84,
"z": 282.625
},
"rotation": {
"x": 0.0,
"y": 180.0,
"z": 180.0
},
"velocity": 0.0,
"time": 8.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 171.2,
"y": 186.84,
"z": 282.625
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 8.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 4,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 173.9395,
"y": 186.84,
"z": 282.6194
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 8.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 173.9395,
"y": 186.84,
"z": 282.6194
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 180.0
},
"velocity": 0.0,
"time": 8.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]