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

117 lines
3.0 KiB
Lua

-- 基础信息
local base_info = {
group_id = 220121014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14001, gadget_id = 70350005, pos = { x = -44.449, y = -584.057, z = -190.121 }, rot = { x = 330.430, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 14002, gadget_id = 70710622, pos = { x = -43.950, y = -571.973, z = -194.690 }, rot = { x = 314.693, y = 234.750, z = 337.241 }, level = 1, persistent = true },
{ config_id = 14003, gadget_id = 70710622, pos = { x = -42.902, y = -586.572, z = -189.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 对话结束开门和移动石头
{ config_id = 1014004, name = "QUEST_FINISH_14004", event = EventType.EVENT_QUEST_FINISH, source = "1101332", condition = "", action = "action_EVENT_QUEST_FINISH_14004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 14001, 14002 },
regions = { },
triggers = { "QUEST_FINISH_14004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 14003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_14004(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220121014, EntityType.GADGET, 14002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220121014, EntityType.GADGET, 14001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220121014, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220121005, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220121010, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end