添加配置表

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 = -256.0, z = -256.0 },
size = { x = 512.0, z = 512.0 },
born_pos = { x = 0.445, y = 0.000, z = 0.074 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -20,
city_id = 3,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 51006 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -256.0, z = -256.0 }, max = { x = 256.0, z = 256.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,8 @@
-- 所有的group
groups = {
{ id = 251006001, refresh_id = 1002, pos = { x = 33.934, y = 1.707, z = 27.130 } },
{ id = 251006002, refresh_id = 1001, pos = { x = 24.036, y = 6.547, z = 53.672 } },
{ id = 251006003, refresh_id = 1, pos = { x = 37.971, y = 6.767, z = 73.425 } },
{ id = 251006004, refresh_id = 1001, pos = { x = 9.938, y = 8.367, z = 78.391 } },
{ id = 251006005, refresh_id = 1, pos = { x = -14.287, y = 0.500, z = -3.083 } }
}

View File

@@ -0,0 +1,133 @@
-- 基础信息
local base_info = {
group_id = 251006001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 21010201, pos = { x = 27.728, y = 1.707, z = 22.432 }, rot = { x = 0.000, y = 280.115, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 1002, monster_id = 21010201, pos = { x = 29.535, y = 1.707, z = 30.762 }, rot = { x = 0.000, y = 285.722, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 1003, monster_id = 21010401, pos = { x = 37.137, y = 1.707, z = 20.644 }, rot = { x = 0.000, y = 294.839, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 1004, monster_id = 21010401, pos = { x = 39.771, y = 1.707, z = 29.633 }, rot = { x = 0.000, y = 266.458, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 1006, monster_id = 21020201, pos = { x = 38.800, y = 1.707, z = 24.991 }, rot = { x = 0.000, y = 274.356, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1007, gadget_id = 70211001, pos = { x = 41.085, y = 1.707, z = 28.259 }, rot = { x = 0.000, y = 267.716, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001005, name = "ANY_MONSTER_DIE_1005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1005", action = "action_EVENT_ANY_MONSTER_DIE_1005" },
{ config_id = 1001008, name = "ANY_MONSTER_DIE_1008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1008", action = "action_EVENT_ANY_MONSTER_DIE_1008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1001, 1002, 1003, 1004 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_1005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 1006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_1008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 1007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1005(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 251006001) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 251006001, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1008(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 251006001) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1008(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 251006001, 3)
return 0
end

View File

@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 251006002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 21010501, pos = { x = 30.273, y = 6.065, z = 54.581 }, rot = { x = 0.000, y = 89.083, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 2002, monster_id = 21010501, pos = { x = 18.293, y = 8.287, z = 43.182 }, rot = { x = 0.000, y = 53.342, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2003, gadget_id = 70211001, pos = { x = 12.583, y = 0.500, z = 57.294 }, rot = { x = 0.000, y = 180.272, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2001, 2002 },
gadgets = { 2003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 251006003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70900007, pos = { x = 53.456, y = 6.988, z = 81.103 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70900007, pos = { x = 35.257, y = 6.970, z = 69.249 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70900008, pos = { x = 35.479, y = 6.981, z = 81.152 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70900008, pos = { x = 52.551, y = 6.923, z = 69.998 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3010, gadget_id = 70211001, pos = { x = 33.234, y = 6.767, z = 75.324 }, rot = { x = 0.000, y = 92.411, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003005, name = "GADGET_STATE_CHANGE_3005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3005", action = "action_EVENT_GADGET_STATE_CHANGE_3005" },
{ config_id = 1003006, name = "GADGET_STATE_CHANGE_3006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3006", action = "action_EVENT_GADGET_STATE_CHANGE_3006" },
{ config_id = 1003007, name = "GADGET_STATE_CHANGE_3007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3007", action = "action_EVENT_GADGET_STATE_CHANGE_3007" },
{ config_id = 1003008, name = "GADGET_STATE_CHANGE_3008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3008", action = "action_EVENT_GADGET_STATE_CHANGE_3008" },
{ config_id = 1003009, name = "VARIABLE_CHANGE_3009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3009", action = "action_EVENT_VARIABLE_CHANGE_3009" }
}
-- 变量
variables = {
{ config_id = 1, name = "Count", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_3005", "GADGET_STATE_CHANGE_3006", "GADGET_STATE_CHANGE_3007", "GADGET_STATE_CHANGE_3008", "VARIABLE_CHANGE_3009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3010 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3005(context, evt)
if 3001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3005(context, evt)
-- 针对当前group内变量名为 "Count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3006(context, evt)
if 3002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3006(context, evt)
-- 针对当前group内变量名为 "Count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3007(context, evt)
if 3003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3007(context, evt)
-- 针对当前group内变量名为 "Count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3008(context, evt)
if 3004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3008(context, evt)
-- 针对当前group内变量名为 "Count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Count"为4
if ScriptLib.GetGroupVariableValue(context, "Count") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3009(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 251006003, 2)
return 0
end

View File

@@ -0,0 +1,190 @@
-- 基础信息
local base_info = {
group_id = 251006004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4002, monster_id = 20010901, pos = { x = 7.935, y = 8.367, z = 78.318 }, rot = { x = 0.000, y = 88.403, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 4003, monster_id = 20010801, pos = { x = 11.295, y = 8.367, z = 78.460 }, rot = { x = 0.000, y = 87.228, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 4004, monster_id = 20010801, pos = { x = 10.909, y = 8.367, z = 73.704 }, rot = { x = 0.000, y = 49.009, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 4005, monster_id = 20010801, pos = { x = 11.331, y = 8.367, z = 85.070 }, rot = { x = 0.000, y = 118.926, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70350082, pos = { x = 17.134, y = 8.367, z = 78.506 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4006, gadget_id = 70360001, pos = { x = 17.508, y = 9.341, z = 78.415 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4010, gadget_id = 70211011, pos = { x = 0.715, y = 8.367, z = 78.285 }, rot = { x = 0.000, y = 88.025, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004007, name = "GADGET_CREATE_4007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4007", action = "action_EVENT_GADGET_CREATE_4007", trigger_count = 0 },
{ config_id = 1004008, name = "SELECT_OPTION_4008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4008", action = "action_EVENT_SELECT_OPTION_4008" },
{ config_id = 1004009, name = "CHALLENGE_SUCCESS_4009", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_4009", trigger_count = 0 },
{ config_id = 1004011, name = "CHALLENGE_FAIL_4011", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4011", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4006 },
regions = { },
triggers = { "GADGET_CREATE_4007", "SELECT_OPTION_4008", "CHALLENGE_SUCCESS_4009", "CHALLENGE_FAIL_4011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4002, 4003, 4004, 4005 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_4007(context, evt)
if 4006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 251006004, 4006, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4008(context, evt)
-- 判断是gadgetid 4006 option_id 177
if 4006 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 251006004, 2)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建编号为180该挑战的识别id),挑战内容为180的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, 60, 251006004, 4, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_4009(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为4010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_4011(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为4006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 251006004, 2)
return 0
end

View File

@@ -0,0 +1,102 @@
-- 基础信息
local base_info = {
group_id = 251006005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70290519, pos = { x = -11.915, y = 0.500, z = -3.562 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5002, gadget_id = 70290520, pos = { x = -13.964, y = 0.500, z = 6.173 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5004, gadget_id = 70290520, pos = { x = -13.011, y = 0.500, z = 0.500 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5005, gadget_id = 70290520, pos = { x = -13.686, y = 0.500, z = 16.289 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005003, name = "GADGET_STATE_CHANGE_5003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5003", action = "action_EVENT_GADGET_STATE_CHANGE_5003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_5003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5002, 5004, 5005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5003(context, evt)
if 5001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 251006005, 2)
return 0
end

View File

@@ -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": 15.73815,
"y": 8.367137,
"z": 89.88289
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 14.8176889,
"y": 8.367137,
"z": 89.88289
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}