0
0
mirror of https://gitlab.com/YuukiPS/GC-Resources.git synced 2025-04-28 09:05:26 +00:00
GC-Resources/Resources/Scripts/Scene/3/scene3_group133307020.lua
2023-01-23 00:23:05 +08:00

83 lines
1.7 KiB
Lua

-- 基础信息
local base_info = {
group_id = 133307020
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 20001, gadget_id = 70900050, pos = { x = -1700.032, y = 23.752, z = 5730.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 32, area_id = 32 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1020002, name = "GADGET_STATE_CHANGE_20002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_20002", action = "" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 20001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_20002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_20002(context, evt)
-- 检测config_id为20001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 20001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end