添加配置表

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 = -300.0, z = -350.0 },
size = { x = 600.0, z = 600.0 },
born_pos = { x = -136.973, y = -36.878, z = 54.534 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -150,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 50083 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -300.0, z = -350.0 }, max = { x = 300.0, z = 250.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 250083001, refresh_id = 1, pos = { x = -80.722, y = -31.935, z = 63.365 } }
}
@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 250083001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70380001, pos = { x = -90.293, y = -29.735, z = 64.686 }, rot = { x = 0.000, y = 0.000, z = 268.946 }, level = 1, is_use_point_array = true },
{ config_id = 1003, gadget_id = 70310175, pos = { x = -89.400, y = -29.323, z = 64.518 }, rot = { x = 0.000, y = 0.000, z = 270.000 }, level = 1, is_use_point_array = true }
}
-- 区域
regions = {
{ config_id = 1002, shape = RegionShape.SPHERE, radius = 5, pos = { x = -79.354, y = -31.322, z = 55.086 } }
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "ENTER_REGION_1002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1002", action = "action_EVENT_ENTER_REGION_1002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1003 },
regions = { 1002 },
triggers = { "ENTER_REGION_1002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1002(context, evt)
if evt.param1 ~= 1002 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1002(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 1001, 1, {1,2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
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 = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 1003, 2, {1,2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
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": -90.55337,
"y": -46.43448,
"z": 28.03598
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 1079.43762,
"y": 261.749023,
"z": 123.308
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}
@@ -0,0 +1,104 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -90.293045,
"y": -29.73454,
"z": 64.6861954
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 268.9456
},
"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": -90.293045,
"y": -29.73454,
"z": 64.6861954
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 268.9456
},
"velocity": 0.0,
"time": 1.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": -89.39961,
"y": -29.32257,
"z": 64.51814
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 270.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": -89.39961,
"y": -29.32257,
"z": 64.51814
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 270.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
}
]
}
]