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

95 lines
2.1 KiB
Go

-- 基础信息
local base_info = {
group_id = 166001230
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 请在这个gadget的Temp content里配上绳子应该消失的高度
{ config_id = 230001, gadget_id = 70380303, pos = { x = 967.552, y = 1021.243, z = 930.721 }, rot = { x = 0.000, y = 134.585, z = 0.000 }, level = 27, route_id = 600100023, persistent = true, server_global_value_config = { ["SGV_Elevator_Height"]= 1096.966}, area_id = 300 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1230002, name = "AVATAR_NEAR_PLATFORM_230002", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_230002", action = "action_EVENT_AVATAR_NEAR_PLATFORM_230002", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "pos", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 230001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_230002(context, evt)
if 230001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_230002(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 230001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end