添加配置表

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 = -512.0, z = -512.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = -50.445, y = 13.328, z = 85.754 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = -20,
city_id = 2,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 35823 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,6 @@
-- 所有的group
groups = {
{ id = 235823005, refresh_id = 1, pos = { x = -57.525, y = 13.295, z = 86.399 } },
{ id = 235823006, refresh_id = 1, pos = { x = -56.953, y = 13.310, z = 74.577 } },
{ id = 235823007, refresh_id = 1002, pos = { x = -52.077, y = 13.178, z = 86.206 } }
}
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 235823005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70350005, pos = { x = -73.112, y = 13.130, z = 83.420 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "stage", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,143 @@
-- 基础信息
local base_info = {
group_id = 235823006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70360010, pos = { x = -58.822, y = 13.235, z = 85.776 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006002, name = "GADGET_CREATE_6002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6002", action = "action_EVENT_GADGET_CREATE_6002" },
{ config_id = 1006003, name = "SELECT_OPTION_6003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6003", action = "action_EVENT_SELECT_OPTION_6003" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1006004, name = "SELECT_OPTION_6004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6004", action = "action_EVENT_SELECT_OPTION_6004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001 },
regions = { },
triggers = { "GADGET_CREATE_6002", "SELECT_OPTION_6003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_6002(context, evt)
if 6001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 235823006, 6001, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6003(context, evt)
-- 判断是gadgetid 6001 option_id 177
if 6001 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
-- 判断变量"stage"为0
if ScriptLib.GetGroupVariableValueByGroup(context, "stage", 235823005) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6003(context, evt)
-- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为14,场上怪物最少5只,最多5只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 235823007, {7001,7002,7003,7004,7005,7006,7007,7008,7009,7010,7011,7012,7013,7014}, 14, 5, 5) then
return -1
end
-- 删除指定group 235823006 ;指定config6001;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 235823006, 6001, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组235823006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 235823006, 6001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,197 @@
-- 基础信息
local base_info = {
group_id = 235823007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7001, monster_id = 25020201, pos = { x = -63.045, y = 13.365, z = 83.668 }, rot = { x = 0.000, y = 84.057, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7002, monster_id = 25020201, pos = { x = -63.152, y = 13.359, z = 88.116 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7003, monster_id = 25010201, pos = { x = -62.097, y = 13.358, z = 81.123 }, rot = { x = 0.000, y = 74.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7004, monster_id = 25010201, pos = { x = -62.039, y = 13.359, z = 90.651 }, rot = { x = 0.000, y = 104.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7005, monster_id = 25030201, pos = { x = -63.420, y = 13.359, z = 86.124 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7006, monster_id = 25010301, pos = { x = -61.029, y = 13.356, z = 77.684 }, rot = { x = 0.000, y = 44.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7007, monster_id = 25070101, pos = { x = -64.964, y = 13.363, z = 81.206 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7008, monster_id = 25010401, pos = { x = -66.253, y = 13.392, z = 86.300 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7009, monster_id = 25030201, pos = { x = -64.855, y = 13.364, z = 90.438 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7010, monster_id = 25010501, pos = { x = -60.306, y = 13.356, z = 93.365 }, rot = { x = 0.000, y = 134.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7011, monster_id = 25010601, pos = { x = -64.629, y = 13.381, z = 86.247 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7012, monster_id = 25010201, pos = { x = -63.314, y = 13.414, z = 79.375 }, rot = { x = 0.000, y = 59.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7013, monster_id = 25010201, pos = { x = -63.970, y = 13.361, z = 92.722 }, rot = { x = 0.000, y = 119.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7014, monster_id = 25010201, pos = { x = -67.889, y = 13.407, z = 86.321 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7015, monster_id = 23010501, pos = { x = -61.779, y = 13.414, z = 79.725 }, rot = { x = 0.000, y = 59.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7016, monster_id = 23010501, pos = { x = -62.772, y = 13.361, z = 92.722 }, rot = { x = 0.000, y = 119.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 7017, monster_id = 23050101, pos = { x = -66.380, y = 13.407, z = 86.321 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7018, gadget_id = 70900205, pos = { x = -52.296, y = 11.169, z = 83.306 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007019, name = "ANY_MONSTER_LIVE_7019", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_7019", action = "action_EVENT_ANY_MONSTER_LIVE_7019" },
{ config_id = 1007020, name = "CHALLENGE_SUCCESS_7020", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_7020" },
{ config_id = 1007021, name = "CHALLENGE_FAIL_7021", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_7021" },
{ config_id = 1007022, name = "MONSTER_TIDE_DIE_7022", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "1", condition = "condition_EVENT_MONSTER_TIDE_DIE_7022", action = "action_EVENT_MONSTER_TIDE_DIE_7022" },
{ config_id = 1007023, name = "DUNGEON_ALL_AVATAR_DIE_7023", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_7023" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7018 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_7019", "CHALLENGE_SUCCESS_7020", "CHALLENGE_FAIL_7021", "MONSTER_TIDE_DIE_7022", "DUNGEON_ALL_AVATAR_DIE_7023" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 7001, 7002, 7003, 7004, 7005, 7006, 7007, 7008, 7009, 7010, 7011, 7012, 7013, 7014 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 7015, 7016, 7017 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_7019(context, evt)
if 7001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_7019(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为256的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 256, 300, 235823007, 17, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_7020(context, evt)
-- 将本组内变量名为 "stage" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage", 1, 235823005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_7021(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 235823007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 235823006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 235823007, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_TIDE_DIE_7022(context, evt)
if 14 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_TIDE_DIE_7022(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 235823007, 3)
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_7023(context, evt)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
require "V2_4/PotionStage"
@@ -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": -78.39548,
"y": 13.23311,
"z": 83.61767
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": -79.50897,
"y": 13.2331095,
"z": 82.59361
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}