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

123 lines
3.0 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 = 166001249
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 249001, gadget_id = 70360364, pos = { x = 884.647, y = 734.915, z = 247.782 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 300 },
{ config_id = 249004, gadget_id = 70360364, pos = { x = 772.536, y = 713.543, z = 166.186 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 300 },
{ config_id = 249006, gadget_id = 70360364, pos = { x = 918.721, y = 750.375, z = 323.376 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 300 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1249007, name = "GADGET_CREATE_249007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_249007", action = "action_EVENT_GADGET_CREATE_249007" },
{ config_id = 1249008, name = "TIME_AXIS_PASS_249008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_249008", action = "action_EVENT_TIME_AXIS_PASS_249008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 249001, 249004, 249006 },
regions = { },
triggers = { "GADGET_CREATE_249007", "TIME_AXIS_PASS_249008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_249007(context, evt)
if 249001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_249007(context, evt)
-- 创建标识为"time",时间节点为{2}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "time", {2}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_249008(context, evt)
if "time" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_249008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 166001249, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end