添加配置表

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 = -1024.0, z = -1024.0 },
size = { x = 2048.0, z = 2048.0 },
born_pos = { x = 533.200, y = -8.100, z = 199.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -12,
city_id = 1,
vision_anchor = { x = -1024.0, z = -1024.0 }
}
-- 所有的区块
blocks = { 40033 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -1024.0, z = -1024.0 }, max = { x = 1024.0, z = 1024.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,5 @@
-- 所有的group
groups = {
{ id = 240033001, refresh_id = 1, pos = { x = 533.113, y = -2.166, z = 239.231 } },
{ id = 240033002, refresh_id = 1001, pos = { x = 533.124, y = -2.152, z = 238.793 } }
}

View File

@@ -0,0 +1,154 @@
-- 基础信息
local base_info = {
group_id = 240033001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70350002, pos = { x = 532.884, y = -2.365, z = 220.556 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1002, gadget_id = 70360002, pos = { x = 533.258, y = -1.984, z = 233.208 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70900202, pos = { x = 533.258, y = -0.562, z = 233.208 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001003, name = "SELECT_OPTION_1003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1003", action = "action_EVENT_SELECT_OPTION_1003", trigger_count = 0 },
{ config_id = 1001004, name = "GADGET_CREATE_1004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1004", action = "action_EVENT_GADGET_CREATE_1004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1005 },
regions = { },
triggers = { "SELECT_OPTION_1003", "GADGET_CREATE_1004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_1003(context, evt)
-- 判断是gadgetid 1002 option_id 177
if 1002 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1003(context, evt)
-- 创建编号为3该怪物潮的识别id)的怪物潮创建怪物总数为99场上怪物最少5只最多5只
if 0 ~= ScriptLib.AutoMonsterTide(context, 3, 240033002, {2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020}, 99, 5, 5) then
return -1
end
-- 将configid为 1001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 240033001 指定config1002物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240033001, 1002, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 240033001, monsters = {}, gadgets = {1005} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1004(context, evt)
if 1002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240033001, 1002, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end

View File

@@ -0,0 +1,165 @@
-- 基础信息
local base_info = {
group_id = 240033002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 21010201, pos = { x = 526.010, y = -1.921, z = 245.618 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2002, monster_id = 21010201, pos = { x = 538.639, y = -1.983, z = 234.985 }, rot = { x = 0.000, y = 240.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2003, monster_id = 21010201, pos = { x = 527.037, y = -1.983, z = 234.897 }, rot = { x = 0.000, y = 120.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2004, monster_id = 21010201, pos = { x = 538.729, y = -1.953, z = 245.587 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2005, monster_id = 21010201, pos = { x = 525.977, y = -1.984, z = 242.190 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2006, monster_id = 21010201, pos = { x = 538.589, y = -1.984, z = 237.988 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2007, monster_id = 21010201, pos = { x = 526.619, y = -1.984, z = 238.006 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2008, monster_id = 21010201, pos = { x = 538.772, y = -1.984, z = 242.009 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2009, monster_id = 21010201, pos = { x = 530.294, y = -1.983, z = 245.781 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2010, monster_id = 21010201, pos = { x = 535.410, y = -2.056, z = 245.817 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2011, monster_id = 21010201, pos = { x = 532.987, y = -1.984, z = 247.991 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2012, monster_id = 21010201, pos = { x = 526.133, y = -1.983, z = 245.317 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2013, monster_id = 21010201, pos = { x = 538.605, y = -1.983, z = 245.325 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2014, monster_id = 21010201, pos = { x = 527.270, y = -1.983, z = 235.124 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2015, monster_id = 21010201, pos = { x = 538.228, y = -1.983, z = 235.061 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2016, monster_id = 21010201, pos = { x = 526.504, y = -1.984, z = 242.149 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2017, monster_id = 21010201, pos = { x = 538.587, y = -1.984, z = 238.511 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2018, monster_id = 21010201, pos = { x = 527.056, y = -1.984, z = 238.152 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2019, monster_id = 21010201, pos = { x = 538.497, y = -1.984, z = 241.787 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2020, monster_id = 21010201, pos = { x = 533.403, y = -1.984, z = 248.661 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2024, gadget_id = 70900205, pos = { x = 528.261, y = -2.765, z = 242.811 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002021, name = "ANY_MONSTER_LIVE_2021", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_2021", action = "action_EVENT_ANY_MONSTER_LIVE_2021" },
{ config_id = 1002022, name = "CHALLENGE_FAIL_2022", event = EventType.EVENT_CHALLENGE_FAIL, source = "110116", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2022", trigger_count = 0 },
{ config_id = 1002023, name = "CHALLENGE_SUCCESS_2023", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "110116", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_2023", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2024 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_2021", "CHALLENGE_FAIL_2022", "CHALLENGE_SUCCESS_2023" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 },
gadgets = { 2024 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2024 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_2021(context, evt)
if 2001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_2021(context, evt)
ScriptLib.CreateFatherChallenge(context, 110116, 110116, 90, {success = 2, fail = 1, fail_on_wipe=true})
ScriptLib.AttachChildChallenge(context, 110116, 110117, 110117, {9000,0,0,0},{},{success=1,fail=1})
ScriptLib.AttachChildChallenge(context, 110116, 110118, 110118, {12,20,0,0},{},{success=1,fail=1})
ScriptLib.StartFatherChallenge(context, 110116)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2022(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240033002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240033001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_2023(context, evt)
-- 改变指定group组240033001中 configid为1001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240033001, 1001, 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 = 240033002, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end

View File

@@ -0,0 +1,351 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 520.0581,
"y": -33.00005,
"z": 227.6422
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 200.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 532.9766,
"y": -14.38959,
"z": 166.1704
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 100.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": false
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 486.5374,
"y": -18.97681,
"z": 231.7488
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 50.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": false
},
"4": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 578.1837,
"y": -15.36095,
"z": 239.5657
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 50.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": false
},
"5": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 540.8795,
"y": -5.670673,
"z": 292.8588
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 100.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": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 533.6826,
"y": -1.972863,
"z": 258.0545
},
"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
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 540.8351,
"y": -8.125298,
"z": 197.6215
},
"rot": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"size": {
"x": 16.0,
"y": 4.0,
"z": 50.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
}