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

122 lines
2.8 KiB
Go

-- 基础信息
local base_info = {
group_id = 199004050
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 50001, gadget_id = 70211101, pos = { x = -357.959, y = 160.533, z = -608.386 }, rot = { x = 340.592, y = 129.769, z = 3.400 }, level = 16, drop_tag = "解谜低级群岛", isOneoff = true, persistent = true, explore = { name = "chest", exp = 1 }, area_id = 400 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1050002, name = "VARIABLE_CHANGE_50002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_50002", action = "action_EVENT_VARIABLE_CHANGE_50002", trigger_count = 0 },
{ config_id = 1050003, name = "GROUP_LOAD_50003", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_50003", action = "action_EVENT_GROUP_LOAD_50003", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "VARIABLE_CHANGE_50002", "GROUP_LOAD_50003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 50001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_50002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_50002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 199004050, 2)
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_50003(context, evt)
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_50003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 199004050, 2)
return 0
end