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

108 lines
3.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 基础信息
local base_info = {
group_id = 133002313
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 313005, monster_id = 28030307, pos = { x = 1934.460, y = 209.098, z = -808.724 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, drop_tag = "鸟类", disableWander = true, pose_id = 2, area_id = 3 },
{ config_id = 313006, monster_id = 28030308, pos = { x = 1935.676, y = 208.851, z = -807.787 }, rot = { x = 0.000, y = 248.365, z = 0.000 }, level = 10, drop_tag = "鸟类", disableWander = true, pose_id = 2, area_id = 3 },
{ config_id = 313007, monster_id = 28030307, pos = { x = 1936.154, y = 209.020, z = -810.179 }, rot = { x = 0.000, y = 95.480, z = 0.000 }, level = 10, drop_tag = "鸟类", disableWander = true, pose_id = 2, area_id = 3 },
{ config_id = 313008, monster_id = 28030307, pos = { x = 1936.521, y = 208.890, z = -808.955 }, rot = { x = 0.000, y = 136.708, z = 0.000 }, level = 10, drop_tag = "鸟类", disableWander = true, pose_id = 2, area_id = 3 },
{ config_id = 313009, monster_id = 28030310, pos = { x = 1937.630, y = 208.765, z = -808.173 }, rot = { x = 0.000, y = 120.129, z = 0.000 }, level = 10, drop_tag = "鸟类", area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1313014, name = "ANY_MONSTER_DIE_313014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_313014", action = "action_EVENT_ANY_MONSTER_DIE_313014" }
}
-- 变量
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 = { 313005, 313006, 313007, 313008, 313009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_313014" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_313014(context, evt)
--判断死亡怪物的死亡类型是否为0,0为普通死亡(比如被击杀),1为普通地被killself杀死,2为消失(比如小动物逃跑消失,北风狼脱战消失)
if evt.param2 ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_313014(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "1330023101") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end