添加配置表

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,30 @@
-- 地图配置
scene_config = {
begin_pos = { x = -285.6, z = -285.6 },
size = { x = 571.3, z = 571.3 },
born_pos = { x = -0.305, y = -4.589, z = 65.071 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
born_point_list = {
{ pos = { x = -0.898, y = -4.964, z = 49.112 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 1.685, y = -4.964, z = 52.081 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -3.821, y = -4.964, z = 52.048 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -1.015, y = -4.964, z = 54.457 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
},
die_y = -20,
city_id = 1,
vision_anchor = { x = -285.6, z = -285.6 }
}
-- 所有的区块
blocks = { 40510 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -285.6, z = -285.6 }, max = { x = 285.6, z = 285.6 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 240510008, refresh_id = 1002, pos = { x = 6.240, y = 0.101, z = 2.286 } },
{ id = 240510009, refresh_id = 1, pos = { x = -2.879, y = 4.383, z = -64.309 } },
{ id = 240510010, refresh_id = 1, pos = { x = -1.950, y = -0.020, z = -5.605 } },
{ id = 240510011, refresh_id = 1, pos = { x = 7.471, y = -0.020, z = -10.296 } }
}
@@ -0,0 +1,223 @@
-- 基础信息
local base_info = {
group_id = 240510008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 25010701, pos = { x = 9.856, y = 0.101, z = -8.269 }, rot = { x = 0.000, y = 312.855, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8002, monster_id = 25010701, pos = { x = -11.836, y = 0.101, z = -7.785 }, rot = { x = 0.000, y = 52.206, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8003, monster_id = 25010201, pos = { x = -5.786, y = 0.101, z = -8.696 }, rot = { x = 0.000, y = 18.562, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8004, monster_id = 25010201, pos = { x = 5.155, y = 0.101, z = -9.110 }, rot = { x = 0.000, y = 339.539, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8005, monster_id = 25070101, pos = { x = -0.093, y = 0.101, z = -11.301 }, rot = { x = 0.000, y = 358.677, z = 0.000 }, level = 1, affix = { 1006 }, isElite = true },
{ config_id = 8006, monster_id = 25010301, pos = { x = -11.123, y = 0.101, z = -6.941 }, rot = { x = 0.000, y = 64.828, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8007, monster_id = 25010301, pos = { x = 11.954, y = 0.101, z = -6.643 }, rot = { x = 0.000, y = 270.084, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8008, monster_id = 23020101, pos = { x = 1.032, y = 0.101, z = 8.759 }, rot = { x = 0.000, y = 182.789, z = 0.000 }, level = 1, affix = { 1006 }, isElite = true },
{ config_id = 8009, monster_id = 25010501, pos = { x = 4.555, y = 0.101, z = -13.134 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8010, monster_id = 25010501, pos = { x = -5.709, y = 0.101, z = -13.460 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8011, monster_id = 25060101, pos = { x = 12.857, y = 0.101, z = 2.838 }, rot = { x = 0.000, y = 254.800, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8012, monster_id = 25060101, pos = { x = 12.444, y = -0.097, z = -1.861 }, rot = { x = 0.000, y = 280.700, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8013, monster_id = 25010501, pos = { x = -13.728, y = 0.101, z = 1.299 }, rot = { x = 0.000, y = 115.632, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8014, monster_id = 25010501, pos = { x = -12.152, y = 0.101, z = -3.956 }, rot = { x = 0.000, y = 50.168, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8015, monster_id = 25030201, pos = { x = 0.029, y = 0.101, z = 13.758 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8016, monster_id = 25010701, pos = { x = -6.799, y = 0.101, z = 6.378 }, rot = { x = 0.000, y = 126.363, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8017, monster_id = 25010701, pos = { x = 9.903, y = -0.020, z = 10.140 }, rot = { x = 0.000, y = 211.932, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8018, monster_id = 25010301, pos = { x = -10.954, y = -0.020, z = -10.055 }, rot = { x = 0.000, y = 29.419, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8019, monster_id = 25010301, pos = { x = 6.171, y = -0.020, z = -16.156 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 8030, monster_id = 23030102, pos = { x = -0.251, y = -0.020, z = -9.708 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006, 9002 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8032, gadget_id = 70900205, pos = { x = 7.067, y = -1.358, z = 4.409 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008033, name = "ANY_MONSTER_LIVE_8033", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_8033", action = "action_EVENT_ANY_MONSTER_LIVE_8033" },
{ config_id = 1008034, name = "CHALLENGE_SUCCESS_8034", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_8034" },
{ config_id = 1008035, name = "CHALLENGE_FAIL_8035", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_8035" }
}
-- 变量
variables = {
{ config_id = 1, name = "monster_wave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8032 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_8033", "CHALLENGE_SUCCESS_8034", "CHALLENGE_FAIL_8035" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 8032 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 8032 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { },
gadgets = { 8032 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = suite_5,
monsters = { },
gadgets = { 8032 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_8033(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_8033(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为4的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 4, 240510008, 20, 60, 30) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_8034(context, evt)
-- 改变指定group组240510011中, configid为11001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510011, 11001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240510011中, configid为11001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510011, 11001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 8031 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 改变指定group组240510010中, configid为10001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510010, 10001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240510010中, configid为10002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510010, 10002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_8035(context, evt)
-- 改变指定group组240510011中, configid为11001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510011, 11001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240510011, 11001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组240510010中, configid为10001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510010, 10001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240510010中, configid为10002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510010, 10002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240510008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 240510009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70340012, pos = { x = 0.205, y = 0.091, z = -69.673 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9002, gadget_id = 70350008, pos = { x = 0.537, y = 5.737, z = -65.537 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009003, name = "DUNGEON_SETTLE_9003", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_9003", action = "action_EVENT_DUNGEON_SETTLE_9003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9002 },
regions = { },
triggers = { "DUNGEON_SETTLE_9003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_9003(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_9003(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.StatueActive
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.StatueActive) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 240510010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70350009, pos = { x = -0.003, y = -0.030, z = 25.560 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 10002, gadget_id = 70350009, pos = { x = -0.012, y = -0.054, z = -25.557 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001, 10002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,143 @@
-- 基础信息
local base_info = {
group_id = 240510011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70360010, pos = { x = 0.000, y = -0.059, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011002, name = "GADGET_CREATE_11002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_11002", action = "action_EVENT_GADGET_CREATE_11002" },
{ config_id = 1011003, name = "SELECT_OPTION_11003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_11003", action = "action_EVENT_SELECT_OPTION_11003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001 },
regions = { },
triggers = { "GADGET_CREATE_11002", "SELECT_OPTION_11003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_11002(context, evt)
if 11001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_11002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240510011, 11001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_11003(context, evt)
-- 判断是gadgetid 11001 option_id 7
if 11001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_11003(context, evt)
-- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为20,场上怪物最少5只,最多5只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 240510008, {8001,8002,8003,8004,8005,8006,8007,8008,8009,8010,8011,8012,8013,8014,8015,8016,8017,8018,8019,8030}, 20, 5, 5) then
return -1
end
-- 删除指定group 240510011 ;指定config11001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240510011, 11001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组240510011中, configid为11001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510011, 11001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240510010中, configid为10002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510010, 10002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240510010中, configid为10001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240510010, 10001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
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": 0.185504,
"y": 2.983138,
"z": -79.78056
},
"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
}