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

84 lines
1.8 KiB
Go

-- 基础信息
local base_info = {
group_id = 166001523
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 523001, gadget_id = 70290367, pos = { x = 143.379, y = 159.390, z = 712.674 }, rot = { x = 0.000, y = 122.390, z = 0.000 }, level = 36, persistent = true, area_id = 300 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1523002, name = "QUEST_FINISH_523002", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "", action = "action_EVENT_QUEST_FINISH_523002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 523001 },
regions = { },
triggers = { "QUEST_FINISH_523002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_523002(context, evt)
-- 将configid为 523001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 523001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end