Files
hk4e-go/gdconf/game_data_config/lua/scene/7/scene7_group177008091.lua
T
2022-11-30 00:00:20 +08:00

229 lines
6.7 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 基础信息
local base_info = {
group_id = 177008091
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 91003, gadget_id = 70360001, pos = { x = -141.335, y = 210.270, z = 165.111 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 36, area_id = 210 },
{ config_id = 91004, gadget_id = 70500000, pos = { x = -141.643, y = 210.267, z = 164.737 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 36, point_type = 9294, isOneoff = true, area_id = 210 },
{ config_id = 91005, gadget_id = 70500000, pos = { x = -141.715, y = 210.265, z = 204.567 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 36, point_type = 9295, isOneoff = true, area_id = 210 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1091001, name = "GATHER_91001", event = EventType.EVENT_GATHER, source = "", condition = "condition_EVENT_GATHER_91001", action = "action_EVENT_GATHER_91001" },
{ config_id = 1091002, name = "GATHER_91002", event = EventType.EVENT_GATHER, source = "", condition = "condition_EVENT_GATHER_91002", action = "action_EVENT_GATHER_91002" },
{ config_id = 1091006, name = "QUEST_START_91006", event = EventType.EVENT_QUEST_START, source = "7227615", condition = "condition_EVENT_QUEST_START_91006", action = "action_EVENT_QUEST_START_91006", trigger_count = 0 },
{ config_id = 1091007, name = "QUEST_START_91007", event = EventType.EVENT_QUEST_START, source = "7227615", condition = "", action = "action_EVENT_QUEST_START_91007", trigger_count = 0 },
{ config_id = 1091008, name = "GATHER_91008", event = EventType.EVENT_GATHER, source = "", condition = "condition_EVENT_GATHER_91008", action = "action_EVENT_GATHER_91008" },
{ config_id = 1091009, name = "GATHER_91009", event = EventType.EVENT_GATHER, source = "", condition = "condition_EVENT_GATHER_91009", action = "action_EVENT_GATHER_91009" },
{ config_id = 1091010, name = "VARIABLE_CHANGE_91010", event = EventType.EVENT_VARIABLE_CHANGE, source = "count", condition = "condition_EVENT_VARIABLE_CHANGE_91010", action = "action_EVENT_VARIABLE_CHANGE_91010", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = true },
{ config_id = 2, name = "start", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 91003, 91004, 91005 },
regions = { },
triggers = { "GATHER_91001", "GATHER_91002", "QUEST_START_91006", "QUEST_START_91007", "GATHER_91008", "GATHER_91009", "VARIABLE_CHANGE_91010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GATHER_91001(context, evt)
if 91004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GATHER_91001(context, evt)
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GATHER_91002(context, evt)
if 91005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GATHER_91002(context, evt)
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_91006(context, evt)
-- 判断变量"count"为2
if ScriptLib.GetGroupVariableValue(context, "count") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_91006(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7227615") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_91007(context, evt)
-- 将本组内变量名为 "start" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "start", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GATHER_91008(context, evt)
-- 判断变量"start"为1
if ScriptLib.GetGroupVariableValue(context, "start") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GATHER_91008(context, evt)
-- 调用提示id为 500660245 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500660245) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GATHER_91009(context, evt)
-- 判断变量"start"为1
if ScriptLib.GetGroupVariableValue(context, "start") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GATHER_91009(context, evt)
-- 调用提示id为 500660246 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500660246) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_91010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"count"为2
if ScriptLib.GetGroupVariableValue(context, "count") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_91010(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7227615") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end