添加配置表

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 = -400.0, z = -300.0 },
size = { x = 1024.0, z = 1800.0 },
born_pos = { x = 0.000, y = 0.000, z = 0.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -60,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 50085 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -400.0, z = -300.0 }, max = { x = 624.0, z = 1500.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,141 @@
{
"sceneId": 50085,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "OneWay",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 0.0,
"z": 15.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 0.0,
"y": 20.0,
"z": 19.37033
},
"waitTime": 1.0,
"targetVelocity": 5.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": -27.0,
"y": 27.0,
"z": 40.0
},
"waitTime": 1.0,
"targetVelocity": 5.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": -54.0,
"y": 34.0,
"z": 80.0
},
"waitTime": 1.0,
"targetVelocity": 5.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": -81.0,
"y": 41.0,
"z": 115.0
},
"waitTime": 1.0,
"targetVelocity": 5.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": -81.0,
"y": 21.0,
"z": 115.0
},
"waitTime": 0.0,
"targetVelocity": 6.0,
"rotRoundReachDir": {
"x": 0.0,
"y": -35.0,
"z": 7.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
}
]
}
]
}
@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 250085002, pos = { x = -33.399, y = -5.049, z = -38.231 }, business = { type = 2 } }
}
@@ -0,0 +1,100 @@
-- 基础信息
local base_info = {
group_id = 250085002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70380300, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1, route_id = 1, start_route = false },
{ config_id = 2002, gadget_id = 70360002, pos = { x = -89.490, y = -0.711, z = 21.385 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 7 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "SELECT_OPTION_2003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2003", action = "action_EVENT_SELECT_OPTION_2003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002 },
regions = { },
triggers = { "SELECT_OPTION_2003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_2003(context, evt)
-- 判断是gadgetid 2002 option_id 7
if 2002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2003(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 2001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -36.88599,
"y": -3.471242,
"z": -50.22089
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": -36.88599,
"y": -3.471242,
"z": -50.22089
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}
@@ -0,0 +1,53 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 440.72113,
"y": 83.25597,
"z": 464.837524
},
"rotation": {
"x": 0.0,
"y": 180.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": 363.594269,
"y": 83.25597,
"z": 434.361267
},
"rotation": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"velocity": 0.0,
"time": 5.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]