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

104 lines
2.3 KiB
Go

-- 基础信息
local base_info = {
group_id = 201053012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12002, monster_id = 20010601, pos = { x = 1.303, y = 69.457, z = 71.880 }, rot = { x = 0.000, y = 333.870, z = 0.000 }, level = 1, affix = { 6104 } },
{ config_id = 12003, monster_id = 20010701, pos = { x = -4.669, y = 69.433, z = 71.470 }, rot = { x = 0.000, y = 14.264, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012004, name = "ANY_MONSTER_DIE_12004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12004", action = "action_EVENT_ANY_MONSTER_DIE_12004", 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 = ,
monsters = { 12002, 12003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_12004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12004(context, evt)
-- 将本组内变量名为 "unlockOperator" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "unlockOperator", 1, 201053010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end