更新配置表

This commit is contained in:
flswld
2023-01-29 13:00:55 +08:00
parent 0ab4fd1d18
commit 5fbe66113e
3108 changed files with 587829 additions and 26766 deletions

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -1000.0, z = -1000.0 },
size = { x = 2000.0, z = 2000.0 },
born_pos = { x = 736.968, y = 92.095, z = 751.200 },
born_rot = { x = 0.000, y = 333.181, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 35883 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -1000.0, z = -1000.0 }, max = { x = 1000.0, z = 1000.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 235883001, refresh_id = 1, pos = { x = 218.303, y = 89.447, z = 789.691 } },
{ id = 235883002, refresh_id = 1002, pos = { x = 219.346, y = 89.446, z = 788.831 } },
{ id = 235883003, refresh_id = 1002, pos = { x = 219.346, y = 89.446, z = 788.831 } },
{ id = 235883004, refresh_id = 1002, pos = { x = 720.656, y = 90.179, z = 781.146 } }
}

View File

@@ -0,0 +1,180 @@
-- 基础信息
local base_info = {
group_id = 235883001
}
-- DEFS_MISCS
local defs =
{
--操作台id
starter_gadget = 1001,
--gallery id
gallery_id = 35004,
--传送点 id
teleportPos_id = 1005,
groups_info =
{
--主控group 怪物数量不用管
[1] = {id = 235883001, monster_num = 0,},
--第一组玩法group
[2] = {id = 235883002, monster_num = 16,},
--第二组玩法group
[3] = {id = 235883003, monster_num = 18,},
--第三组玩法group
[4] = {id = 235883004, monster_num = 12,},
},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[1001] = { config_id = 1001, gadget_id = 70800446, pos = { x = 720.362, y = 90.179, z = 781.317 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "VARIABLE_CHANGE_1002", event = EventType.EVENT_VARIABLE_CHANGE, source = "GALLERY_STATE", condition = "condition_EVENT_VARIABLE_CHANGE_1002", action = "action_EVENT_VARIABLE_CHANGE_1002", trigger_count = 0 },
{ config_id = 1001003, name = "VARIABLE_CHANGE_1003", event = EventType.EVENT_VARIABLE_CHANGE, source = "GALLERY_STATE", condition = "condition_EVENT_VARIABLE_CHANGE_1003", action = "action_EVENT_VARIABLE_CHANGE_1003", trigger_count = 0 },
{ config_id = 1001004, name = "VARIABLE_CHANGE_1004", event = EventType.EVENT_VARIABLE_CHANGE, source = "GALLERY_STATE", condition = "condition_EVENT_VARIABLE_CHANGE_1004", action = "action_EVENT_VARIABLE_CHANGE_1004", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 1005, pos = { x = 736.965, y = 92.044, z = 751.361 }, rot = { x = 0.000, y = 328.965, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 2, name = "GALLERY_STATE", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001 },
regions = { },
triggers = { "VARIABLE_CHANGE_1002", "VARIABLE_CHANGE_1003", "VARIABLE_CHANGE_1004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"GALLERY_STATE"为1
if ScriptLib.GetGroupVariableValue(context, "GALLERY_STATE") ~= 1 then
return false
end
-- 判断变量"GROUP_INDEX"为2
if ScriptLib.GetGroupVariableValue(context, "GROUP_INDEX") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1002(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 235883002, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"GALLERY_STATE"为1
if ScriptLib.GetGroupVariableValue(context, "GALLERY_STATE") ~= 1 then
return false
end
-- 判断变量"GROUP_INDEX"为3
if ScriptLib.GetGroupVariableValue(context, "GROUP_INDEX") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1003(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 235883003, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"GALLERY_STATE"为1
if ScriptLib.GetGroupVariableValue(context, "GALLERY_STATE") ~= 1 then
return false
end
-- 判断变量"GROUP_INDEX"为4
if ScriptLib.GetGroupVariableValue(context, "GROUP_INDEX") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1004(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 235883004, 3)
return 0
end
require "V3_4/Activity_TeamChainChallenge"

View File

@@ -0,0 +1,219 @@
-- 基础信息
local base_info = {
group_id = 235883002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[2002] = { config_id = 2002, monster_id = 22010101, pos = { x = 718.038, y = 90.184, z = 788.549 }, rot = { x = 0.000, y = 156.107, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2003] = { config_id = 2003, monster_id = 20011101, pos = { x = 714.898, y = 90.183, z = 772.688 }, rot = { x = 0.000, y = 27.855, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2004] = { config_id = 2004, monster_id = 20011101, pos = { x = 729.812, y = 90.184, z = 785.815 }, rot = { x = 0.000, y = 249.651, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2005] = { config_id = 2005, monster_id = 20011101, pos = { x = 730.965, y = 90.183, z = 779.130 }, rot = { x = 0.000, y = 275.385, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2006] = { config_id = 2006, monster_id = 20011101, pos = { x = 710.913, y = 90.183, z = 777.491 }, rot = { x = 0.000, y = 65.368, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2007] = { config_id = 2007, monster_id = 21030201, pos = { x = 724.335, y = 90.187, z = 772.931 }, rot = { x = 0.000, y = 337.622, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5263 }, isElite = true },
[2008] = { config_id = 2008, monster_id = 21030301, pos = { x = 718.038, y = 90.184, z = 788.549 }, rot = { x = 0.000, y = 156.107, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5263 }, isElite = true },
[2009] = { config_id = 2009, monster_id = 20011301, pos = { x = 715.179, y = 90.183, z = 773.785 }, rot = { x = 0.000, y = 33.994, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2010] = { config_id = 2010, monster_id = 20010601, pos = { x = 727.327, y = 90.184, z = 787.017 }, rot = { x = 0.000, y = 232.821, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2011] = { config_id = 2011, monster_id = 20011301, pos = { x = 730.740, y = 90.183, z = 781.113 }, rot = { x = 0.000, y = 269.825, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2012] = { config_id = 2012, monster_id = 20010701, pos = { x = 711.549, y = 90.183, z = 781.098 }, rot = { x = 0.000, y = 65.368, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2013] = { config_id = 2013, monster_id = 21020201, pos = { x = 724.335, y = 90.187, z = 772.931 }, rot = { x = 0.000, y = 337.622, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2014] = { config_id = 2014, monster_id = 21020801, pos = { x = 718.038, y = 90.184, z = 788.549 }, rot = { x = 0.000, y = 156.107, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2015] = { config_id = 2015, monster_id = 21010601, pos = { x = 714.261, y = 90.183, z = 772.728 }, rot = { x = 0.000, y = 27.855, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2017] = { config_id = 2017, monster_id = 21010601, pos = { x = 731.785, y = 90.183, z = 781.523 }, rot = { x = 0.000, y = 268.200, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[2019] = { config_id = 2019, monster_id = 21030101, pos = { x = 724.938, y = 90.184, z = 774.024 }, rot = { x = 0.000, y = 333.712, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5263 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[2001] = { config_id = 2001, gadget_id = 70710535, pos = { x = 720.311, y = 84.500, z = 781.183 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[2016] = { config_id = 2016, gadget_id = 70900205, pos = { x = 721.493, y = 89.151, z = 783.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002018, name = "ANY_MONSTER_DIE_2018", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2018", action = "action_EVENT_ANY_MONSTER_DIE_2018", trigger_count = 0 },
{ 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", trigger_count = 0 },
{ config_id = 1002021, name = "ANY_MONSTER_DIE_2021", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2021", action = "action_EVENT_ANY_MONSTER_DIE_2021", trigger_count = 0 }
}
-- 变量
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 = { 2016 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 2002, 2003, 2004, 2005, 2006, 2007 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2018" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 2008, 2009, 2010, 2011, 2012, 2013 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2020" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 2014, 2015, 2017, 2019 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2021" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2018(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为0
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2018(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 235883002, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2020(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为1
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2020(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 235883002, 5)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2021(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为2
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2021(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "GALLERY_STATE", 2, 235883001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,221 @@
-- 基础信息
local base_info = {
group_id = 235883003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[3002] = { config_id = 3002, monster_id = 23030101, pos = { x = 715.751, y = 90.185, z = 789.417 }, rot = { x = 0.000, y = 153.951, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3003] = { config_id = 3003, monster_id = 25070101, pos = { x = 712.134, y = 90.182, z = 781.607 }, rot = { x = 0.000, y = 89.373, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3004] = { config_id = 3004, monster_id = 25010601, pos = { x = 724.889, y = 90.184, z = 788.994 }, rot = { x = 0.000, y = 204.037, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3005] = { config_id = 3005, monster_id = 25070101, pos = { x = 717.011, y = 90.184, z = 775.724 }, rot = { x = 0.000, y = 37.386, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3006] = { config_id = 3006, monster_id = 25010401, pos = { x = 729.045, y = 90.184, z = 781.469 }, rot = { x = 0.000, y = 284.670, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3007] = { config_id = 3007, monster_id = 25030301, pos = { x = 724.333, y = 90.184, z = 775.009 }, rot = { x = 0.000, y = 329.860, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5263 }, isElite = true },
[3011] = { config_id = 3011, monster_id = 23050101, pos = { x = 724.619, y = 90.185, z = 774.483 }, rot = { x = 0.000, y = 322.341, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3012] = { config_id = 3012, monster_id = 25210401, pos = { x = 727.840, y = 90.185, z = 781.415 }, rot = { x = 0.000, y = 265.450, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3013] = { config_id = 3013, monster_id = 25210401, pos = { x = 714.304, y = 90.185, z = 772.174 }, rot = { x = 0.000, y = 37.609, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3014] = { config_id = 3014, monster_id = 25210501, pos = { x = 712.660, y = 90.185, z = 781.369 }, rot = { x = 0.000, y = 98.554, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3015] = { config_id = 3015, monster_id = 25210201, pos = { x = 717.178, y = 90.185, z = 787.336 }, rot = { x = 0.000, y = 149.197, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5263 }, isElite = true },
[3016] = { config_id = 3016, monster_id = 25210501, pos = { x = 724.894, y = 90.185, z = 789.123 }, rot = { x = 0.000, y = 198.187, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3018] = { config_id = 3018, monster_id = 23020101, pos = { x = 715.751, y = 90.185, z = 789.417 }, rot = { x = 0.000, y = 153.951, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3019] = { config_id = 3019, monster_id = 25060101, pos = { x = 712.134, y = 90.182, z = 781.607 }, rot = { x = 0.000, y = 89.373, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3020] = { config_id = 3020, monster_id = 25210301, pos = { x = 724.889, y = 90.184, z = 788.994 }, rot = { x = 0.000, y = 204.037, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3021] = { config_id = 3021, monster_id = 25060101, pos = { x = 717.011, y = 90.184, z = 775.724 }, rot = { x = 0.000, y = 37.386, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3022] = { config_id = 3022, monster_id = 25210301, pos = { x = 729.045, y = 90.184, z = 781.469 }, rot = { x = 0.000, y = 284.670, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[3023] = { config_id = 3023, monster_id = 25010701, pos = { x = 724.333, y = 90.184, z = 775.009 }, rot = { x = 0.000, y = 329.860, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5263 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[3001] = { config_id = 3001, gadget_id = 70710535, pos = { x = 720.311, y = 84.500, z = 781.183 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3008] = { config_id = 3008, gadget_id = 70900205, pos = { x = 721.493, y = 89.151, z = 783.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003009, name = "ANY_MONSTER_DIE_3009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3009", action = "action_EVENT_ANY_MONSTER_DIE_3009", trigger_count = 0 },
{ config_id = 1003010, name = "ANY_MONSTER_DIE_3010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3010", action = "action_EVENT_ANY_MONSTER_DIE_3010", trigger_count = 0 },
{ config_id = 1003017, name = "ANY_MONSTER_DIE_3017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3017", action = "action_EVENT_ANY_MONSTER_DIE_3017", trigger_count = 0 }
}
-- 变量
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 = { 3008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 3002, 3003, 3004, 3005, 3006, 3007 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3009" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 3018, 3019, 3020, 3021, 3022, 3023 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3017" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 3011, 3012, 3013, 3014, 3015, 3016 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3009(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为0
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3009(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 235883003, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为2
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3010(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "GALLERY_STATE", 2, 235883001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3017(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为1
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3017(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 235883003, 5)
return 0
end

View File

@@ -0,0 +1,215 @@
-- 基础信息
local base_info = {
group_id = 235883004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[4002] = { config_id = 4002, monster_id = 26120101, pos = { x = 712.207, y = 90.175, z = 784.979 }, rot = { x = 0.000, y = 139.939, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 }, pose_id = 201 },
[4003] = { config_id = 4003, monster_id = 26120201, pos = { x = 723.090, y = 90.183, z = 790.726 }, rot = { x = 0.000, y = 172.436, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 }, pose_id = 201 },
[4004] = { config_id = 4004, monster_id = 26120301, pos = { x = 715.313, y = 90.188, z = 792.364 }, rot = { x = 0.000, y = 154.584, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5263 }, isElite = true, pose_id = 101 },
[4005] = { config_id = 4005, monster_id = 26120401, pos = { x = 718.626, y = 90.184, z = 785.543 }, rot = { x = 0.000, y = 156.360, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 }, pose_id = 101 },
[4006] = { config_id = 4006, monster_id = 23020101, pos = { x = 725.262, y = 90.193, z = 772.084 }, rot = { x = 0.000, y = 327.273, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[4007] = { config_id = 4007, monster_id = 23020101, pos = { x = 729.474, y = 90.184, z = 781.819 }, rot = { x = 0.000, y = 266.581, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[4008] = { config_id = 4008, monster_id = 23020101, pos = { x = 714.543, y = 90.183, z = 773.228 }, rot = { x = 0.000, y = 26.608, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[4012] = { config_id = 4012, monster_id = 25210201, pos = { x = 716.784, y = 90.193, z = 788.052 }, rot = { x = 0.000, y = 152.424, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5263 }, isElite = true },
[4013] = { config_id = 4013, monster_id = 22010101, pos = { x = 719.045, y = 90.193, z = 784.011 }, rot = { x = 0.000, y = 151.895, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[4014] = { config_id = 4014, monster_id = 22010301, pos = { x = 722.869, y = 90.184, z = 784.553 }, rot = { x = 0.000, y = 211.564, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[4015] = { config_id = 4015, monster_id = 22010401, pos = { x = 716.084, y = 90.183, z = 781.748 }, rot = { x = 0.000, y = 102.400, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5264 } },
[4017] = { config_id = 4017, monster_id = 21010902, pos = { x = 727.267, y = 90.193, z = 770.602 }, rot = { x = 0.000, y = 321.420, z = 0.000 }, level = 1, disableWander = true, affix = { 5258, 5263 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[4001] = { config_id = 4001, gadget_id = 70710535, pos = { x = 720.311, y = 84.500, z = 781.183 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4009] = { config_id = 4009, gadget_id = 70900205, pos = { x = 721.493, y = 89.151, z = 783.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004010, name = "ANY_MONSTER_DIE_4010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4010", action = "action_EVENT_ANY_MONSTER_DIE_4010", trigger_count = 0 },
{ config_id = 1004011, name = "ANY_MONSTER_DIE_4011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4011", action = "action_EVENT_ANY_MONSTER_DIE_4011", trigger_count = 0 },
{ config_id = 1004016, name = "ANY_MONSTER_DIE_4016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4016", action = "action_EVENT_ANY_MONSTER_DIE_4016", trigger_count = 0 }
}
-- 变量
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 = { 4009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 4002, 4003, 4004, 4005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4010" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 4006, 4007, 4008, 4012 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4016" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 4013, 4014, 4015, 4017 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4011" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为0
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4010(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 235883004, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为2
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4011(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "GALLERY_STATE", 2, 235883001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4016(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为1
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4016(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 235883004, 5)
return 0
end

View File

@@ -0,0 +1,150 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 150.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 719.9167,
"y": 78.5,
"z": 782.0892
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 3.0,
"heightType": "Center",
"length": 150.0,
"useHeight": true,
"width": 150.0
},
"stringParam": "",
"tranPos": {
"x": 719.9167,
"y": 90.180954,
"z": 782.089233
},
"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
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 736.9937,
"y": 92.14423,
"z": 751.0617
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 10.0,
"z": 15.0
},
"tranPos": {
"x": 736.993652,
"y": 92.14423,
"z": 751.0617
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 737.1024,
"y": 92.02898,
"z": 752.2327
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 20.0
},
"tranPos": {
"x": 737.1024,
"y": 92.0289841,
"z": 752.2327
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}