更新配置表

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 = { 35881 }
-- 所有的区块范围坐标
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 = 235881001, refresh_id = 1, pos = { x = 218.303, y = 89.447, z = 789.691 } },
{ id = 235881002, refresh_id = 1002, pos = { x = 219.346, y = 89.446, z = 788.831 } },
{ id = 235881003, refresh_id = 1001, pos = { x = 219.346, y = 89.446, z = 788.831 } },
{ id = 235881004, refresh_id = 1002, pos = { x = 720.656, y = 90.179, z = 781.146 } }
}

View File

@@ -0,0 +1,341 @@
-- 基础信息
local base_info = {
group_id = 235881001
}
-- DEFS_MISCS
local defs =
{
--操作台id
starter_gadget = 1001,
--gallery id
gallery_id = 35002,
--传送点 id
teleportPos_id = 1005,
groups_info =
{
--主控group 怪物数量不用管
[1] = {id = 235881001, monster_num = 0,},
--第一组玩法group
[2] = {id = 235881002, monster_num = 4,},
--第二组玩法group
[3] = {id = 235881003, monster_num = 10,},
--第三组玩法group
[4] = {id = 235881004, monster_num = 8,},
},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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 },
{ config_id = 1001006, name = "TIME_AXIS_PASS_1006", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1006", action = "action_EVENT_TIME_AXIS_PASS_1006", trigger_count = 0 },
{ config_id = 1001007, name = "TIME_AXIS_PASS_1007", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1007", action = "action_EVENT_TIME_AXIS_PASS_1007", trigger_count = 0 },
{ config_id = 1001008, name = "TIME_AXIS_PASS_1008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1008", action = "action_EVENT_TIME_AXIS_PASS_1008", trigger_count = 0 },
{ config_id = 1001009, name = "TIME_AXIS_PASS_1009", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1009", action = "action_EVENT_TIME_AXIS_PASS_1009", trigger_count = 0 },
{ config_id = 1001010, name = "TIME_AXIS_PASS_1010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_1010", action = "action_EVENT_TIME_AXIS_PASS_1010", trigger_count = 0 },
{ config_id = 1001011, name = "VARIABLE_CHANGE_1011", event = EventType.EVENT_VARIABLE_CHANGE, source = "GALLERY_STATE", condition = "condition_EVENT_VARIABLE_CHANGE_1011", action = "action_EVENT_VARIABLE_CHANGE_1011", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 1005, pos = { x = 736.949, y = 92.050, z = 751.469 }, rot = { x = 0.000, y = 326.424, 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", "TIME_AXIS_PASS_1006", "TIME_AXIS_PASS_1007", "TIME_AXIS_PASS_1008", "TIME_AXIS_PASS_1009", "TIME_AXIS_PASS_1010", "VARIABLE_CHANGE_1011" },
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, 235881002, 3)
-- 创建标识为"timer_init"时间节点为{1}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "timer_init", {1}, false)
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, 235881003, 3)
-- 创建标识为"timer_init"时间节点为{1}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "timer_init", {1}, false)
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, 235881004, 3)
-- 创建标识为"timer_init"时间节点为{1}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "timer_init", {1}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1006(context, evt)
if "timer_init" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1006(context, evt)
ScriptLib.EndTimeAxis(context, "timer_init")
local uid = ScriptLib.GetSceneUidList(context)
ScriptLib.AddTeamEntityGlobalFloatValue(context, uid, "_IN_HIGH_TIDE_V3.4", 1)
ScriptLib.InitTimeAxis(context, "timer2_reminder", {8.8}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1007(context, evt)
if "timer2_reminder" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1007(context, evt)
ScriptLib.EndTimeAxis(context, "timer2_reminder")
ScriptLib.ShowReminder(context, 337200101)
ScriptLib.InitTimeAxis(context, "timer2_gv", {0.8}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1008(context, evt)
if "timer2_gv" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1008(context, evt)
ScriptLib.EndTimeAxis(context, "timer2_gv")
local uid = ScriptLib.GetSceneUidList(context)
ScriptLib.AddTeamEntityGlobalFloatValue(context, uid, "_IN_HIGH_TIDE_V3.4", -1)
ScriptLib.InitTimeAxis(context, "timer1_reminder", {8.8}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1009(context, evt)
if "timer1_reminder" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1009(context, evt)
ScriptLib.EndTimeAxis(context, "timer1_reminder")
ScriptLib.ShowReminder(context, 337200102)
ScriptLib.InitTimeAxis(context, "timer1_gv", {0.8}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1010(context, evt)
if "timer1_gv" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1010(context, evt)
ScriptLib.EndTimeAxis(context, "timer1_gv")
local uid = ScriptLib.GetSceneUidList(context)
ScriptLib.AddTeamEntityGlobalFloatValue(context, uid, "_IN_HIGH_TIDE_V3.4", 1)
ScriptLib.InitTimeAxis(context, "timer2_reminder", {8.8}, false)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"GALLERY_STATE"为2
if ScriptLib.GetGroupVariableValue(context, "GALLERY_STATE") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1011(context, evt)
-- 停止标识为"timer_init"的时间轴
ScriptLib.EndTimeAxis(context, "timer_init")
-- 停止标识为"timer2_reminder"的时间轴
ScriptLib.EndTimeAxis(context, "timer2_reminder")
-- 停止标识为"timer2_gv"的时间轴
ScriptLib.EndTimeAxis(context, "timer2_gv")
-- 停止标识为"timer1_reminder"的时间轴
ScriptLib.EndTimeAxis(context, "timer1_reminder")
-- 停止标识为"timer1_gv"的时间轴
ScriptLib.EndTimeAxis(context, "timer1_gv")
return 0
end
require "V3_4/Activity_TeamChainChallenge"

View File

@@ -0,0 +1,207 @@
-- 基础信息
local base_info = {
group_id = 235881002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[2002] = { config_id = 2002, monster_id = 21020501, 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 = { 5256, 5262 } },
[2003] = { config_id = 2003, monster_id = 21020401, pos = { x = 712.229, y = 90.183, z = 777.520 }, rot = { x = 0.000, y = 63.190, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 } },
[2004] = { config_id = 2004, monster_id = 24010101, pos = { x = 723.003, y = 90.184, z = 774.024 }, rot = { x = 0.000, y = 321.275, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 100 },
[2009] = { config_id = 2009, monster_id = 24010101, pos = { x = 729.378, y = 90.184, z = 784.812 }, rot = { x = 0.000, y = 246.664, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 100 }
}
-- 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 },
[2005] = { config_id = 2005, gadget_id = 70900205, pos = { x = 721.858, y = 88.861, z = 782.615 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002006, name = "ANY_MONSTER_DIE_2006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2006", action = "action_EVENT_ANY_MONSTER_DIE_2006", trigger_count = 0 },
{ config_id = 1002007, name = "ANY_MONSTER_DIE_2007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2007", action = "action_EVENT_ANY_MONSTER_DIE_2007", trigger_count = 0 },
{ config_id = 1002008, name = "ANY_MONSTER_DIE_2008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2008", action = "action_EVENT_ANY_MONSTER_DIE_2008", 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 = { 2005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 2002 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2006" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 2003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2007" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 2004, 2009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2006(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_2006(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, 235881002, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2007(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_2007(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, 235881002, 5)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2008(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_2008(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, 235881001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,213 @@
-- 基础信息
local base_info = {
group_id = 235881003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[3002] = { config_id = 3002, monster_id = 26120201, 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 = { 5256, 5262 }, pose_id = 201 },
[3003] = { config_id = 3003, monster_id = 26120301, pos = { x = 713.659, y = 90.181, z = 784.779 }, rot = { x = 0.000, y = 137.962, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 101 },
[3004] = { config_id = 3004, monster_id = 26120301, pos = { x = 721.199, y = 90.183, z = 788.901 }, rot = { x = 0.000, y = 172.286, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 101 },
[3005] = { config_id = 3005, monster_id = 26120301, pos = { x = 717.527, y = 90.184, z = 776.095 }, rot = { x = 0.000, y = 37.386, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 101 },
[3006] = { config_id = 3006, monster_id = 26120101, pos = { x = 719.415, y = 90.184, z = 772.130 }, rot = { x = 0.000, y = 27.638, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 201 },
[3007] = { config_id = 3007, monster_id = 26120101, pos = { x = 712.196, y = 90.183, z = 776.137 }, rot = { x = 0.000, y = 44.931, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 201 },
[3008] = { config_id = 3008, monster_id = 26120201, pos = { x = 728.532, y = 90.184, z = 785.051 }, rot = { x = 0.000, y = 259.520, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 201 },
[3009] = { config_id = 3009, monster_id = 26120301, pos = { x = 731.369, y = 90.183, z = 779.887 }, rot = { x = 0.000, y = 281.304, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 101 },
[3010] = { config_id = 3010, monster_id = 26120101, pos = { x = 727.443, y = 90.185, z = 775.544 }, rot = { x = 0.000, y = 285.927, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 201 },
[3011] = { config_id = 3011, monster_id = 26120401, pos = { x = 724.634, y = 90.184, z = 780.252 }, rot = { x = 0.000, y = 273.622, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 101 }
}
-- 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 },
[3012] = { config_id = 3012, gadget_id = 70900205, pos = { x = 721.858, y = 88.861, z = 782.615 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003013, name = "ANY_MONSTER_DIE_3013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3013", action = "action_EVENT_ANY_MONSTER_DIE_3013", trigger_count = 0 },
{ config_id = 1003014, name = "ANY_MONSTER_DIE_3014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3014", action = "action_EVENT_ANY_MONSTER_DIE_3014", trigger_count = 0 },
{ config_id = 1003015, name = "ANY_MONSTER_DIE_3015", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3015", action = "action_EVENT_ANY_MONSTER_DIE_3015", 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 = { 3012 },
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 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3013" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 3005, 3006, 3007 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3014" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 3008, 3009, 3010, 3011 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3013(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_3013(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, 235881003, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3014(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_3014(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, 235881003, 5)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3015(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_3015(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, 235881001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,172 @@
-- 基础信息
local base_info = {
group_id = 235881004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[4002] = { config_id = 4002, monster_id = 25310301, pos = { x = 713.809, y = 90.184, z = 786.518 }, rot = { x = 0.000, y = 152.894, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 } },
[4003] = { config_id = 4003, monster_id = 25310301, pos = { x = 721.003, y = 90.183, z = 789.715 }, rot = { x = 0.000, y = 164.161, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 } },
[4004] = { config_id = 4004, monster_id = 23010201, pos = { x = 715.708, y = 90.187, z = 791.772 }, rot = { x = 0.000, y = 158.567, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 } },
[4005] = { config_id = 4005, monster_id = 23010401, pos = { x = 718.142, y = 90.184, z = 786.605 }, rot = { x = 0.000, y = 149.109, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 } },
[4006] = { config_id = 4006, monster_id = 24040101, pos = { x = 725.131, y = 90.188, z = 773.327 }, rot = { x = 0.000, y = 327.273, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 1 },
[4007] = { config_id = 4007, monster_id = 24040301, 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 = { 5256, 5262 }, pose_id = 1 },
[4008] = { config_id = 4008, monster_id = 24040301, pos = { x = 714.325, y = 90.183, z = 774.437 }, rot = { x = 0.000, y = 26.608, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 1 },
[4009] = { config_id = 4009, monster_id = 24040101, pos = { x = 718.287, y = 90.184, z = 785.855 }, rot = { x = 0.000, y = 153.392, z = 0.000 }, level = 1, disableWander = true, affix = { 5256, 5262 }, pose_id = 1 }
}
-- 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 },
[4010] = { config_id = 4010, gadget_id = 70900205, pos = { x = 721.858, y = 88.861, z = 782.615 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ 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 = 1004012, name = "ANY_MONSTER_DIE_4012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4012", action = "action_EVENT_ANY_MONSTER_DIE_4012", 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 = { 4010 },
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_4011" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 4006, 4007, 4008, 4009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4011(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_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
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 235881004, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4012(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_4012(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, 235881001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
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
}