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

95 lines
2.1 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 = 111101075
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 75001, monster_id = 21011501, pos = { x = 2643.440, y = 252.778, z = -1680.104 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1075002, name = "ANY_MONSTER_DIE_75002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_75002", action = "action_EVENT_ANY_MONSTER_DIE_75002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 75001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_75002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_75002(context, evt)
--判断死亡怪物的死亡类型是否为2,0为普通死亡(比如被击杀),1为普通地被killself杀死,2为消失(比如小动物逃跑消失,北风狼脱战消失)
if evt.param2 ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_75002(context, evt)
-- 调用提示id为 1109002 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1109002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end