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

86 lines
2.0 KiB
Lua

-- 基础信息
local base_info = {
group_id = 155006041
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
{ config_id = 41002, npc_id = 20498, pos = { x = 503.661, y = 202.555, z = 821.722 }, rot = { x = 0.000, y = 289.230, z = 0.000 }, area_id = 200 }
}
-- 装置
gadgets = {
{ config_id = 41001, gadget_id = 70710091, pos = { x = 503.929, y = 202.145, z = 821.710 }, rot = { x = 1.540, y = 266.687, z = 0.000 }, level = 36, area_id = 200 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1041003, name = "QUEST_FINISH_41003", event = EventType.EVENT_QUEST_FINISH, source = "7225301", condition = "", action = "action_EVENT_QUEST_FINISH_41003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 41001 },
regions = { },
triggers = { "QUEST_FINISH_41003" },
npcs = { 41002 },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_41003(context, evt)
-- 针对当前group内变量名为 "activeCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "activeCount", 1, 155006048) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end