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

162 lines
5.3 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 = 133002265
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 940, monster_id = 21010201, pos = { x = 1979.456, y = 202.609, z = -822.052 }, rot = { x = 0.000, y = 168.692, z = 0.000 }, level = 15, drop_id = 1000100, area_id = 3 },
{ config_id = 941, monster_id = 21010101, pos = { x = 1978.055, y = 202.865, z = -828.406 }, rot = { x = 0.000, y = 19.776, z = 0.000 }, level = 15, drop_id = 1000100, area_id = 3 },
{ config_id = 942, monster_id = 21010301, pos = { x = 1982.342, y = 202.806, z = -822.372 }, rot = { x = 0.000, y = 205.832, z = 0.000 }, level = 15, drop_id = 1000100, area_id = 3 },
{ config_id = 943, monster_id = 21010301, pos = { x = 1977.065, y = 202.881, z = -825.591 }, rot = { x = 0.000, y = 49.989, z = 0.000 }, level = 15, drop_id = 1000100, area_id = 3 },
{ config_id = 944, monster_id = 21030201, pos = { x = 1977.481, y = 202.603, z = -809.322 }, rot = { x = 0.000, y = 359.476, z = 0.000 }, level = 15, drop_id = 1000100, disableWander = true, area_id = 3 },
{ config_id = 945, monster_id = 21010201, pos = { x = 1988.898, y = 203.457, z = -833.434 }, rot = { x = 0.000, y = 301.139, z = 0.000 }, level = 15, drop_id = 1000100, disableWander = true, area_id = 3 },
{ config_id = 946, monster_id = 21020201, pos = { x = 1985.863, y = 203.040, z = -836.669 }, rot = { x = 0.000, y = 301.268, z = 0.000 }, level = 15, drop_id = 1000100, disableWander = true, area_id = 3 },
{ config_id = 947, monster_id = 21010601, pos = { x = 1975.246, y = 202.549, z = -810.273 }, rot = { x = 0.000, y = 87.111, z = 0.000 }, level = 15, drop_id = 1000100, disableWander = true, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000324, name = "ANY_MONSTER_DIE_324", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_324", action = "action_EVENT_ANY_MONSTER_DIE_324", trigger_count = 0 },
{ config_id = 1000325, name = "ANY_MONSTER_DIE_325", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_325", action = "action_EVENT_ANY_MONSTER_DIE_325" },
{ config_id = 1000342, name = "ANY_MONSTER_LIVE_342", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_342", action = "action_EVENT_ANY_MONSTER_LIVE_342", 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 = { 940, 941, 942, 943 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_324", "ANY_MONSTER_LIVE_342" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 944, 945, 946, 947 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_325" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_324(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_324(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "1330022651") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_325(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_325(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "1330022652") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_342(context, evt)
if 942 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_342(context, evt)
-- 将group 133002265 中config id为 942 的怪物血量设为 50 %(血量百分比不能填0,如果掉血,则走通用的掉血流程,如果加血,直接设置新的血量)。
if 0 ~= ScriptLib.SetMonsterHp(context, 133002265, 942, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_hp_by_group")
return -1
end
return 0
end