添加配置表

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 = 0.0, z = 0.0 },
size = { x = 800.0, z = 800.0 },
born_pos = { x = 471.663, y = 75.320, z = 504.111 },
born_rot = { x = 0.000, y = 88.106, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 20148 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 0.0, z = 0.0 }, max = { x = 800.0, z = 800.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,8 @@
-- 所有的group
groups = {
{ id = 220148001, refresh_id = 1, pos = { x = 493.654, y = 74.917, z = 505.860 } },
{ id = 220148002, refresh_id = 1, pos = { x = 513.078, y = 75.422, z = 504.199 } },
{ id = 220148003, refresh_id = 1002, pos = { x = 483.380, y = 74.747, z = 506.842 } },
{ id = 220148004, refresh_id = 1002, pos = { x = 498.427, y = 75.593, z = 526.528 } },
{ id = 220148005, pos = { x = 477.411, y = 75.386, z = 506.222 } }
}
@@ -0,0 +1,9 @@
dummy_points = {
["Player_Q7303505"] = { pos = { x = 469.980, y = 75.852, z = 501.678 }, rot = { x = 0.000, y = 73.655, z = 0.000 } },
["Q7303505"] = { pos = { x = 473.710, y = 75.711, z = 498.946 }, rot = { x = 0.000, y = 91.250, z = 0.000 } },
["Q7303505_N20646"] = { pos = { x = 520.189, y = 81.952, z = 501.241 }, rot = { x = 1.106, y = 201.534, z = 1.115 } },
["Q7303506_guide"] = { pos = { x = 494.236, y = 74.984, z = 506.825 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q7303507_guide"] = { pos = { x = 520.577, y = 81.444, z = 502.019 }, rot = { x = 0.000, y = 302.389, z = 0.000 } },
["Q7303507_N20740"] = { pos = { x = 472.857, y = 75.724, z = 505.255 }, rot = { x = 0.000, y = 74.878, z = 0.000 } },
["Q7303509"] = { pos = { x = 473.496, y = 75.748, z = 508.520 }, rot = { x = 0.000, y = 91.682, z = 0.000 } }
}
@@ -0,0 +1,113 @@
-- 基础信息
local base_info = {
group_id = 220148001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70290569, pos = { x = 493.932, y = 75.290, z = 507.428 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70290570, pos = { x = 493.932, y = 75.290, z = 507.428 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001003, name = "QUEST_START_1003", event = EventType.EVENT_QUEST_START, source = "7303514", condition = "", action = "action_EVENT_QUEST_START_1003", trigger_count = 0 },
{ config_id = 1001004, name = "TIME_AXIS_PASS_1004", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1004", action = "action_EVENT_TIME_AXIS_PASS_1004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001 },
regions = { },
triggers = { "QUEST_START_1003", "TIME_AXIS_PASS_1004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_START_1003(context, evt)
-- 创建标识为"timestart7302514",时间节点为{1}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "timestart7302514", {1}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1004(context, evt)
if "timestart7302514" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220148001, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,82 @@
-- 基础信息
local base_info = {
group_id = 220148002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70310148, pos = { x = 513.448, y = 75.484, z = 505.108 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70900201, pos = { x = 513.449, y = 76.985, z = 505.108 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2001, 2002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,300 @@
-- 基础信息
local base_info = {
group_id = 220148003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[3002] = { config_id = 3002, monster_id = 22050201, pos = { x = 492.448, y = 74.937, z = 502.884 }, rot = { x = 0.000, y = 299.101, z = 0.000 }, level = 1, affix = { 6116, 6117 }, pose_id = 101 },
[3016] = { config_id = 3016, monster_id = 22050101, pos = { x = 494.733, y = 74.738, z = 511.905 }, rot = { x = 0.000, y = 272.067, z = 0.000 }, level = 1, affix = { 6116, 6117 }, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[3001] = { config_id = 3001, gadget_id = 70360001, pos = { x = 510.790, y = 75.253, z = 509.987 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3005] = { config_id = 3005, gadget_id = 70310193, pos = { x = 493.932, y = 74.937, z = 507.428 }, rot = { x = 0.000, y = 202.472, z = 0.000 }, level = 1, persistent = true },
[3006] = { config_id = 3006, gadget_id = 70310195, pos = { x = 500.396, y = 75.789, z = 527.898 }, rot = { x = 0.000, y = 187.278, z = 0.000 }, level = 1 },
[3007] = { config_id = 3007, gadget_id = 70310195, pos = { x = 513.893, y = 75.762, z = 500.697 }, rot = { x = 0.000, y = 290.466, z = 0.000 }, level = 1 },
[3008] = { config_id = 3008, gadget_id = 70310195, pos = { x = 505.534, y = 75.625, z = 487.704 }, rot = { x = 0.000, y = 331.504, z = 0.000 }, level = 1 },
[3017] = { config_id = 3017, gadget_id = 70310198, pos = { x = 475.410, y = 75.634, z = 518.219 }, rot = { x = 0.000, y = 226.990, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003009, name = "GADGET_STATE_CHANGE_3009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3009", action = "action_EVENT_GADGET_STATE_CHANGE_3009", trigger_count = 0 },
{ config_id = 1003010, name = "GADGET_STATE_CHANGE_3010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3010", action = "action_EVENT_GADGET_STATE_CHANGE_3010", trigger_count = 0 },
{ config_id = 1003018, name = "GADGET_STATE_CHANGE_3018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3018", action = "action_EVENT_GADGET_STATE_CHANGE_3018", trigger_count = 0 },
{ config_id = 1003019, name = "VARIABLE_CHANGE_3019", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3019", action = "action_EVENT_VARIABLE_CHANGE_3019" },
-- 核心消失刷宝箱
{ config_id = 1003027, name = "LUA_NOTIFY_3027", event = EventType.EVENT_LUA_NOTIFY, source = "DF_CoreDie", condition = "", action = "action_EVENT_LUA_NOTIFY_3027", trigger_count = 0 },
{ config_id = 1003031, name = "ANY_MONSTER_DIE_3031", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3031", action = "action_EVENT_ANY_MONSTER_DIE_3031" },
{ config_id = 1003032, name = "ANY_MONSTER_DIE_3032", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3032", action = "action_EVENT_ANY_MONSTER_DIE_3032" },
{ config_id = 1003033, name = "VARIABLE_CHANGE_3033", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3033", action = "action_EVENT_VARIABLE_CHANGE_3033" }
}
-- 变量
variables = {
{ config_id = 1, name = "BossNum", value = 0, no_refresh = false },
{ config_id = 2, name = "PointNum", value = 3, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3005, 3006, 3007, 3008, 3017 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_3009", "GADGET_STATE_CHANGE_3010", "GADGET_STATE_CHANGE_3018", "VARIABLE_CHANGE_3019", "LUA_NOTIFY_3027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3002, 3016 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3031", "ANY_MONSTER_DIE_3032", "VARIABLE_CHANGE_3033" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 3017 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3009(context, evt)
if 3006 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3009(context, evt)
-- 针对当前group内变量名为 "PointNum" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "PointNum", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3010(context, evt)
if 3007 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3010(context, evt)
-- 针对当前group内变量名为 "PointNum" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "PointNum", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3018(context, evt)
if 3008 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3018(context, evt)
-- 针对当前group内变量名为 "PointNum" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "PointNum", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3019(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"PointNum"为0
if ScriptLib.GetGroupVariableValue(context, "PointNum") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3019(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220148004, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 将configid为 3005 的物件更改为状态 GadgetState.GatherDrop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3005, GadgetState.GatherDrop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220148003, 2)
return 0
end
-- 触发操作
function action_EVENT_LUA_NOTIFY_3027(context, evt)
-- 将configid为 3005 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3031(context, evt)
if 3002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3031(context, evt)
-- 针对当前group内变量名为 "BossNum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "BossNum", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3032(context, evt)
if 3016 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3032(context, evt)
-- 针对当前group内变量名为 "BossNum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "BossNum", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3033(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"BossNum"为2
if ScriptLib.GetGroupVariableValue(context, "BossNum") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3033(context, evt)
-- 触发镜头注目,注目位置为坐标{x=493.9315, y=74.93681, z=507.4277},持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=493.9315, y=74.93681, z=507.4277}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 将configid为 3005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,77 @@
-- 基础信息
local base_info = {
group_id = 220148004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 22040201, pos = { x = 501.097, y = 75.585, z = 525.874 }, rot = { x = 0.000, y = 346.331, z = 0.000 }, level = 1, disableWander = true, affix = { 6117 }, pose_id = 101 },
{ config_id = 4002, monster_id = 22040201, pos = { x = 497.848, y = 75.576, z = 526.095 }, rot = { x = 0.000, y = 34.316, z = 0.000 }, level = 1, disableWander = true, affix = { 6117 }, pose_id = 101 },
{ config_id = 4003, monster_id = 22040101, pos = { x = 511.671, y = 75.615, z = 502.928 }, rot = { x = 0.000, y = 123.899, z = 0.000 }, level = 1, disableWander = true, affix = { 6117 }, pose_id = 101 },
{ config_id = 4004, monster_id = 22040101, pos = { x = 511.297, y = 75.735, z = 499.463 }, rot = { x = 0.000, y = 66.049, z = 0.000 }, level = 1, disableWander = true, affix = { 6117 }, pose_id = 101 },
{ config_id = 4005, monster_id = 22040201, pos = { x = 506.773, y = 75.599, z = 490.477 }, rot = { x = 0.000, y = 201.938, z = 0.000 }, level = 1, disableWander = true, affix = { 6117 }, pose_id = 101 },
{ config_id = 4006, monster_id = 22040101, pos = { x = 503.687, y = 75.593, z = 489.388 }, rot = { x = 0.000, y = 145.484, z = 0.000 }, level = 1, disableWander = true, affix = { 6117 }, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4001, 4002, 4003, 4004, 4005, 4006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220148005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 5001, shape = RegionShape.SPHERE, radius = 5, pos = { x = 527.459, y = 81.448, z = 491.053 } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 5001 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}