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

84 lines
1.7 KiB
Go

-- 基础信息
local base_info = {
group_id = 220128005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70800114, pos = { x = 23.435, y = -218.240, z = -22.455 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "QUEST_FINISH_5002", event = EventType.EVENT_QUEST_FINISH, source = "102908", condition = "", action = "action_EVENT_QUEST_FINISH_5002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { "QUEST_FINISH_5002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_5002(context, evt)
-- 将configid为 5001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end