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

145 lines
5.9 KiB
Go

-- 基础信息
local base_info = {
group_id = 250016020
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 20001, monster_id = 20011201, pos = { x = -211.804, y = -8.325, z = -296.709 }, rot = { x = 0.000, y = 298.972, z = 0.000 }, level = 5 },
{ config_id = 20002, monster_id = 20011201, pos = { x = -208.954, y = -8.325, z = -293.777 }, rot = { x = 0.000, y = 251.439, z = 0.000 }, level = 5 },
{ config_id = 20003, monster_id = 20011201, pos = { x = -215.079, y = -8.325, z = -293.660 }, rot = { x = 0.000, y = 155.259, z = 0.000 }, level = 5 },
{ config_id = 20004, monster_id = 20011201, pos = { x = -215.371, y = -8.325, z = -299.689 }, rot = { x = 0.000, y = 50.139, z = 0.000 }, level = 5 },
{ config_id = 20005, monster_id = 20011201, pos = { x = -208.911, y = -8.325, z = -299.691 }, rot = { x = 0.000, y = 311.747, z = 0.000 }, level = 5 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 20006, gadget_id = 70220018, pos = { x = -208.724, y = -14.825, z = -295.649 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20007, gadget_id = 70220018, pos = { x = -208.723, y = -14.825, z = -293.438 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20008, gadget_id = 70220018, pos = { x = -210.923, y = -14.825, z = -293.451 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20009, gadget_id = 70220018, pos = { x = -210.896, y = -14.825, z = -295.581 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20010, gadget_id = 70220018, pos = { x = -208.750, y = -14.825, z = -299.996 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20011, gadget_id = 70220018, pos = { x = -208.750, y = -14.825, z = -297.785 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20012, gadget_id = 70220018, pos = { x = -210.950, y = -14.825, z = -297.798 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20013, gadget_id = 70220018, pos = { x = -210.922, y = -14.825, z = -299.928 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20014, gadget_id = 70220018, pos = { x = -213.196, y = -14.825, z = -299.972 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20015, gadget_id = 70220018, pos = { x = -213.196, y = -14.825, z = -297.761 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20016, gadget_id = 70220018, pos = { x = -215.396, y = -14.825, z = -297.774 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20017, gadget_id = 70220018, pos = { x = -215.368, y = -14.825, z = -299.904 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20018, gadget_id = 70220018, pos = { x = -213.084, y = -14.825, z = -295.683 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20019, gadget_id = 70220018, pos = { x = -213.084, y = -14.825, z = -293.472 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20020, gadget_id = 70220018, pos = { x = -215.284, y = -14.825, z = -293.485 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20021, gadget_id = 70220018, pos = { x = -215.256, y = -14.825, z = -295.615 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000051, name = "ANY_MONSTER_DIE_51", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_51", action = "action_EVENT_ANY_MONSTER_DIE_51", trigger_count = 0 },
{ config_id = 1000113, name = "ANY_MONSTER_DIE_113", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_113", action = "action_EVENT_ANY_MONSTER_DIE_113", 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 = { 20001, 20002, 20003, 20004, 20005 },
gadgets = { 20006, 20007, 20008, 20009, 20010, 20011, 20012, 20013, 20014, 20015, 20016, 20017, 20018, 20019, 20020, 20021 },
regions = { },
triggers = { "ANY_MONSTER_DIE_113" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_51(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016016) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_51(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016017, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016020, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_113(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016020) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_113(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016031, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016020, 2)
return 0
end