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

146 lines
3.8 KiB
Go

-- 基础信息
local base_info = {
group_id = 250028003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 21010501, pos = { x = 4.837, y = 0.002, z = 7.915 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3002, monster_id = 20011001, pos = { x = -5.114, y = 0.002, z = 7.454 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3003, monster_id = 20011001, pos = { x = -0.082, y = 0.002, z = 9.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, monster_id = 21020101, pos = { x = -0.064, y = 0.002, z = 1.912 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3005, monster_id = 20010801, pos = { x = 2.449, y = 0.002, z = 4.931 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3006, monster_id = 20010801, pos = { x = 2.131, y = 0.002, z = -0.476 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3007, monster_id = 20010201, pos = { x = -3.726, y = 0.002, z = 1.880 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 201 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3010, gadget_id = 70900205, pos = { x = 8.717, y = -2.883, z = 16.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003011, name = "ANY_MONSTER_DIE_3011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3011", action = "action_EVENT_ANY_MONSTER_DIE_3011" },
{ config_id = 1003012, name = "ANY_MONSTER_DIE_3012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3012", action = "action_EVENT_ANY_MONSTER_DIE_3012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 4,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3001, 3002, 3003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3004, 3005, 3006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 3007 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 3010 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3011(context, evt)
--判断死亡怪物的configid是否为 3001
if evt.param1 ~= 3001 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3011(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250028003, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3012(context, evt)
--判断死亡怪物的configid是否为 3004
if evt.param1 ~= 3004 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3012(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250028003, 3)
return 0
end