GSServer-CBT/soggy_resources/lua/Scene/3/scene3_group133003435.lua

99 lines
2.1 KiB
Lua
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.

--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1442, monster_id = 21010201, pos = { x = 2187.1, y = 221.1, z = -1148.7 }, rot = { x = 0.0, y = 8.2, z = 0.0 }, level = 2, drop_id = 303041 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 517, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2188.1, y = 221.0, z = -1149.0 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_517", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_517", action = "action_EVENT_ANY_MONSTER_DIE_517" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 1442 },
gadgets = { },
regions = { 517 },
triggers = { "ANY_MONSTER_DIE_517" },
rand_weight = 100
},
{
-- suite_id = 1,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_517(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_517(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "133003435") then
return -1
end
return 0
end