添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -320.0, z = -236.0 },
size = { x = 986.0, z = 622.0 },
born_pos = { x = -0.100, y = 0.000, z = 0.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -347.2,
city_id = 1,
vision_anchor = { x = -320.0, z = -236.0 }
}
-- 所有的区块
blocks = { 20007 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -320.0, z = -236.0 }, max = { x = 666.0, z = 386.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,735 @@
{
"sceneId": 20007,
"routes": [
{
"localId": 3,
"name": "Route_003",
"type": "Loop",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 0.5,
"y": 23.0,
"z": 20.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 0.0,
"y": 23.0,
"z": 20.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 0.0,
"y": 23.0,
"z": 12.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 0.0,
"y": 23.0,
"z": 10.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 8.5,
"y": 23.0,
"z": 10.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 10.0,
"y": 23.0,
"z": 10.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 10.0,
"y": 23.0,
"z": 19.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 10.0,
"y": 23.0,
"z": 20.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
}
]
},
{
"localId": 20007004,
"name": "Route_20007004",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2.181909,
"y": -0.0139999986,
"z": -1.07502937
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 2.33451,
"y": -0.0139999986,
"z": 2.28198051
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 1.994267,
"y": -0.0139999986,
"z": -7.772188
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 1.767753,
"y": -0.0139999986,
"z": -14.4878578
},
"waitTime": 0.0,
"targetVelocity": 1.0
}
]
},
{
"localId": 20007005,
"name": "Platform_20007005",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -8.589084,
"y": 25.1178188,
"z": -5.87314272
},
"waitTime": 2.0,
"targetVelocity": 0.5
},
{
"pos": {
"x": -8.601045,
"y": 18.0727367,
"z": -5.87240267
},
"waitTime": 2.0,
"targetVelocity": 0.5
}
]
},
{
"localId": 20007006,
"name": "Route_20007006",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -11.3268538,
"y": -0.0139999986,
"z": 14.3120918
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": -11.3333387,
"y": -0.0139999986,
"z": 8.832758
},
"waitTime": 0.0,
"targetVelocity": 1.0
}
]
},
{
"localId": 20007007,
"name": "MoveStone_Buttom",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -7.8,
"y": -24.5,
"z": -15.0
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": -7.8,
"y": -25.0,
"z": -15.0
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20007008,
"name": "MoveStone_Top",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -7.8,
"y": 24.5,
"z": -15.0
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": -7.8,
"y": 25.0,
"z": -15.0
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20007009,
"name": "Test_Axis_Rot_X",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_X",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 6.0,
"y": 32.0,
"z": 50.0
},
"waitTime": 2.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 6.0,
"y": 27.0,
"z": 50.0
},
"waitTime": 2.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 6.0,
"y": 27.0,
"z": 55.0
},
"waitTime": 2.0,
"targetVelocity": 1.0
}
]
},
{
"localId": 20007010,
"name": "Test_Axis_Rot_Y",
"type": "Reciprocate",
"rotType": "ROT_ANGLE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 6.0,
"y": 32.0,
"z": 60.0
},
"waitTime": 1.0,
"targetVelocity": 1.0,
"rotAngleMoveSpeed": 30.0,
"rotAngleWaitSpeed": 30.0,
"rotAngleSameStop": false
},
{
"pos": {
"x": 6.0,
"y": 27.0,
"z": 60.0
},
"waitTime": 5.0,
"targetVelocity": 1.0,
"rotAngleMoveSpeed": 30.0,
"rotAngleWaitSpeed": 30.0,
"rotAngleSameStop": false
},
{
"pos": {
"x": 6.0,
"y": 27.0,
"z": 65.0
},
"waitTime": 5.0,
"targetVelocity": 1.0,
"rotAngleMoveSpeed": 30.0,
"rotAngleWaitSpeed": 30.0,
"rotAngleSameStop": false
}
]
},
{
"localId": 20007011,
"name": "Test_Axis_Rot_Z",
"type": "Loop",
"rotType": "ROT_ANGLE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 6.0,
"y": 32.0,
"z": 70.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotAngleMoveSpeed": 30.0,
"rotAngleWaitSpeed": 30.0,
"rotAngleSameStop": false
},
{
"pos": {
"x": 6.0,
"y": 27.0,
"z": 70.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotAngleMoveSpeed": 30.0,
"rotAngleWaitSpeed": 30.0,
"rotAngleSameStop": false
},
{
"pos": {
"x": 6.0,
"y": 27.0,
"z": 75.0
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotAngleMoveSpeed": 30.0,
"rotAngleWaitSpeed": 30.0,
"rotAngleSameStop": false
}
]
},
{
"localId": 20007012,
"name": "Test_Dir_Rot_Re",
"type": "Reciprocate",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 40.0,
"y": 30.0,
"z": 70.0
},
"waitTime": 1.0,
"targetVelocity": 2.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 40.0,
"y": 20.0,
"z": 70.0
},
"waitTime": 1.0,
"targetVelocity": 2.0,
"rotRoundReachDir": {
"x": 45.0,
"y": 45.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 90.0,
"y": 90.0,
"z": 90.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 40.0,
"y": 30.0,
"z": 80.0
},
"waitTime": 1.0,
"targetVelocity": 2.0,
"rotRoundReachDir": {
"x": 160.0,
"y": 160.0,
"z": 160.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 270.0,
"y": 270.0,
"z": 270.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 40.0,
"y": 20.0,
"z": 80.0
},
"waitTime": 1.0,
"targetVelocity": 2.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 40.0,
"z": 40.0
},
"rotRoundWaitRounds": 0
}
]
},
{
"localId": 20007013,
"name": "Test_Dir_Rot_Loop",
"type": "Loop",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 40.0,
"y": 30.0,
"z": 50.0
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"rotRoundReachDir": {
"x": 90.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 90.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 40.0,
"y": 20.0,
"z": 50.0
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"rotRoundReachDir": {
"x": 315.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 315.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 40.0,
"y": 30.0,
"z": 60.0
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"rotRoundReachDir": {
"x": 90.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 90.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 40.0,
"y": 20.0,
"z": 60.0
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"rotRoundReachDir": {
"x": 315.0,
"y": 180.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 315.0,
"y": 180.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
}
]
},
{
"localId": 20007014,
"name": "Platform_20007014",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 12.7235384,
"y": -1.57471085,
"z": -10.4584465
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 13.47019,
"y": 22.8746853,
"z": -9.413261
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 2.76256561,
"y": 22.9710159,
"z": -1.73916149
},
"waitTime": 0.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 20007015,
"name": "lift-0",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -8.4,
"y": -1.0,
"z": -5.0
},
"waitTime": 5.0,
"targetVelocity": 4.0,
"hasReachEvent": true
}
]
},
{
"localId": 20007016,
"name": "lift-1",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -8.4,
"y": 20.0,
"z": -5.0
},
"waitTime": 5.0,
"targetVelocity": 4.0,
"hasReachEvent": true
}
]
}
]
}

