106 lines
3.3 KiB
Go
106 lines
3.3 KiB
Go
-- 基础信息
|
|
local base_info = {
|
|
group_id = 220131013
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
{ config_id = 13001, gadget_id = 70310020, pos = { x = 90.610, y = -4.080, z = -10.153 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
|
|
{ config_id = 13003, gadget_id = 70710348, pos = { x = 103.291, y = -13.958, z = -24.912 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 13004, gadget_id = 70710348, pos = { x = 114.065, y = -13.961, z = -26.570 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 13005, gadget_id = 70800111, pos = { x = 85.680, y = 3.070, z = -32.880 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 13006, gadget_id = 70800111, pos = { x = 64.590, y = 13.190, z = -35.260 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 13007, gadget_id = 70800111, pos = { x = 64.590, y = 18.100, z = -35.260 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 13008, gadget_id = 70800111, pos = { x = 64.590, y = 23.000, z = -35.260 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
{ config_id = 13002, shape = RegionShape.SPHERE, radius = 2, pos = { x = 90.347, y = -3.113, z = -10.178 } }
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ config_id = 1013002, name = "ENTER_REGION_13002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13002", action = "action_EVENT_ENTER_REGION_13002", trigger_count = 0 }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
end_suite = 0,
|
|
rand_suite = false
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 1,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { 13001, 13003, 13004, 13005, 13006, 13007, 13008 },
|
|
regions = { 13002 },
|
|
triggers = { "ENTER_REGION_13002" },
|
|
rand_weight = 100
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_13002(context, evt)
|
|
if evt.param1 ~= 13002 then return false end
|
|
|
|
-- 判断角色数量不少于1
|
|
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_ENTER_REGION_13002(context, evt)
|
|
-- 设置移动平台点阵,点阵id为point_array_id
|
|
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
|
|
-- turn_mode = true/false 开启/关闭
|
|
local tempParam = {route_type = 0, turn_mode = false}
|
|
if 0 ~= ScriptLib.SetPlatformPointArray(context, 13001, 3, {3,2,1}, tempParam) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end |