添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -600.0, z = -600.0 },
size = { x = 2048.0, z = 2048.0 },
born_pos = { x = 218.859, y = 837.714, z = 928.802 },
born_rot = { x = 0.000, y = 45.000, z = 0.000 },
die_y = -56.13338,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 50074 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -600.0, z = -600.0 }, max = { x = 1448.0, z = 1448.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,163 @@
{
"sceneId": 50074,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -499.3132,
"y": -31.5528374,
"z": 229.891769
},
"waitTime": 3.0,
"targetVelocity": 2.5
},
{
"pos": {
"x": -481.4403,
"y": -31.2425919,
"z": 233.249542
},
"waitTime": 3.0,
"targetVelocity": 2.5
}
]
},
{
"localId": 2,
"name": "Platform_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -483.1903,
"y": -47.53979,
"z": 260.0344
},
"waitTime": 5.0,
"targetVelocity": 1.5
},
{
"pos": {
"x": -483.1903,
"y": -28.1646938,
"z": 260.0344
},
"waitTime": 5.0,
"targetVelocity": 1.5
}
]
},
{
"localId": 3,
"name": "Platform_003",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -522.2366,
"y": -22.5126171,
"z": 252.3447
},
"waitTime": 3.0,
"targetVelocity": 2.5
},
{
"pos": {
"x": -522.2366,
"y": -22.5568619,
"z": 269.517059
},
"waitTime": 3.0,
"targetVelocity": 2.5
}
]
},
{
"localId": 4,
"name": "Route_004",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 202.5107,
"y": 861.7682,
"z": 948.3503
},
"waitTime": 1.3,
"targetVelocity": 4.0
},
{
"pos": {
"x": 205.5954,
"y": 861.7682,
"z": 952.6272
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 217.56012,
"y": 857.573669,
"z": 962.8088
},
"waitTime": 0.0,
"targetVelocity": 4.0
}
]
},
{
"localId": 5,
"name": "Route_005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 198.5001,
"y": 861.7682,
"z": 953.3057
},
"waitTime": 1.3,
"targetVelocity": 4.0
},
{
"pos": {
"x": 202.428726,
"y": 861.7682,
"z": 956.5723
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 214.264542,
"y": 857.6331,
"z": 966.461
},
"waitTime": 0.0,
"targetVelocity": 4.0
}
]
}
]
}
@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 250074001, refresh_id = 1002, pos = { x = -102.180, y = 75.395, z = -27.611 } },
{ id = 250074002, refresh_id = 1002, pos = { x = -541.471, y = 7.038, z = 367.398 } },
{ id = 250074003, refresh_id = 1, pos = { x = -485.862, y = -47.372, z = 289.190 } },
{ id = 250074004, refresh_id = 1, pos = { x = 206.469, y = 858.858, z = 956.681 } }
}
@@ -0,0 +1,121 @@
-- 基础信息
local base_info = {
group_id = 250074001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1022, monster_id = 21030101, pos = { x = -486.926, y = -47.308, z = 259.832 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 1023, monster_id = 21010201, pos = { x = -486.158, y = -47.199, z = 262.979 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 9003 },
{ config_id = 1024, monster_id = 21010201, pos = { x = -479.534, y = -47.273, z = 260.446 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9002 },
{ config_id = 1025, monster_id = 21020201, pos = { x = -483.333, y = -47.172, z = 256.238 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 401 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70310118, pos = { x = -586.340, y = 42.936, z = 367.136 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70360002, pos = { x = -483.190, y = -47.411, z = 260.034 }, rot = { x = 0.000, y = 10.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 1003, gadget_id = 70350009, pos = { x = -498.755, y = -11.169, z = 226.449 }, rot = { x = 350.000, y = 5.000, z = 0.000 }, level = 1 },
{ config_id = 1004, gadget_id = 70310020, pos = { x = -499.124, y = -31.944, z = 229.892 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1 },
{ config_id = 1005, gadget_id = 70350009, pos = { x = -461.603, y = -51.059, z = 255.048 }, rot = { x = 15.000, y = 100.000, z = 0.000 }, level = 1 },
{ config_id = 1006, gadget_id = 70330064, pos = { x = -520.356, y = -22.354, z = 244.582 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1007, gadget_id = 70310020, pos = { x = -522.237, y = -22.913, z = 252.345 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 1008, gadget_id = 70360045, pos = { x = -456.352, y = -45.521, z = 253.973 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1009, gadget_id = 70360045, pos = { x = -536.571, y = 16.830, z = 245.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1010, gadget_id = 70360045, pos = { x = -464.859, y = -10.327, z = 267.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1012, gadget_id = 70350009, pos = { x = -529.698, y = 3.850, z = 247.719 }, rot = { x = 350.000, y = 65.000, z = 0.000 }, level = 1 },
{ config_id = 1013, gadget_id = 70900404, pos = { x = -516.291, y = -31.246, z = 231.122 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70710123, pos = { x = -493.972, y = -1.852, z = 262.011 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1015, gadget_id = 70900380, pos = { x = -493.972, y = 0.102, z = 262.011 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1016, gadget_id = 70900380, pos = { x = -470.924, y = -30.578, z = 256.769 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1018, gadget_id = 70900380, pos = { x = -479.762, y = -9.800, z = 232.533 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1019, gadget_id = 70900380, pos = { x = -462.534, y = -9.209, z = 256.470 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1020, gadget_id = 70900380, pos = { x = -478.865, y = -9.550, z = 285.306 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1021, gadget_id = 70220025, pos = { x = -483.774, y = -47.226, z = 256.335 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1026, gadget_id = 70220025, pos = { x = -479.648, y = -47.256, z = 259.885 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1027, gadget_id = 70220025, pos = { x = -482.556, y = -47.192, z = 256.556 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1028, gadget_id = 70220025, pos = { x = -486.735, y = -47.256, z = 258.200 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1029, gadget_id = 70220025, pos = { x = -487.187, y = -47.256, z = 260.093 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1030, gadget_id = 70220025, pos = { x = -487.187, y = -47.256, z = 261.941 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1031, gadget_id = 70220025, pos = { x = -485.900, y = -47.256, z = 263.187 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001011, name = "GADGET_CREATE_1011", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1011", action = "action_EVENT_GADGET_CREATE_1011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1022, 1023, 1024, 1025 },
gadgets = { 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1012, 1013, 1014, 1015, 1016, 1018, 1019, 1020, 1021, 1026, 1027, 1028, 1029, 1030, 1031 },
regions = { },
triggers = { "GADGET_CREATE_1011" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1011(context, evt)
if 1004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1011(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 250074002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 21020201, pos = { x = -540.404, y = 7.038, z = 354.702 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, monster_id = 21010201, pos = { x = -534.726, y = 7.038, z = 356.439 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, monster_id = 21010201, pos = { x = -545.385, y = 7.038, z = 356.681 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, monster_id = 21030301, pos = { x = -543.622, y = 7.038, z = 355.506 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, monster_id = 21010502, pos = { x = -537.250, y = 7.038, z = 355.458 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2003, gadget_id = 70900380, pos = { x = -540.631, y = -29.302, z = 362.434 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2007, gadget_id = 70900380, pos = { x = -546.133, y = -10.872, z = 361.900 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2001, 2002, 2004, 2005, 2006 },
gadgets = { 2003, 2007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 250074003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70220013, pos = { x = -481.001, y = -46.717, z = 252.773 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70220013, pos = { x = -478.592, y = -46.722, z = 254.827 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70220013, pos = { x = -476.339, y = -46.754, z = 257.101 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70220026, pos = { x = -480.286, y = -46.731, z = 254.913 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3005, gadget_id = 70220026, pos = { x = -477.950, y = -46.757, z = 256.857 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70220014, pos = { x = -488.079, y = -46.785, z = 254.956 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3007, gadget_id = 70220014, pos = { x = -489.108, y = -46.809, z = 256.284 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70220048, pos = { x = -478.201, y = -48.810, z = 347.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3009, gadget_id = 70220048, pos = { x = -476.546, y = -48.455, z = 349.880 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3010, gadget_id = 70220050, pos = { x = -476.605, y = -48.665, z = 348.406 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3011, gadget_id = 70220050, pos = { x = -476.362, y = -48.680, z = 347.416 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3012, gadget_id = 70220050, pos = { x = -477.214, y = -48.752, z = 351.256 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70220070, pos = { x = -459.721, y = -50.152, z = 335.581 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3014, gadget_id = 70220070, pos = { x = -462.397, y = -48.897, z = 346.233 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3015, gadget_id = 70220070, pos = { x = -464.485, y = -49.027, z = 346.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3016, gadget_id = 70220070, pos = { x = -461.934, y = -50.172, z = 335.611 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3017, gadget_id = 70710215, pos = { x = -432.591, y = -24.009, z = 202.652 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3018, gadget_id = 70300092, pos = { x = -432.971, y = -23.721, z = 192.663 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3019, gadget_id = 70300094, pos = { x = -417.657, y = -24.098, z = 187.925 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3020, gadget_id = 70300094, pos = { x = -419.320, y = -24.098, z = 188.250 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3021, gadget_id = 70900039, pos = { x = -398.485, y = -27.615, z = 191.273 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3022, gadget_id = 70310014, pos = { x = -478.623, y = 0.837, z = 181.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3023, gadget_id = 70710153, pos = { x = -479.729, y = 0.759, z = 182.647 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1 },
{ config_id = 3024, gadget_id = 70220017, pos = { x = -489.528, y = 0.050, z = 190.264 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3025, gadget_id = 70220017, pos = { x = -474.150, y = 1.129, z = 185.743 }, rot = { x = 0.000, y = 300.000, z = 0.000 }, level = 1 },
{ config_id = 3026, gadget_id = 70900025, pos = { x = -465.628, y = 1.737, z = 178.206 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,310 @@
-- 基础信息
local base_info = {
group_id = 250074004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70220026, pos = { x = 195.723, y = 861.084, z = 944.125 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4003, gadget_id = 70350170, pos = { x = 202.511, y = 861.768, z = 948.350 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 4004, gadget_id = 70350170, pos = { x = 198.500, y = 861.768, z = 953.306 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 4005, gadget_id = 70350170, pos = { x = 202.511, y = 861.768, z = 948.350 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 4006, gadget_id = 70350170, pos = { x = 198.500, y = 861.768, z = 953.306 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 }
}
-- 区域
regions = {
{ config_id = 4002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 227.935, y = 851.819, z = 955.902 } },
{ config_id = 4016, shape = RegionShape.SPHERE, radius = 5, pos = { x = 203.150, y = 860.125, z = 953.786 } }
}
-- 触发器
triggers = {
{ config_id = 1004002, name = "ENTER_REGION_4002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_4002" },
{ config_id = 1004007, name = "TIMER_EVENT_4007", event = EventType.EVENT_TIMER_EVENT, source = "1", condition = "", action = "action_EVENT_TIMER_EVENT_4007" },
{ config_id = 1004008, name = "GADGET_CREATE_4008", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4008", action = "action_EVENT_GADGET_CREATE_4008" },
{ config_id = 1004009, name = "TIMER_EVENT_4009", event = EventType.EVENT_TIMER_EVENT, source = "2", condition = "", action = "action_EVENT_TIMER_EVENT_4009" },
{ config_id = 1004010, name = "GADGET_CREATE_4010", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4010", action = "action_EVENT_GADGET_CREATE_4010" },
{ config_id = 1004011, name = "TIMER_EVENT_4011", event = EventType.EVENT_TIMER_EVENT, source = "3", condition = "", action = "action_EVENT_TIMER_EVENT_4011" },
{ config_id = 1004012, name = "TIMER_EVENT_4012", event = EventType.EVENT_TIMER_EVENT, source = "4", condition = "", action = "action_EVENT_TIMER_EVENT_4012" },
{ config_id = 1004013, name = "GADGET_CREATE_4013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4013", action = "action_EVENT_GADGET_CREATE_4013" },
{ config_id = 1004014, name = "TIMER_EVENT_4014", event = EventType.EVENT_TIMER_EVENT, source = "5", condition = "", action = "action_EVENT_TIMER_EVENT_4014" },
{ config_id = 1004015, name = "GADGET_CREATE_4015", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4015", action = "action_EVENT_GADGET_CREATE_4015" },
{ config_id = 1004016, name = "ENTER_REGION_4016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_4016" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001 },
regions = { 4002, 4016 },
triggers = { "ENTER_REGION_4002", "TIMER_EVENT_4007", "ENTER_REGION_4016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4003 },
regions = { },
triggers = { "GADGET_CREATE_4008", "TIMER_EVENT_4009" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 4004 },
regions = { },
triggers = { "TIMER_EVENT_4012", "GADGET_CREATE_4013" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 4005 },
regions = { },
triggers = { "GADGET_CREATE_4010", "TIMER_EVENT_4011" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 4006 },
regions = { },
triggers = { "TIMER_EVENT_4014", "GADGET_CREATE_4015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_4002(context, evt)
-- 触发镜头注目,注目位置为坐标(197.5,861.1,947.5),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=197.5, y=861.1, z=947.5}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250074004, 2)
-- 延迟4秒后,向groupId为:250074004的对象,请求一次调用,并将string参数:"1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250074004, "1", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4007(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250074004, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_4008(context, evt)
if 4003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4008(context, evt)
-- 延迟8秒后,向groupId为:250074004的对象,请求一次调用,并将string参数:"2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250074004, "2", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4009(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250074004, 4)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250074004, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_4010(context, evt)
if 4005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4010(context, evt)
-- 延迟8秒后,向groupId为:250074004的对象,请求一次调用,并将string参数:"3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250074004, "3", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4011(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250074004, 2)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250074004, 4)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4012(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250074004, 5)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250074004, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_4013(context, evt)
if 4004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4013(context, evt)
-- 延迟8秒后,向groupId为:250074004的对象,请求一次调用,并将string参数:"4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250074004, "4", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4014(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250074004, 3)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250074004, 5)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_4015(context, evt)
if 4006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4015(context, evt)
-- 延迟8秒后,向groupId为:250074004的对象,请求一次调用,并将string参数:"5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250074004, "5", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_4016(context, evt)
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250074004, "2") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250074004, "3") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250074004, "4") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250074004, "5") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -115.1134,
"y": 127.497,
"z": -151.1931
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": -115.113441,
"y": 127.49704,
"z": -151.193146
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}