135 lines
3.3 KiB
Lua
135 lines
3.3 KiB
Lua
-- 基础信息
|
|
local base_info = {
|
|
group_id = 155006014
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ config_id = 1014012, name = "VARIABLE_CHANGE_14012", event = EventType.EVENT_VARIABLE_CHANGE, source = "activecount", condition = "condition_EVENT_VARIABLE_CHANGE_14012", action = "action_EVENT_VARIABLE_CHANGE_14012", trigger_count = 0 },
|
|
{ config_id = 1014018, name = "GROUP_LOAD_14018", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_14018", action = "action_EVENT_GROUP_LOAD_14018", trigger_count = 0 }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
{ config_id = 1, name = "isFinish", value = 0, no_refresh = true },
|
|
{ config_id = 2, name = "gourp_id", value = 155006014, no_refresh = true },
|
|
{ config_id = 3, name = "activecount", value = 0, no_refresh = true }
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
end_suite = 2,
|
|
rand_suite = false
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 1,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { },
|
|
regions = { },
|
|
triggers = { "VARIABLE_CHANGE_14012" },
|
|
rand_weight = 100
|
|
},
|
|
{
|
|
-- suite_id = 2,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { },
|
|
regions = { },
|
|
triggers = { "GROUP_LOAD_14018" },
|
|
rand_weight = 100
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_VARIABLE_CHANGE_14012(context, evt)
|
|
if evt.param1 == evt.param2 then return false end
|
|
|
|
-- 判断变量"activecount"为5
|
|
if ScriptLib.GetGroupVariableValue(context, "activecount") ~= 5 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_VARIABLE_CHANGE_14012(context, evt)
|
|
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
|
|
if 0 ~= ScriptLib.AddQuestProgress(context, "72248_ChallengeUnlock_B") then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
|
|
return -1
|
|
end
|
|
|
|
-- group调整group进度,只对非randSuite有效
|
|
if 0 ~= ScriptLib.GoToGroupSuite(context, 155006014, 2) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GROUP_LOAD_14018(context, evt)
|
|
-- 判断变量"activecount"为5
|
|
if ScriptLib.GetGroupVariableValue(context, "activecount") ~= 5 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GROUP_LOAD_14018(context, evt)
|
|
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
|
|
if 0 ~= ScriptLib.AddQuestProgress(context, "72248_ChallengeUnlock_B") then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end |