添加配置表

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 = -646.6, z = -1697.5 },
size = { x = 1526.8, z = 3229.0 },
born_pos = { x = 0.000, y = -5.038, z = 51.006 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
born_point_list = {
{ pos = { x = -0.815, y = -5.038, z = 48.425 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 1.390, y = -5.038, z = 50.868 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -3.008, y = -5.038, z = 50.615 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -0.783, y = -5.038, z = 52.922 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
},
die_y = -20,
city_id = 1,
vision_anchor = { x = -646.6, z = -1697.5 }
}
-- 所有的区块
blocks = { 40514 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -646.6, z = -1697.5 }, max = { x = 880.2, z = 1531.5 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 240514006, refresh_id = 1, pos = { x = 1.124, y = 0.003, z = 8.202 } },
{ id = 240514007, refresh_id = 1, pos = { x = -0.152, y = 0.007, z = -9.749 } },
{ id = 240514008, refresh_id = 1001, pos = { x = 5.379, y = 0.008, z = 1.007 } },
{ id = 240514010, refresh_id = 1, pos = { x = -3.122, y = 4.422, z = -65.670 } }
}
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 240514006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70350009, pos = { x = -0.173, y = 0.024, z = 26.477 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 6002, gadget_id = 70350009, pos = { x = -1.100, y = 0.036, z = -24.152 }, 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 = { 6001, 6002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,144 @@
-- 基础信息
local base_info = {
group_id = 240514007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70360010, pos = { x = 0.001, y = -0.054, z = -0.003 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007002, name = "GADGET_CREATE_7002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_7002", action = "action_EVENT_GADGET_CREATE_7002" },
{ config_id = 1007003, name = "SELECT_OPTION_7003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7003", action = "action_EVENT_SELECT_OPTION_7003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001 },
regions = { },
triggers = { "GADGET_CREATE_7002", "SELECT_OPTION_7003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_7002(context, evt)
if 7001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_7002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240514007, 7001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7003(context, evt)
-- 判断是gadgetid 7001 option_id 7
if 7001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240514008, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 删除指定group 240514007 ;指定config7001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240514007, 7001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组240514007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240514007, 7001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240514006中, configid为6002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240514006, 6002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240514006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240514006, 6001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,223 @@
-- 基础信息
local base_info = {
group_id = 240514008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 20011201, pos = { x = 7.599, y = 0.206, z = -4.720 }, rot = { x = 0.000, y = 346.531, z = 0.000 }, level = 1 },
{ config_id = 8002, monster_id = 20011201, pos = { x = -7.733, y = 0.011, z = -4.971 }, rot = { x = 0.000, y = 21.465, z = 0.000 }, level = 1 },
{ config_id = 8003, monster_id = 20011304, pos = { x = 0.017, y = 0.007, z = -10.249 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006 }, isElite = true },
{ config_id = 8004, monster_id = 21010701, pos = { x = -5.975, y = 0.008, z = -7.482 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1 },
{ config_id = 8005, monster_id = 21010701, pos = { x = 5.203, y = 0.005, z = -7.658 }, rot = { x = 0.000, y = 330.000, z = 0.000 }, level = 1 },
{ config_id = 8006, monster_id = 21010701, pos = { x = -4.998, y = 0.007, z = -9.839 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8007, monster_id = 21010701, pos = { x = 4.620, y = 0.007, z = -9.840 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8008, monster_id = 20011304, pos = { x = -0.163, y = 0.008, z = -5.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007 } },
{ config_id = 8010, monster_id = 20011301, pos = { x = -0.065, y = 0.011, z = -7.689 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isElite = true },
{ config_id = 8019, monster_id = 20011301, pos = { x = -0.073, y = 0.009, z = 8.748 }, rot = { x = 0.000, y = 167.200, z = 0.000 }, level = 1, affix = { 6105 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8022, gadget_id = 70900205, pos = { x = 6.206, y = -1.451, z = 3.130 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008023, name = "ANY_MONSTER_LIVE_8023", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_8023", action = "action_EVENT_ANY_MONSTER_LIVE_8023" },
{ config_id = 1008024, name = "ANY_MONSTER_DIE_8024", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8024", action = "action_EVENT_ANY_MONSTER_DIE_8024" },
{ config_id = 1008025, name = "ANY_MONSTER_DIE_8025", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8025", action = "action_EVENT_ANY_MONSTER_DIE_8025" },
{ config_id = 1008027, name = "CHALLENGE_SUCCESS_8027", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_8027" },
{ config_id = 1008028, name = "CHALLENGE_FAIL_8028", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_8028" }
}
-- 变量
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 = { 8022 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 8001, 8002, 8003, 8004, 8005 },
gadgets = { 8022 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_8023", "ANY_MONSTER_DIE_8024", "CHALLENGE_FAIL_8028" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 8006, 8007, 8010 },
gadgets = { 8022 },
regions = { },
triggers = { "ANY_MONSTER_DIE_8025", "CHALLENGE_FAIL_8028" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_5,
monsters = { 8008, 8019 },
gadgets = { 8022 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_8027", "CHALLENGE_FAIL_8028" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_8023(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_8023(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为191的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 191, 360, 240514008, 10, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8024(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 240514008) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8024(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240514008, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8025(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 240514008) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8025(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240514008, 4)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_8027(context, evt)
-- 改变指定group组240514006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240514006, 6001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240514006中, configid为6002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240514006, 6002, 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_8028(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240514008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 改变指定group组240514007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240514007, 7001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240514007, 7001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组240514006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240514006, 6001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240514006中, configid为6002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240514006, 6002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 240514010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70340012, pos = { x = 0.423, y = 0.145, z = -69.686 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10002, gadget_id = 70350008, pos = { x = 0.295, y = 2.668, z = -65.630 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1010003, name = "DUNGEON_SETTLE_10003", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_10003", action = "action_EVENT_DUNGEON_SETTLE_10003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001, 10002 },
regions = { },
triggers = { "DUNGEON_SETTLE_10003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_10003(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_10003(context, evt)
-- 将configid为 10001 的物件更改为状态 GadgetState.StatueActive
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10001, GadgetState.StatueActive) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_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.01641466,
"y": 2.939369,
"z": -79.93395
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "PORTAL",
"unlocked": true
}
},
"transRadius": 0.0
}