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

101 lines
2.1 KiB
Go

-- 基础信息
local base_info = {
group_id = 250004036
}
-- Trigger变量
local defs = {
gadget_id_1 = 360
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 360, gadget_id = 70900208, pos = { x = -728.129, y = -11.000, z = -86.837 }, rot = { x = 0.000, y = 12.860, z = 0.000 }, level = 1 },
{ config_id = 361, gadget_id = 70380003, pos = { x = -724.936, y = -12.489, z = -88.589 }, rot = { x = 0.000, y = 90.325, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000070, name = "CLIENT_EXECUTE_70", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Hit", condition = "condition_EVENT_CLIENT_EXECUTE_70", action = "action_EVENT_CLIENT_EXECUTE_70", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 360, 361 },
regions = { },
triggers = { "CLIENT_EXECUTE_70" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_70(context, evt)
-- 判断是gadgetid 57 option_id 0
if defs.gadget_id_1 == ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return true
end
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_70(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 361) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end