View File

@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 220007003, refresh_id = 1, pos = { x = 3.387, y = 20.967, z = 13.267 } },
{ id = 220007005, pos = { x = -2.166, y = 20.967, z = -5.020 } },
{ id = 220007007, refresh_id = 1, pos = { x = 21.078, y = 26.050, z = 61.004 } },
{ id = 220007008, refresh_id = 1, pos = { x = -4.829, y = 20.967, z = 21.998 } }
}

View File

@@ -0,0 +1,2 @@
dummy_points = {
}

View File

@@ -0,0 +1,83 @@
-- 基础信息
local base_info = {
group_id = 220007003
}
-- Trigger变量
local defs = {
gadget_id_1 = 43,
gadget_id_2 = 6,
gadget_id_3 = 5,
gadget_id_4 = 1,
gadget_id_5 = 4,
gadget_id_6 = 26
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4, gadget_id = 70380001, pos = { x = 13.118, y = 1.198, z = -10.109 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20007014 },
{ config_id = 5, gadget_id = 70710010, pos = { x = 5.000, y = 23.000, z = 20.000 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, route_id = 3 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4, 5 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,168 @@
-- 基础信息
local base_info = {
group_id = 220007005
}
-- Trigger变量
local defs = {
gadget_lift = 51,
route_down = 20007015,
route_up = 20007016,
group_id = 220007005,
lift_wait_time = 4
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 51, gadget_id = 70380011, pos = { x = -8.400, y = 20.007, z = -5.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20007015, persistent = true }
}
-- 区域
regions = {
{ config_id = 33, shape = RegionShape.SPHERE, radius = 3, pos = { x = -7.514, y = -0.014, z = -8.964 } },
{ config_id = 34, shape = RegionShape.SPHERE, radius = 3, pos = { x = -3.705, y = 20.967, z = -4.917 } }
}
-- 触发器
triggers = {
{ config_id = 1000033, name = "ENTER_REGION_33", event = EventType.EVENT_ENTER_REGION, source = "1", condition = "condition_EVENT_ENTER_REGION_33", action = "action_EVENT_ENTER_REGION_33", trigger_count = 0 },
{ config_id = 1000034, name = "ENTER_REGION_34", event = EventType.EVENT_ENTER_REGION, source = "1", condition = "condition_EVENT_ENTER_REGION_34", action = "action_EVENT_ENTER_REGION_34", trigger_count = 0 },
{ config_id = 1000035, name = "PLATFORM_REACH_POINT_35", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "51", condition = "condition_EVENT_PLATFORM_REACH_POINT_35", action = "action_EVENT_PLATFORM_REACH_POINT_35", trigger_count = 0 },
{ config_id = 1000036, name = "TIMER_EVENT_36", event = EventType.EVENT_TIMER_EVENT, source = "wait_down", condition = "", action = "action_EVENT_TIMER_EVENT_36", trigger_count = 0 },
{ config_id = 1000037, name = "TIMER_EVENT_37", event = EventType.EVENT_TIMER_EVENT, source = "wait_up", condition = "", action = "action_EVENT_TIMER_EVENT_37", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "route_flag", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 51 },
regions = { 33, 34 },
triggers = { "ENTER_REGION_33", "ENTER_REGION_34", "PLATFORM_REACH_POINT_35", "TIMER_EVENT_36", "TIMER_EVENT_37" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_33(context, evt)
if evt.param1 ~= 33 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_33(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 51, 20007015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_34(context, evt)
if evt.param1 ~= 34 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_34(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 51, 20007016) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_35(context, evt)
if 51 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_35(context, evt)
if evt.param2 == defs.route_down then
ScriptLib.CreateGroupTimerEvent(context, defs.group_id, "wait_down", defs.lift_wait_time)
elseif evt.param2 == defs.route_up then
ScriptLib.CreateGroupTimerEvent(context, defs.group_id, "wait_up", defs.lift_wait_time)
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_36(context, evt)
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, "wait_up")
ScriptLib.SetPlatformRouteId(context, defs.gadget_lift, defs.route_up)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_37(context, evt)
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, "wait_down")
ScriptLib.SetPlatformRouteId(context, defs.gadget_lift, defs.route_down)
return 0
end

View File

@@ -0,0 +1,132 @@
-- 基础信息
local base_info = {
group_id = 220007007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 61, gadget_id = 70380002, pos = { x = 6.000, y = 32.000, z = 50.000 }, rot = { x = 0.176, y = 72.630, z = 47.000 }, level = 1, route_id = 20007009 },
{ config_id = 62, gadget_id = 70380002, pos = { x = 5.000, y = 32.000, z = 60.000 }, rot = { x = 0.000, y = 240.790, z = 184.600 }, level = 1, route_id = 20007010 },
{ config_id = 63, gadget_id = 70380002, pos = { x = 5.000, y = 32.000, z = 70.000 }, rot = { x = 328.730, y = 10.028, z = 332.450 }, level = 1, route_id = 20007011 },
{ config_id = 64, gadget_id = 70380001, pos = { x = 27.876, y = 28.126, z = 70.465 }, rot = { x = 295.500, y = 15.390, z = 0.000 }, level = 1, route_id = 20007012 },
{ config_id = 65, gadget_id = 70380001, pos = { x = 30.940, y = 28.243, z = 55.312 }, rot = { x = 0.000, y = 336.310, z = 259.500 }, level = 1, route_id = 20007013 },
{ config_id = 66, gadget_id = 70360002, pos = { x = 13.874, y = 26.050, z = 73.272 }, rot = { x = 0.000, y = 99.600, z = 0.000 }, level = 1 },
{ config_id = 67, gadget_id = 70360002, pos = { x = 13.450, y = 26.050, z = 62.001 }, rot = { x = 0.000, y = 95.016, z = 0.000 }, level = 1 },
{ config_id = 68, gadget_id = 70360002, pos = { x = 12.756, y = 26.050, z = 49.609 }, rot = { x = 0.000, y = 71.670, z = 0.000 }, level = 1 },
{ config_id = 69, gadget_id = 70360002, pos = { x = 28.554, y = 26.050, z = 50.164 }, rot = { x = 0.000, y = 305.200, z = 0.000 }, level = 1 },
{ config_id = 70, gadget_id = 70360002, pos = { x = 29.575, y = 26.050, z = 80.831 }, rot = { x = 0.000, y = 232.500, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000029, name = "GADGET_CREATE_29", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_29", action = "action_EVENT_GADGET_CREATE_29", trigger_count = 0 },
{ config_id = 1000030, name = "SELECT_OPTION_30", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_30", action = "action_EVENT_SELECT_OPTION_30", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 61, 62, 63, 64, 65, 66, 67, 68, 69, 70 },
regions = { },
triggers = { "GADGET_CREATE_29", "SELECT_OPTION_30" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_29(context, evt)
if evt.param1 > 63 and evt.param1 < 71 then
return true
else
return false
end
end
-- 触发操作
function action_EVENT_GADGET_CREATE_29(context, evt)
ScriptLib.SetWorktopOptionsByGroupId(context, 220007007, evt.param1, {1,4})
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_30(context, evt)
if evt.param2 ~= 1 and evt.param2 ~= 4 then
return false
end
if evt.param1 < 64 or evt.param1 > 70 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_30(context, evt)
local p_id = 0
if evt.param1 == 66 then
p_id = 63
elseif evt.param1 == 67 then
p_id = 62
elseif evt.param1 == 68 then
p_id = 61
elseif evt.param1 == 69 then
p_id = 65
elseif evt.param1 == 70 then
p_id = 64
end
if evt.param2 == 1 then
ScriptLib.StartPlatform(context, p_id)
elseif evt.param2 == 4 then
ScriptLib.StopPlatform(context, p_id)
end
return 0
end

View File

@@ -0,0 +1,134 @@
-- 基础信息
local base_info = {
group_id = 220007008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70900100, pos = { x = -3.372, y = 20.967, z = 17.065 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, mark_flag = 1 },
{ config_id = 8002, gadget_id = 70900100, pos = { x = 2.945, y = 20.967, z = 24.615 }, rot = { x = 0.000, y = 176.677, z = 0.000 }, level = 1, mark_flag = 2 },
{ config_id = 8003, gadget_id = 70900100, pos = { x = -1.421, y = 20.967, z = 24.361 }, rot = { x = 0.000, y = 176.677, z = 0.000 }, level = 1, mark_flag = 3 },
{ config_id = 8004, gadget_id = 70900100, pos = { x = -5.691, y = 20.967, z = 24.113 }, rot = { x = 0.000, y = 176.677, z = 0.000 }, level = 1, mark_flag = 4 },
{ config_id = 8005, gadget_id = 70900100, pos = { x = -9.754, y = 20.967, z = 23.877 }, rot = { x = 0.000, y = 176.677, z = 0.000 }, level = 1, mark_flag = 5 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008006, name = "GADGET_CREATE_8006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8006", action = "action_EVENT_GADGET_CREATE_8006", trigger_count = 0 },
{ config_id = 1008007, name = "SELECT_OPTION_8007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8007", action = "action_EVENT_SELECT_OPTION_8007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8002, 8003, 8004, 8005 },
regions = { },
triggers = { "GADGET_CREATE_8006", "SELECT_OPTION_8007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_8006(context, evt)
if evt.param1 ~= 8001 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_8006(context, evt)
ScriptLib.SetWorktopOptionsByGroupId(context, 220007008, evt.param1, {1,4,5,6,7})
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_8007(context, evt)
if evt.param1 ~= 8001 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_8007(context, evt)
if evt.param2 == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, 220007008, evt.param1, GadgetState.GearStart)
elseif evt.param2 == 4 then
ScriptLib.SetGroupGadgetStateByConfigId(context, 220007008, evt.param1, GadgetState.GearStop)
elseif evt.param2 == 5 then
ScriptLib.SetGroupGadgetStateByConfigId(context, 220007008, evt.param1, GadgetState.GearAction1)
elseif evt.param2 == 6 then
ScriptLib.SetGroupGadgetStateByConfigId(context, 220007008, evt.param1, GadgetState.GearAction2)
elseif evt.param2 == 7 then
ScriptLib.SetGroupGadgetStateByConfigId(context, 220007008, evt.param1, GadgetState.Default)
end
return 0
end

View File

@@ -0,0 +1,259 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -0.8989525,
"y": -0.014,
"z": -37.0
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 150.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70110002,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 306.4708,
"y": -99.29001,
"z": 117.7236
},
"rot": {
"x": 0.0,
"y": 0.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": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 21.01986,
"y": 20.967,
"z": 17.50665
},
"rot": {
"x": 0.0,
"y": 0.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
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 50.59965,
"y": -31.0,
"z": 75.33009
},
"rot": {
"x": 0.0,
"y": 0.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
},
"4": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 73.26542,
"y": 4.99,
"z": 117.0109
},
"rot": {
"x": 0.0,
"y": 91.35,
"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
},
"5": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 161.7958,
"y": 12.8,
"z": 117.345
},
"rot": {
"x": 0.0,
"y": 90.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
}