添加配置表

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 = -285.6, z = -285.6 },
size = { x = 571.3, z = 571.3 },
born_pos = { x = -0.371, y = -4.659, z = 42.951 },
born_rot = { x = 0.000, y = 183.505, z = 0.000 },
die_y = -345.3351,
city_id = 1,
vision_anchor = { x = -285.6, z = -285.6 }
}
-- 所有的区块
blocks = { 30200 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -285.6, z = -285.6 }, max = { x = 285.6, z = 285.6 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 230200001, refresh_id = 1, pos = { x = 1.917, y = 0.432, z = 7.556 } },
{ id = 230200002, refresh_id = 1001, pos = { x = 6.172, y = 0.432, z = 0.360 } },
{ id = 230200003, refresh_id = 1, pos = { x = -4.623, y = 0.350, z = 0.074 } },
{ id = 230200004, refresh_id = 1, pos = { x = -1.983, y = 0.296, z = -0.908 } }
}

View File

@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 230200001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70350077, pos = { x = 0.080, y = 0.000, z = 24.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1002, gadget_id = 70350077, pos = { x = 0.040, y = 0.000, z = -23.740 }, 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 = { 1001, 1002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,254 @@
-- 基础信息
local base_info = {
group_id = 230200002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 20011001, pos = { x = 9.920, y = 0.350, z = -8.987 }, rot = { x = 0.000, y = 327.634, z = 0.000 }, level = 1 },
{ config_id = 2002, monster_id = 20011001, pos = { x = -8.719, y = 0.350, z = -8.643 }, rot = { x = 0.000, y = 27.701, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 2003, monster_id = 20011001, pos = { x = 0.314, y = 0.350, z = -10.256 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, monster_id = 21010201, pos = { x = -12.965, y = 0.350, z = -5.529 }, rot = { x = 0.000, y = 33.839, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 2005, monster_id = 21010201, pos = { x = 13.062, y = 0.350, z = -4.520 }, rot = { x = 0.000, y = 306.568, z = 0.000 }, level = 1 },
{ config_id = 2006, monster_id = 21011001, pos = { x = -15.099, y = 0.350, z = -6.031 }, rot = { x = 0.000, y = 51.797, z = 0.000 }, level = 1, pose_id = 32 },
{ config_id = 2007, monster_id = 21010201, pos = { x = 9.462, y = 0.350, z = -7.622 }, rot = { x = 0.000, y = 342.747, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 2008, monster_id = 21010201, pos = { x = -0.005, y = 0.350, z = -10.231 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 2009, monster_id = 21010201, pos = { x = -8.501, y = 0.350, z = -9.296 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2010, monster_id = 20011101, pos = { x = 8.467, y = 0.350, z = -12.189 }, rot = { x = 0.000, y = 335.646, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 2011, monster_id = 20011101, pos = { x = -6.849, y = 0.350, z = -9.789 }, rot = { x = 0.000, y = 29.502, z = 0.000 }, level = 1 },
{ config_id = 2012, monster_id = 21010301, pos = { x = 5.157, y = 0.350, z = -5.220 }, rot = { x = 0.000, y = 344.360, z = 0.000 }, level = 1 },
{ config_id = 2013, monster_id = 21010201, pos = { x = -0.788, y = 0.350, z = -6.797 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 2014, monster_id = 21010301, pos = { x = -8.057, y = 0.350, z = -3.994 }, rot = { x = 0.000, y = 21.059, z = 0.000 }, level = 1 },
{ config_id = 2017, monster_id = 21030103, pos = { x = 0.176, y = 0.350, z = -14.165 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2018, monster_id = 21010201, pos = { x = 9.683, y = 0.350, z = -3.913 }, rot = { x = 0.000, y = 322.031, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 2021, monster_id = 21011001, pos = { x = 13.137, y = 0.350, z = -9.464 }, rot = { x = 0.000, y = 338.694, z = 0.000 }, level = 1, pose_id = 32 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2015, gadget_id = 70900205, pos = { x = 6.999, y = -1.027, z = 2.483 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2016, gadget_id = 70350035, pos = { x = -0.100, y = 0.200, z = 0.600 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002019, name = "ANY_MONSTER_DIE_2019", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2019", action = "action_EVENT_ANY_MONSTER_DIE_2019" },
{ config_id = 1002020, name = "ANY_MONSTER_DIE_2020", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2020", action = "action_EVENT_ANY_MONSTER_DIE_2020" },
{ config_id = 1002022, name = "ANY_MONSTER_DIE_2022", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2022", action = "action_EVENT_ANY_MONSTER_DIE_2022" },
{ config_id = 1002023, name = "ANY_MONSTER_LIVE_2023", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_2023", action = "action_EVENT_ANY_MONSTER_LIVE_2023" },
{ config_id = 1002024, name = "CHALLENGE_FAIL_2024", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2024" },
{ config_id = 1002025, name = "CHALLENGE_SUCCESS_2025", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_2025" },
{ config_id = 1002026, name = "DUNGEON_SETTLE_2026", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "", action = "action_EVENT_DUNGEON_SETTLE_2026" }
}
-- 变量
variables = {
{ config_id = 1, name = "Key", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2015, 2016 },
regions = { },
triggers = { "CHALLENGE_FAIL_2024", "CHALLENGE_SUCCESS_2025" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 2001, 2002, 2003, 2004, 2005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2019", "ANY_MONSTER_LIVE_2023", "CHALLENGE_FAIL_2024", "CHALLENGE_SUCCESS_2025", "DUNGEON_SETTLE_2026" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 2012, 2013, 2014, 2017, 2018 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2022", "CHALLENGE_FAIL_2024", "CHALLENGE_SUCCESS_2025", "DUNGEON_SETTLE_2026" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 2006, 2007, 2008, 2009, 2021 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2020", "CHALLENGE_FAIL_2024", "CHALLENGE_SUCCESS_2025", "DUNGEON_SETTLE_2026" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = suite_5,
monsters = { 2010, 2011 },
gadgets = { },
regions = { },
triggers = { "DUNGEON_SETTLE_2026" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2019(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2019(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 230200002, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2020(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2020(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 230200002, 5)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2022(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2022(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 230200002, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_2023(context, evt)
if 2001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_2023(context, evt)
-- 创建编号为1该挑战的识别id),挑战内容为1010的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 1010, 230200002, 17, 2016, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2024(context, evt)
-- 改变指定group组230200003中 configid为3001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 230200003, 3001, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 230200002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_2025(context, evt)
-- 改变指定group组230200003中 configid为3001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 230200003, 3001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_2026(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2016 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,159 @@
-- 基础信息
local base_info = {
group_id = 230200003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70350023, pos = { x = -0.053, y = 0.180, z = 0.632 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003002, name = "GADGET_CREATE_3002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3002", action = "action_EVENT_GADGET_CREATE_3002" },
{ config_id = 1003003, name = "SELECT_OPTION_3003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3003", action = "action_EVENT_SELECT_OPTION_3003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001 },
regions = { },
triggers = { "GADGET_CREATE_3002", "SELECT_OPTION_3003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_3002(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 230200003, 3001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3003(context, evt)
-- 判断是gadgetid 3001 option_id 7
if 3001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 230200002, 2)
-- 爬塔是否允许使用技能( is_allow_use_skill=0或1,表示不允许或允许使用主动技能)
if 0 ~= ScriptLib.SetIsAllowUseSkill(context, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : tower_allow_use_skill")
return -1
end
-- 删除指定group 230200003 指定config3001物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 230200003, 3001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组230200003中 configid为3001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 230200003, 3001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组230200001中 configid为1002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 230200001, 1002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组230200001中 configid为1001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 230200001, 1001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组230200004中 configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 230200004, 4001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组230200004中 configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 230200004, 4002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end

View File

@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 230200004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70350053, pos = { x = 0.007, y = 0.340, z = 0.042 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70350054, pos = { x = 0.055, y = 0.325, z = 0.064 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004003, name = "DUNGEON_SETTLE_4003", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "", action = "action_EVENT_DUNGEON_SETTLE_4003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002 },
regions = { },
triggers = { "DUNGEON_SETTLE_4003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_4003(context, evt)
-- 改变指定group组230200004中 configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 230200004, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组230200004中 configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 230200004, 4002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end

View File

@@ -0,0 +1,99 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -0.9124126,
"y": -5.037683,
"z": 107.7861
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 200.0,
"heightType": "Center",
"length": 150.0,
"useHeight": true,
"width": 300.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 12.45298,
"y": 0.1298075,
"z": -33.50737
},
"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
}