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

144 lines
4.5 KiB
Go

-- 基础信息
local base_info = {
group_id = 250016014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 49, monster_id = 21010401, pos = { x = -120.982, y = -7.840, z = -299.652 }, rot = { x = 0.000, y = 327.174, z = 0.000 }, level = 5 },
{ config_id = 50, monster_id = 21010401, pos = { x = -137.738, y = -7.840, z = -284.715 }, rot = { x = 0.000, y = 122.437, z = 0.000 }, level = 5 },
{ config_id = 51, monster_id = 21011001, pos = { x = -139.398, y = -7.840, z = -300.423 }, rot = { x = 0.000, y = 45.862, z = 0.000 }, level = 5 },
{ config_id = 52, monster_id = 21011001, pos = { x = -121.152, y = -7.840, z = -284.803 }, rot = { x = 0.000, y = 225.047, z = 0.000 }, level = 5 },
{ config_id = 53, monster_id = 20011201, pos = { x = -126.501, y = -14.340, z = -295.012 }, rot = { x = 0.000, y = 303.716, z = 0.000 }, level = 1 },
{ config_id = 54, monster_id = 20011201, pos = { x = -136.196, y = -14.340, z = -294.977 }, rot = { x = 0.000, y = 52.300, z = 0.000 }, level = 5 },
{ config_id = 55, monster_id = 20011201, pos = { x = -131.457, y = -14.340, z = -287.285 }, rot = { x = 0.000, y = 181.633, z = 0.000 }, level = 5 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 40, gadget_id = 70220018, pos = { x = -121.020, y = -14.340, z = -300.238 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 41, gadget_id = 70220018, pos = { x = -121.192, y = -14.340, z = -284.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42, gadget_id = 70220018, pos = { x = -139.699, y = -14.340, z = -300.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43, gadget_id = 70220018, pos = { x = -138.012, y = -14.340, z = -284.495 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000038, name = "ANY_MONSTER_DIE_38", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_38", action = "action_EVENT_ANY_MONSTER_DIE_38", trigger_count = 0 },
{ config_id = 1000105, name = "ANY_MONSTER_DIE_105", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_105", action = "action_EVENT_ANY_MONSTER_DIE_105", trigger_count = 0 }
}
-- 变量
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 = suite_2,
monsters = { 49, 50, 51, 52, 53, 54, 55 },
gadgets = { 40, 41, 42, 43 },
regions = { },
triggers = { "ANY_MONSTER_DIE_105" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_38" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_38(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016014) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_38(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016030, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016014, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_105(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016014) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_105(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016030, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016014, 2)
return 0
end