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

85 lines
1.9 KiB
Go

-- 基础信息
local base_info = {
group_id = 250009005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18, gadget_id = 70211001, pos = { x = 147.201, y = 8.950, z = -88.604 }, rot = { x = 0.000, y = 133.129, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 16, shape = RegionShape.CUBIC, size = { x = 10.000, y = 3.000, z = 10.000 }, pos = { x = 147.330, y = 5.606, z = -80.851 } }
}
-- 触发器
triggers = {
{ config_id = 1000016, name = "ENTER_REGION_16", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_16", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 16 },
triggers = { "ENTER_REGION_16" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_16(context, evt)
-- 创建id为18的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 18 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end