添加配置表

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 = -4187.4, z = -3460.9 },
size = { x = 6000.0, z = 6000.0 },
born_pos = { x = 12.751, y = 256.754, z = 11.635 },
born_rot = { x = 0.000, y = 197.109, z = 0.000 },
die_y = -772.8866,
city_id = 2,
vision_anchor = { x = -4187.4, z = -3460.9 }
}
-- 所有的区块
blocks = { 1019 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -4187.4, z = -3460.9 }, max = { x = 1812.6, z = 2539.1 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 201019001, refresh_id = 1002, pos = { x = 97.248, y = 16.500, z = -19.380 } },
{ id = 201019002, refresh_id = 1001, pos = { x = 68.710, y = 16.500, z = 1.018 } },
{ id = 201019003, refresh_id = 1001, pos = { x = 62.731, y = 16.500, z = -2.712 } },
{ id = 201019004, refresh_id = 1002, pos = { x = -183.280, y = 17.642, z = 11.676 } }
}
@@ -0,0 +1,93 @@
-- 基础信息
local base_info = {
group_id = 201019001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 22010101, pos = { x = 68.674, y = 16.500, z = -3.164 }, rot = { x = 0.000, y = 92.950, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "MONSTER_BATTLE_1002", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_1002", action = "action_EVENT_MONSTER_BATTLE_1002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1001 },
gadgets = { },
regions = { },
triggers = { "MONSTER_BATTLE_1002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_1002(context, evt)
if 1001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_1002(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201019002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,107 @@
-- 基础信息
local base_info = {
group_id = 201019002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 21010201, pos = { x = 58.573, y = 16.500, z = -10.540 }, rot = { x = 0.000, y = 47.646, z = 0.000 }, level = 1 },
{ config_id = 2002, monster_id = 21010201, pos = { x = 58.621, y = 16.500, z = 5.389 }, rot = { x = 0.000, y = 109.451, z = 0.000 }, level = 1 },
{ config_id = 2003, monster_id = 21010201, pos = { x = 55.574, y = 16.500, z = -2.216 }, rot = { x = 0.000, y = 102.518, z = 0.000 }, level = 1 },
{ config_id = 2004, monster_id = 21010201, pos = { x = 68.159, y = 16.500, z = -11.791 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, monster_id = 21010201, pos = { x = 67.541, y = 16.500, z = 8.025 }, rot = { x = 0.000, y = 170.982, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002006, name = "ANY_MONSTER_DIE_2006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2006", action = "action_EVENT_ANY_MONSTER_DIE_2006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2001, 2002, 2003, 2004, 2005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2006(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201019002) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201019003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,85 @@
-- 基础信息
local base_info = {
group_id = 201019003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 20011201, pos = { x = 62.336, y = 16.500, z = 7.321 }, rot = { x = 0.000, y = 142.973, z = 0.000 }, level = 1 },
{ config_id = 3002, monster_id = 20011201, pos = { x = 54.566, y = 16.500, z = 1.809 }, rot = { x = 0.000, y = 0.000, z = 8.024 }, level = 1 },
{ config_id = 3003, monster_id = 20011201, pos = { x = 58.732, y = 16.500, z = -8.416 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, monster_id = 20011201, pos = { x = 68.808, y = 16.500, z = -13.380 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3005, monster_id = 20011201, pos = { x = 73.597, y = 16.500, z = 8.653 }, rot = { x = 0.000, y = 226.592, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3001, 3002, 3003, 3004, 3005 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 201019004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 22010201, pos = { x = -185.301, y = 17.654, z = 10.635 }, rot = { x = 0.000, y = 90.438, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -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": -208.0965,
"y": 17.74627,
"z": 9.49345
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.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
}