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

93 lines
1.9 KiB
Go

-- 基础信息
local base_info = {
group_id = 133008538
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 538001, gadget_id = 70710223, pos = { x = 1379.075, y = 270.021, z = -644.746 }, rot = { x = 0.000, y = 53.853, z = 0.000 }, level = 30, area_id = 10 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1538002, name = "QUEST_FINISH_538002", event = EventType.EVENT_QUEST_FINISH, source = "4121014", condition = "", action = "action_EVENT_QUEST_FINISH_538002" }
}
-- 变量
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 = { 538001 },
regions = { },
triggers = { "QUEST_FINISH_538002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_538002(context, evt)
-- 将configid为 538001 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 538001, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end