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

94 lines
2.1 KiB
Go

-- 基础信息
local base_info = {
group_id = 133003414
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1397, monster_id = 20011401, pos = { x = 2522.728, y = 221.313, z = -1441.713 }, rot = { x = 0.000, y = 62.462, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3909, gadget_id = 70500000, pos = { x = 2521.571, y = 221.537, z = -1442.635 }, rot = { x = 0.572, y = 33.139, z = 345.709 }, level = 2, point_type = 1001, area_id = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000499, name = "ANY_GADGET_DIE_499", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_499", action = "action_EVENT_ANY_GADGET_DIE_499" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3909 },
regions = { },
triggers = { "ANY_GADGET_DIE_499" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_499(context, evt)
if 3909 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_499(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 1397, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end