Files
hk4e-go/gdconf/game_data_config/lua/rand_task/pattern_26.lua
T
2022-11-30 00:00:20 +08:00

109 lines
3.1 KiB
Lua

-- 基础信息
local base_info = {
group_id = 139999026
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 26001, monster_id = 28060611, pos = { x = 0.386, y = -0.012, z = -1.201 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 5175 }, pose_id = 2, area_id = 3 },
{ config_id = 26002, monster_id = 25010401, pos = { x = 2.492, y = 0.034, z = 4.539 }, rot = { x = 0.000, y = 28.640, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 3 },
{ config_id = 26003, monster_id = 25010301, pos = { x = -2.334, y = 0.040, z = 3.429 }, rot = { x = 0.000, y = 333.100, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 3 },
{ config_id = 26004, monster_id = 25010701, pos = { x = -0.845, y = 0.179, z = 6.520 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 26005, shape = RegionShape.SPHERE, radius = 20, pos = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 3 }
}
-- 触发器
triggers = {
{ config_id = 1026005, name = "ENTER_REGION_26005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_26005" },
{ config_id = 1026006, name = "ANY_MONSTER_DIE_26006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_26006", action = "action_EVENT_ANY_MONSTER_DIE_26006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 26001, 26002, 26003, 26004 },
gadgets = { },
regions = { 26005 },
triggers = { "ENTER_REGION_26005", "ANY_MONSTER_DIE_26006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_26005(context, evt)
-- 调用提示id为 400304 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400304) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_26006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_26006(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 26, true)
return 0
end