添加配置表

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 = -285.6, z = -285.6 },
size = { x = 571.3, z = 571.3 },
born_pos = { x = -0.355, y = -4.656, z = 64.840 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
die_y = -20,
city_id = 2,
vision_anchor = { x = -285.6, z = -285.6 }
}
-- 所有的区块
blocks = { 40615 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -285.6, z = -285.6 }, max = { x = 285.6, z = 285.6 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 240615004, refresh_id = 1, pos = { x = 1.441, y = 0.219, z = 8.426 } },
{ id = 240615005, refresh_id = 1, pos = { x = 0.165, y = 0.219, z = -9.525 } },
{ id = 240615006, refresh_id = 1002, pos = { x = 5.696, y = 0.219, z = 1.231 } },
{ id = 240615007, refresh_id = 1, pos = { x = -3.078, y = 4.422, z = -64.461 } }
}
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 240615004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70350009, pos = { x = 0.144, y = 0.118, z = 26.701 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4002, gadget_id = 70350009, pos = { x = -0.783, y = 0.489, z = -23.928 }, 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 = { 4001, 4002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,144 @@
-- 基础信息
local base_info = {
group_id = 240615005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70360010, pos = { x = 0.317, y = 0.465, z = 0.221 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "GADGET_CREATE_5002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5002", action = "action_EVENT_GADGET_CREATE_5002" },
{ config_id = 1005003, name = "SELECT_OPTION_5003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5003", action = "action_EVENT_SELECT_OPTION_5003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { "GADGET_CREATE_5002", "SELECT_OPTION_5003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_5002(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240615005, 5001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5003(context, evt)
-- 判断是gadgetid 5001 option_id 7
if 5001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240615006, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 删除指定group 240615005 ;指定config5001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240615005, 5001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组240615005中, configid为5001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240615005, 5001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240615004中, configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240615004, 4002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240615004中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240615004, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,720 @@
-- 基础信息
local base_info = {
group_id = 240615006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 21010401, pos = { x = 14.292, y = 0.219, z = 0.224 }, rot = { x = 0.000, y = 270.500, z = 0.000 }, level = 1 },
{ config_id = 6002, monster_id = 21010401, pos = { x = -15.899, y = 0.219, z = 0.146 }, rot = { x = 0.000, y = 91.700, z = 0.000 }, level = 1 },
{ config_id = 6003, monster_id = 21010701, pos = { x = -6.331, y = 0.219, z = -9.752 }, rot = { x = 0.000, y = 18.562, z = 0.000 }, level = 1 },
{ config_id = 6004, monster_id = 21011201, pos = { x = 5.166, y = 0.219, z = 7.835 }, rot = { x = 0.000, y = 192.700, z = 0.000 }, level = 1 },
{ config_id = 6005, monster_id = 21010701, pos = { x = 5.718, y = 0.219, z = -10.085 }, rot = { x = 0.000, y = 343.731, z = 0.000 }, level = 1 },
{ config_id = 6006, monster_id = 21011201, pos = { x = 7.834, y = 0.219, z = 3.262 }, rot = { x = 0.000, y = 315.283, z = 0.000 }, level = 1 },
{ config_id = 6007, monster_id = 21010401, pos = { x = 9.867, y = 0.219, z = -6.225 }, rot = { x = 0.000, y = 322.134, z = 0.000 }, level = 1 },
{ config_id = 6008, monster_id = 21030401, pos = { x = -0.232, y = 0.219, z = -9.850 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6009, monster_id = 21011201, pos = { x = -9.110, y = 0.219, z = -4.868 }, rot = { x = 0.000, y = 50.168, z = 0.000 }, level = 1 },
{ config_id = 6010, monster_id = 21010401, pos = { x = -10.244, y = 0.219, z = 5.353 }, rot = { x = 0.000, y = 76.240, z = 0.000 }, level = 1 },
{ config_id = 6011, monster_id = 21020301, pos = { x = -0.443, y = 0.219, z = -8.604 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6012, monster_id = 21010401, pos = { x = -9.861, y = 0.219, z = -0.222 }, rot = { x = 0.000, y = 93.670, z = 0.000 }, level = 1 },
{ config_id = 6013, monster_id = 21010401, pos = { x = 9.284, y = 0.219, z = -0.506 }, rot = { x = 0.000, y = 267.550, z = 0.000 }, level = 1 },
{ config_id = 6014, monster_id = 21011201, pos = { x = -5.310, y = 0.219, z = 7.467 }, rot = { x = 0.000, y = 164.250, z = 0.000 }, level = 1 },
{ config_id = 6015, monster_id = 21011201, pos = { x = 4.717, y = 0.219, z = 7.272 }, rot = { x = 0.000, y = 189.330, z = 0.000 }, level = 1 },
{ config_id = 6029, monster_id = 21011201, pos = { x = -5.535, y = 0.219, z = 8.080 }, rot = { x = 0.000, y = 167.400, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6016, gadget_id = 70900205, pos = { x = 6.523, y = -1.240, z = 3.354 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006017, name = "ANY_MONSTER_DIE_6017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6017", action = "action_EVENT_ANY_MONSTER_DIE_6017", trigger_count = 0 },
{ config_id = 1006018, name = "ANY_MONSTER_DIE_6018", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6018", action = "action_EVENT_ANY_MONSTER_DIE_6018" },
{ config_id = 1006019, name = "VARIABLE_CHANGE_6019", event = EventType.EVENT_VARIABLE_CHANGE, source = "suite2_create_count", condition = "condition_EVENT_VARIABLE_CHANGE_6019", action = "action_EVENT_VARIABLE_CHANGE_6019" },
{ config_id = 1006020, name = "ANY_MONSTER_DIE_6020", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6020", action = "action_EVENT_ANY_MONSTER_DIE_6020", trigger_count = 0 },
{ config_id = 1006021, name = "ANY_MONSTER_DIE_6021", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6021", action = "action_EVENT_ANY_MONSTER_DIE_6021", trigger_count = 0 },
{ config_id = 1006022, name = "ANY_MONSTER_LIVE_6022", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_6022", action = "action_EVENT_ANY_MONSTER_LIVE_6022" },
{ config_id = 1006023, name = "ANY_MONSTER_LIVE_6023", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_6023", action = "action_EVENT_ANY_MONSTER_LIVE_6023", trigger_count = 0 },
{ config_id = 1006024, name = "ANY_MONSTER_LIVE_6024", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_6024", action = "action_EVENT_ANY_MONSTER_LIVE_6024", trigger_count = 0 },
{ config_id = 1006025, name = "ANY_MONSTER_DIE_6025", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6025", action = "action_EVENT_ANY_MONSTER_DIE_6025", trigger_count = 0 },
{ config_id = 1006026, name = "CHALLENGE_SUCCESS_6026", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_6026" },
{ config_id = 1006027, name = "CHALLENGE_FAIL_6027", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_6027" },
{ config_id = 1006028, name = "ANY_MONSTER_LIVE_6028", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_6028", action = "action_EVENT_ANY_MONSTER_LIVE_6028", trigger_count = 0 },
{ config_id = 1006030, name = "ANY_MONSTER_DIE_6030", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6030", action = "action_EVENT_ANY_MONSTER_DIE_6030", trigger_count = 0 },
{ config_id = 1006031, name = "ANY_MONSTER_DIE_6031", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6031", action = "action_EVENT_ANY_MONSTER_DIE_6031", trigger_count = 0 },
{ config_id = 1006032, name = "ANY_MONSTER_DIE_6032", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6032", action = "action_EVENT_ANY_MONSTER_DIE_6032" },
{ config_id = 1006033, name = "VARIABLE_CHANGE_6033", event = EventType.EVENT_VARIABLE_CHANGE, source = "suite3_create_count", condition = "condition_EVENT_VARIABLE_CHANGE_6033", action = "action_EVENT_VARIABLE_CHANGE_6033" },
{ config_id = 1006034, name = "ANY_MONSTER_DIE_6034", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6034", action = "action_EVENT_ANY_MONSTER_DIE_6034", trigger_count = 0 },
{ config_id = 1006035, name = "VARIABLE_CHANGE_6035", event = EventType.EVENT_VARIABLE_CHANGE, source = "suite4_create_count", condition = "condition_EVENT_VARIABLE_CHANGE_6035", action = "action_EVENT_VARIABLE_CHANGE_6035" },
{ config_id = 1006036, name = "ANY_MONSTER_DIE_6036", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6036", action = "action_EVENT_ANY_MONSTER_DIE_6036", trigger_count = 0 },
{ config_id = 1006037, name = "ANY_MONSTER_DIE_6037", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6037", action = "action_EVENT_ANY_MONSTER_DIE_6037", trigger_count = 0 },
{ config_id = 1006038, name = "ANY_MONSTER_DIE_6038", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6038", action = "action_EVENT_ANY_MONSTER_DIE_6038", trigger_count = 0 },
{ config_id = 1006039, name = "ANY_MONSTER_DIE_6039", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6039", action = "action_EVENT_ANY_MONSTER_DIE_6039", trigger_count = 0 },
{ config_id = 1006040, name = "ANY_MONSTER_DIE_6040", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6040", action = "action_EVENT_ANY_MONSTER_DIE_6040", trigger_count = 0 },
{ config_id = 1006041, name = "ANY_MONSTER_DIE_6041", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6041", action = "action_EVENT_ANY_MONSTER_DIE_6041", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "suite2_create_count", value = 0, no_refresh = false },
{ config_id = 2, name = "suite2_status", value = 0, no_refresh = false },
{ config_id = 3, name = "suite3_create_count", value = 0, no_refresh = false },
{ config_id = 4, name = "suite3_status", value = 0, no_refresh = false },
{ config_id = 5, name = "suite4_create_count", value = 0, no_refresh = false },
{ config_id = 6, name = "suite4_status", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6016 },
regions = { },
triggers = { "CHALLENGE_FAIL_6027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 6001, 6002, 6003, 6004, 6005, 6029 },
gadgets = { 6016 },
regions = { },
triggers = { "ANY_MONSTER_DIE_6018", "VARIABLE_CHANGE_6019", "ANY_MONSTER_DIE_6021", "ANY_MONSTER_LIVE_6022", "CHALLENGE_SUCCESS_6026", "CHALLENGE_FAIL_6027", "ANY_MONSTER_LIVE_6028", "ANY_MONSTER_DIE_6030", "ANY_MONSTER_DIE_6040", "ANY_MONSTER_DIE_6041" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 6006, 6007, 6008, 6009, 6010 },
gadgets = { 6016 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_6023", "CHALLENGE_SUCCESS_6026", "CHALLENGE_FAIL_6027", "ANY_MONSTER_DIE_6031", "ANY_MONSTER_DIE_6032", "VARIABLE_CHANGE_6033", "ANY_MONSTER_DIE_6034", "ANY_MONSTER_DIE_6036", "ANY_MONSTER_DIE_6037" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 6011, 6012, 6013, 6014, 6015 },
gadgets = { 6016 },
regions = { },
triggers = { "ANY_MONSTER_DIE_6017", "ANY_MONSTER_DIE_6020", "ANY_MONSTER_LIVE_6024", "ANY_MONSTER_DIE_6025", "CHALLENGE_SUCCESS_6026", "CHALLENGE_FAIL_6027", "VARIABLE_CHANGE_6035", "ANY_MONSTER_DIE_6038", "ANY_MONSTER_DIE_6039" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6017(context, evt)
if 6013 ~= evt.param1 then
return false
end
-- 判断变量"suite4_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite4_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6017(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6013, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6018(context, evt)
-- 判断变量"suite2_status"为1
if ScriptLib.GetGroupVariableValue(context, "suite2_status") ~= 1 then
return false
end
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 240615006) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6018(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240615006, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_6019(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"suite2_create_count"为10
if ScriptLib.GetGroupVariableValue(context, "suite2_create_count") ~= 10 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_6019(context, evt)
-- 针对当前group内变量名为 "suite2_status" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "suite2_status", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6020(context, evt)
if 6012 ~= evt.param1 then
return false
end
-- 判断变量"suite4_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite4_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6020(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6012, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6021(context, evt)
if 6003 ~= evt.param1 then
return false
end
-- 判断变量"suite2_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite2_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6021(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6003, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_6022(context, evt)
if 6003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_6022(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为5的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 5, 30, 240615006, 28, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_6023(context, evt)
-- 判断变量"suite3_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite3_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_6023(context, evt)
-- 针对当前group内变量名为 "suite3_create_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "suite3_create_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_6024(context, evt)
-- 判断变量"suite4_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite4_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_6024(context, evt)
-- 针对当前group内变量名为 "suite4_create_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "suite4_create_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6025(context, evt)
if 6010 ~= evt.param1 then
return false
end
-- 判断变量"suite3_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite3_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6025(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6010, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_6026(context, evt)
-- 改变指定group组240615004中, configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240615004, 4002, 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 = 240615006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_6027(context, evt)
-- 改变指定group组240615005中, configid为5001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240615005, 5001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240615005, 5001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组240615004中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240615004, 4001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240615004中, configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240615004, 4002, 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 = 240615006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_6028(context, evt)
-- 判断变量"suite2_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite2_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_6028(context, evt)
-- 针对当前group内变量名为 "suite2_create_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "suite2_create_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6030(context, evt)
if 6004 ~= evt.param1 then
return false
end
-- 判断变量"suite2_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite2_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6030(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6004, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6031(context, evt)
if 6010 ~= evt.param1 then
return false
end
-- 判断变量"suite3_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite3_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6031(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6010, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6032(context, evt)
-- 判断变量"suite3_status"为1
if ScriptLib.GetGroupVariableValue(context, "suite3_status") ~= 1 then
return false
end
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 240615006) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6032(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240615006, 4)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_6033(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"suite3_create_count"为9
if ScriptLib.GetGroupVariableValue(context, "suite3_create_count") ~= 9 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_6033(context, evt)
-- 针对当前group内变量名为 "suite3_status" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "suite3_status", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6034(context, evt)
if 6009 ~= evt.param1 then
return false
end
-- 判断变量"suite3_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite3_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6034(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6009, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_6035(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"suite4_create_count"为9
if ScriptLib.GetGroupVariableValue(context, "suite4_create_count") ~= 9 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_6035(context, evt)
-- 针对当前group内变量名为 "suite4_status" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "suite4_status", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6036(context, evt)
if 6007 ~= evt.param1 then
return false
end
-- 判断变量"suite3_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite3_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6036(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6007, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6037(context, evt)
if 6006 ~= evt.param1 then
return false
end
-- 判断变量"suite3_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite3_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6037(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6006, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6038(context, evt)
if 6014 ~= evt.param1 then
return false
end
-- 判断变量"suite4_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite4_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6038(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6014, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6039(context, evt)
if 6015 ~= evt.param1 then
return false
end
-- 判断变量"suite4_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite4_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6039(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6015, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6040(context, evt)
if 6029 ~= evt.param1 then
return false
end
-- 判断变量"suite2_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite2_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6040(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6029, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6041(context, evt)
if 6005 ~= evt.param1 then
return false
end
-- 判断变量"suite2_status"为0
if ScriptLib.GetGroupVariableValue(context, "suite2_status") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6041(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 240615007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70340012, pos = { x = 0.270, y = 0.130, z = -69.680 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7002, gadget_id = 70350008, pos = { x = 0.339, y = 5.776, z = -65.689 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007003, name = "DUNGEON_SETTLE_7003", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_7003", action = "action_EVENT_DUNGEON_SETTLE_7003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002 },
regions = { },
triggers = { "DUNGEON_SETTLE_7003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_7003(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_7003(context, evt)
-- 将configid为 7001 的物件更改为状态 GadgetState.StatueActive
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7001, 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.251231,
"y": 2.941352,
"z": -79.85672
},
"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
}
},
"transRadius": 0.0
}