添加配置表

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 = -499.0, z = -3678.0 },
size = { x = 6661.0, z = 6585.0 },
born_pos = { x = 2262.537, y = 515.456, z = 456.802 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -500,
city_id = 102,
vision_anchor = { x = -1000.0, z = -4000.0 }
}
-- 所有的区块
blocks = { 20133 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -499.0, z = -3678.0 }, max = { x = 6162.0, z = 2907.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,907 @@
{
"sceneId": 20133,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2175.159,
"y": 545.0072,
"z": 515.7403
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2159.803,
"y": 548.8602,
"z": 517.5483
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2245.10352,
"y": 538.6602,
"z": 537.642
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2200.87036,
"y": 557.4589,
"z": 582.7626
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true
}
]
},
{
"localId": 3,
"name": "Route_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2200.87036,
"y": 557.4589,
"z": 582.7626
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2245.10352,
"y": 538.6602,
"z": 537.642
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true
}
]
},
{
"localId": 4,
"name": "Route_004",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -8.898926,
"y": 145.006241,
"z": 613.209351
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": -1.66943359,
"y": 144.161453,
"z": 611.743042
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
}
]
},
{
"localId": 5,
"name": "Platform_005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2177.29614,
"y": 543.5584,
"z": 511.116028
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
},
{
"pos": {
"x": 2178.14868,
"y": 545.93335,
"z": 518.693054
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
},
{
"pos": {
"x": 2176.737,
"y": 548.30835,
"z": 526.1198
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
},
{
"pos": {
"x": 2172.505,
"y": 550.6833,
"z": 527.9566
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
}
]
},
{
"localId": 6,
"name": "Platform_005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2164.402,
"y": 549.0082,
"z": 523.5213
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
},
{
"pos": {
"x": 2161.266,
"y": 550.441467,
"z": 521.8045
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
},
{
"pos": {
"x": 2154.67847,
"y": 549.6043,
"z": 524.5233
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
},
{
"pos": {
"x": 2151.417,
"y": 548.6214,
"z": 521.7505
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
}
]
},
{
"localId": 7,
"name": "Route_007",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2263.496,
"y": 535.043,
"z": 516.3403
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2270.8457,
"y": 525.892,
"z": 501.38797
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2256.795,
"y": 520.72,
"z": 486.415
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2252.569,
"y": 528.6101,
"z": 503.6802
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 8,
"name": "Route_008",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 5028.85156,
"y": 532.7573,
"z": -1629.25342
},
"waitTime": 1.0,
"targetVelocity": 5.0,
"hasReachEvent": true
},
{
"pos": {
"x": 5028.85156,
"y": 545.7573,
"z": -1629.25342
},
"waitTime": 1.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 9,
"name": "Route_009",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 5028.717,
"y": 543.8376,
"z": -1614.94775
},
"waitTime": 1.0,
"targetVelocity": 5.0,
"hasReachEvent": true
},
{
"pos": {
"x": 5028.717,
"y": 530.837646,
"z": -1614.94775
},
"waitTime": 1.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 10,
"name": "Route_010",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 5038.885,
"y": 528.2376,
"z": -1604.00464
},
"waitTime": 1.0,
"targetVelocity": 5.0,
"hasReachEvent": true
},
{
"pos": {
"x": 5038.885,
"y": 541.2376,
"z": -1604.00464
},
"waitTime": 1.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 11,
"name": "Route_011",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 5027.008,
"y": 524.306946,
"z": -1658.80139
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 5029.541,
"y": 523.824,
"z": -1653.56873
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
}
]
},
{
"localId": 12,
"name": "Route_011",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 5028.97949,
"y": 527.1661,
"z": -1666.54456
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 5025.701,
"y": 528.009766,
"z": -1672.23389
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
}
]
},
{
"localId": 13,
"name": "Route_011",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 5045.793,
"y": 536.1785,
"z": -1728.439
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 5039.962,
"y": 536.4005,
"z": -1728.391
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
}
]
},
{
"localId": 14,
"name": "Route_011",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 5052.212,
"y": 537.3068,
"z": -1723.005
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 5058.815,
"y": 537.4349,
"z": -1723.469
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
}
]
},
{
"localId": 15,
"name": "Route_007",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2256.795,
"y": 520.72,
"z": 486.415
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2252.569,
"y": 528.6101,
"z": 503.6802
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2263.496,
"y": 535.043,
"z": 516.3403
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2270.8457,
"y": 525.892,
"z": 501.38797
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 16,
"name": "Route_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4348.77,
"y": 532.22,
"z": 248.34
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 20,
"name": "Platform_005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2518.94214,
"y": 557.5856,
"z": -1703.76892
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
},
{
"pos": {
"x": 2521.60449,
"y": 560.286255,
"z": -1703.3822
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
},
{
"pos": {
"x": 2526.75757,
"y": 562.619568,
"z": -1700.8313
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
},
{
"pos": {
"x": 2528.783,
"y": 559.2809,
"z": -1703.485
},
"waitTime": 0.0,
"targetVelocity": 2.3,
"hasReachEvent": true
}
]
},
{
"localId": 21,
"name": "Route_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4356.94,
"y": 535.13,
"z": 260.04
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 22,
"name": "Route_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4341.21,
"y": 533.32,
"z": 253.96
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 23,
"name": "Route_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4337.21,
"y": 535.02,
"z": 260.98
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 24,
"name": "Route_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4329.6,
"y": 536.6785,
"z": 266.42
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 25,
"name": "Route_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4332.4,
"y": 536.54,
"z": 248.27
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 26,
"name": "Route_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4342.98,
"y": 531.94,
"z": 269.84
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 27,
"name": "Route_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4324.59,
"y": 532.19,
"z": 258.88
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 28,
"name": "Platform_028",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4344.02051,
"y": 539.6834,
"z": 200.357819
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 29,
"name": "Platform_029",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4349.24658,
"y": 538.7386,
"z": 206.779572
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 32,
"name": "Platform_032",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4344.02344,
"y": 540.9648,
"z": 192.855316
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 33,
"name": "Platform_033",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4336.637,
"y": 542.2779,
"z": 191.97287
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 34,
"name": "Platform_034",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4349.69434,
"y": 547.3299,
"z": 207.5041
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 35,
"name": "Platform_035",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4343.767,
"y": 533.6459,
"z": 199.946671
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 36,
"name": "Platform_036",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4353.75,
"y": 541.893,
"z": 188.2991
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
},
{
"localId": 37,
"name": "Platform_037",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4323.86865,
"y": 541.8215,
"z": 198.005814
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"hasReachEvent": true
}
]
}
]
}
@@ -0,0 +1,106 @@
-- 所有的group
groups = {
{ id = 220133001, pos = { x = 1061.840, y = -388.461, z = 2113.816 } },
{ id = 220133002, pos = { x = 5042.494, y = 533.542, z = -1721.289 } },
{ id = 220133003, pos = { x = 2425.567, y = 533.026, z = -1781.790 } },
{ id = 220133004, pos = { x = 2521.593, y = 554.922, z = -1723.616 } },
{ id = 220133005, pos = { x = 2471.128, y = 535.409, z = -1772.763 } },
{ id = 220133006, pos = { x = 4354.057, y = 534.125, z = 239.231 } },
{ id = 220133007, pos = { x = 4321.694, y = 549.202, z = 174.197 } },
{ id = 220133008, pos = { x = 10.735, y = 161.492, z = 571.767 } },
{ id = 220133009, pos = { x = 5049.878, y = 536.342, z = -1741.053 } },
{ id = 220133010, pos = { x = 36.352, y = 157.107, z = 537.241 } },
{ id = 220133011, pos = { x = 218.709, y = 131.767, z = 2082.107 } },
{ id = 220133012, pos = { x = -4.033, y = 144.164, z = 608.689 } },
{ id = 220133013, pos = { x = -81.186, y = 209.886, z = 588.342 } },
{ id = 220133014, pos = { x = 2374.616, y = 540.286, z = -1754.213 } },
{ id = 220133015, pos = { x = 4369.813, y = 536.372, z = 226.472 } },
{ id = 220133016, pos = { x = 5029.740, y = 540.684, z = -1826.172 } },
{ id = 220133017, pos = { x = 5048.692, y = 536.640, z = -1734.443 } },
{ id = 220133018, pos = { x = 2248.969, y = 523.148, z = 481.524 } },
{ id = 220133019, pos = { x = 2174.214, y = 562.459, z = 594.676 } },
{ id = 220133020, pos = { x = 227.781, y = 127.541, z = 2089.199 } },
{ id = 220133021, pos = { x = 4162.784, y = 588.063, z = 221.796 } },
{ id = 220133022, pos = { x = 2157.177, y = 543.511, z = 520.420 } },
{ id = 220133023, pos = { x = 2250.263, y = 539.722, z = 537.185 } },
{ id = 220133024, pos = { x = 2271.650, y = 539.670, z = 537.841 } },
{ id = 220133025, pos = { x = 4199.017, y = 578.356, z = 222.374 } },
{ id = 220133026, pos = { x = 2161.226, y = 541.893, z = 509.854 } },
{ id = 220133027, pos = { x = 5012.661, y = 542.148, z = -1783.569 } },
{ id = 220133028, pos = { x = 13.185, y = 142.599, z = 617.867 } },
{ id = 220133029, pos = { x = 2174.698, y = 560.700, z = 592.304 } },
{ id = 220133030, pos = { x = 498.140, y = 177.017, z = 1879.358 } },
{ id = 220133031, pos = { x = 1066.915, y = -388.461, z = 2106.380 } },
{ id = 220133032, pos = { x = 2638.162, y = 585.172, z = -1704.642 } },
{ id = 220133033, pos = { x = -64.317, y = 180.215, z = 655.745 } },
{ id = 220133034, pos = { x = 4327.869, y = 548.281, z = 180.366 } },
{ id = 220133035, pos = { x = 4286.095, y = 543.338, z = 327.132 } },
{ id = 220133036, pos = { x = -44.398, y = 163.372, z = 495.513 } },
{ id = 220133037, pos = { x = 13.890, y = 182.889, z = 628.166 } },
{ id = 220133038, pos = { x = -46.698, y = 179.500, z = 607.463 } },
{ id = 220133039, pos = { x = -25.447, y = 152.141, z = 653.639 } },
{ id = 220133040, pos = { x = -29.028, y = 156.045, z = 682.988 } },
{ id = 220133041, pos = { x = -32.150, y = 205.349, z = 603.341 } },
{ id = 220133042, pos = { x = 14.140, y = 198.143, z = 610.601 } },
{ id = 220133043, pos = { x = 95.296, y = 194.371, z = 648.511 } },
{ id = 220133044, pos = { x = 235.375, y = 135.446, z = 2072.073 } },
{ id = 220133045, pos = { x = 311.317, y = 149.777, z = 2068.519 } },
{ id = 220133046, pos = { x = -8.068, y = 144.870, z = 613.486 } },
{ id = 220133047, pos = { x = -99.122, y = 209.901, z = 578.577 } },
{ id = 220133048, pos = { x = 2184.354, y = 560.495, z = 582.719 } },
{ id = 220133049, pos = { x = 399.128, y = 144.982, z = 1977.219 } },
{ id = 220133050, pos = { x = 2250.208, y = 523.379, z = 481.744 } },
{ id = 220133051, pos = { x = 1067.238, y = -388.461, z = 2106.022 } },
{ id = 220133052, pos = { x = 4163.057, y = 599.445, z = 201.058 } },
{ id = 220133053, pos = { x = 0.000, y = 0.000, z = 0.000 } },
{ id = 220133054, pos = { x = -44.398, y = 163.372, z = 495.513 } },
{ id = 220133055, pos = { x = 2382.364, y = 540.004, z = -1762.152 } },
{ id = 220133056, pos = { x = 40.824, y = 156.940, z = 537.160 } },
{ id = 220133057, pos = { x = 37.389, y = 156.870, z = 536.895 } },
{ id = 220133058, pos = { x = 1068.426, y = -388.461, z = 2107.509 } },
{ id = 220133059, pos = { x = 24.214, y = 143.746, z = 635.651 } },
{ id = 220133060, pos = { x = 2633.166, y = 583.923, z = -1739.309 } },
{ id = 220133061, pos = { x = 4357.772, y = 537.103, z = 226.597 } },
{ id = 220133062, pos = { x = 4240.691, y = 571.510, z = 158.422 } },
{ id = 220133063, pos = { x = 4254.570, y = 559.210, z = 266.944 } },
{ id = 220133064, pos = { x = 309.617, y = 154.138, z = 2016.497 } },
{ id = 220133065, pos = { x = -46.924, y = 163.398, z = 497.362 } },
{ id = 220133066, pos = { x = 5069.922, y = 550.333, z = -1730.512 } },
{ id = 220133067, pos = { x = 5100.805, y = 550.982, z = -1787.451 } },
{ id = 220133068, pos = { x = 5059.828, y = 520.242, z = -1626.365 } },
{ id = 220133069, pos = { x = 5076.069, y = 519.168, z = -1619.566 } },
{ id = 220133070, pos = { x = 5030.641, y = 524.159, z = -1667.599 } },
{ id = 220133071, pos = { x = 5024.359, y = 526.513, z = -1663.402 } },
{ id = 220133072, pos = { x = 5098.568, y = 549.290, z = -1764.959 } },
{ id = 220133073, pos = { x = 5042.100, y = 534.828, z = -1726.983 } },
{ id = 220133074, pos = { x = 5026.965, y = 541.943, z = -1823.273 } },
{ id = 220133075, pos = { x = 2439.919, y = 537.137, z = -1790.714 } },
{ id = 220133076, pos = { x = 2431.790, y = 535.197, z = -1792.596 } },
{ id = 220133077, pos = { x = 2521.813, y = 552.781, z = -1718.316 } },
{ id = 220133078, pos = { x = 2529.642, y = 552.991, z = -1731.521 } },
{ id = 220133079, pos = { x = 2531.186, y = 559.137, z = -1699.197 } },
{ id = 220133080, pos = { x = 2639.357, y = 583.929, z = -1779.398 } },
{ id = 220133083, pos = { x = 4266.572, y = 568.132, z = 148.915 } },
{ id = 220133086, pos = { x = 4191.590, y = 579.865, z = 234.130 } },
{ id = 220133087, pos = { x = 5051.316, y = 537.770, z = -1728.540 } },
{ id = 220133088, pos = { x = -51.792, y = 164.505, z = 493.319 } },
{ id = 220133089, pos = { x = 416.585, y = 142.030, z = 1951.751 } },
{ id = 220133090, pos = { x = 1066.752, y = -387.691, z = 2100.217 } },
{ id = 220133091, pos = { x = 2258.242, y = 517.514, z = 461.398 } },
{ id = 220133092, pos = { x = -57.176, y = 151.501, z = 583.968 } },
{ id = 220133093, pos = { x = 5079.450, y = 519.282, z = -1618.560 } },
{ id = 220133094, pos = { x = -44.145, y = 157.732, z = 695.293 } },
{ id = 220133095, pos = { x = 5029.291, y = 540.561, z = -1825.659 } },
{ id = 220133096, pos = { x = 2289.146, y = 506.354, z = 117.750 } },
{ id = 220133097, pos = { x = -52.947, y = 203.324, z = 638.336 } },
{ id = 220133098, pos = { x = 2372.794, y = 540.564, z = -1754.576 } },
{ id = 220133099, pos = { x = 2652.428, y = 584.737, z = -1747.457 } },
{ id = 220133100, pos = { x = -125.846, y = 182.994, z = 634.163 } },
{ id = 220133101, pos = { x = 57.776, y = 216.138, z = 570.329 } },
{ id = 220133102, pos = { x = 4383.932, y = 536.008, z = 227.459 } },
{ id = 220133103, pos = { x = 4304.956, y = 542.439, z = 288.823 } },
{ id = 220133104, pos = { x = 89.026, y = 195.923, z = 652.498 } },
{ id = 220133105, pos = { x = 459.422, y = 164.541, z = 1883.352 } },
{ id = 220133106, pos = { x = 4354.136, y = 538.823, z = 212.157 } },
{ id = 220133107, pos = { x = 2179.208, y = 560.522, z = 587.366 } }
}
@@ -0,0 +1,110 @@
dummy_points = {
["guide_Q4006805"] = { pos = { x = 2179.238, y = 560.530, z = 585.855 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006806"] = { pos = { x = 2161.010, y = 541.818, z = 511.209 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006807"] = { pos = { x = 2170.340, y = 565.085, z = 598.803 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006808"] = { pos = { x = 10.955, y = 161.436, z = 572.739 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006903"] = { pos = { x = 25.376, y = 143.812, z = 636.827 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006905"] = { pos = { x = 304.098, y = 152.526, z = 2066.153 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006909"] = { pos = { x = 456.821, y = 164.327, z = 1882.589 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006910"] = { pos = { x = 498.140, y = 177.017, z = 1879.358 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006911"] = { pos = { x = 1066.952, y = -388.418, z = 2106.158 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006804_N1042"] = { pos = { x = 2257.715, y = 520.080, z = 470.870 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q4006805_N10095"] = { pos = { x = 2180.709, y = 560.521, z = 587.468 }, rot = { x = 0.000, y = 256.979, z = 0.000 } },
["Q4006805_N1032"] = { pos = { x = 2178.730, y = 560.507, z = 587.482 }, rot = { x = 0.000, y = 133.364, z = 0.000 } },
["Q4006805_N1042"] = { pos = { x = 2179.641, y = 560.538, z = 584.947 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006809_guide"] = { pos = { x = -7.710, y = 151.000, z = 614.344 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006809_N12616"] = { pos = { x = -8.372, y = 144.928, z = 614.720 }, rot = { x = 4.995, y = 171.559, z = 8.905 } },
["Q4006903_focus"] = { pos = { x = 235.374, y = 135.702, z = 2072.683 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006903_N10095"] = { pos = { x = 218.351, y = 131.770, z = 2083.509 }, rot = { x = 0.000, y = 165.091, z = 0.000 } },
["Q4006903_N1032"] = { pos = { x = 219.899, y = 131.763, z = 2082.563 }, rot = { x = 0.000, y = 256.392, z = 0.000 } },
["Q4006903_N1042"] = { pos = { x = 218.770, y = 131.765, z = 2080.829 }, rot = { x = 0.000, y = 348.720, z = 0.000 } },
["Q4006904_guide"] = { pos = { x = 296.048, y = 152.346, z = 2026.789 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006904_N12617"] = { pos = { x = 300.010, y = 153.224, z = 2024.657 }, rot = { x = 0.000, y = 350.000, z = 0.000 } },
["Q4006904_N12618"] = { pos = { x = 296.924, y = 153.181, z = 2023.044 }, rot = { x = 0.000, y = 330.000, z = 0.000 } },
["Q4006904_N12619"] = { pos = { x = 293.683, y = 153.231, z = 2023.549 }, rot = { x = 0.000, y = 20.000, z = 0.000 } },
["Q4006905_focus"] = { pos = { x = 382.792, y = 140.055, z = 2009.128 }, rot = { x = 0.532, y = 329.600, z = 0.743 } },
["Q4006906_guide"] = { pos = { x = 383.722, y = 140.085, z = 2007.018 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006906_N12620"] = { pos = { x = 384.972, y = 140.128, z = 2005.129 }, rot = { x = 0.000, y = 330.000, z = 0.000 } },
["Q4006907_guide"] = { pos = { x = 431.062, y = 139.866, z = 1990.689 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006907_N1042"] = { pos = { x = 377.452, y = 140.131, z = 2001.106 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006907_N12620"] = { pos = { x = 381.105, y = 140.122, z = 2002.402 }, rot = { x = 0.000, y = 60.000, z = 0.000 } },
["Q4006907_N12621"] = { pos = { x = 435.461, y = 139.910, z = 1995.471 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006907_N12622"] = { pos = { x = 373.894, y = 140.002, z = 1950.266 }, rot = { x = 0.000, y = 120.000, z = 0.000 } },
["Q4006908_N1042"] = { pos = { x = 398.092, y = 144.088, z = 1978.628 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q4006908_N12620"] = { pos = { x = 399.905, y = 144.051, z = 1979.095 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["Q4006908_N12621"] = { pos = { x = 401.085, y = 143.994, z = 1978.378 }, rot = { x = 0.000, y = 300.000, z = 0.000 } },
["Q4006908_N12622"] = { pos = { x = 400.073, y = 144.060, z = 1977.831 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006910_transmit"] = { pos = { x = 1062.296, y = -388.461, z = 2108.598 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q4006911_N12646"] = { pos = { x = 235.347, y = 136.993, z = 2072.808 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006912_N1012"] = { pos = { x = 1068.173, y = -388.461, z = 2101.313 }, rot = { x = 0.000, y = 330.000, z = 0.000 } },
["Q4006914_guide"] = { pos = { x = 369.896, y = 140.018, z = 1955.962 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006916_guide"] = { pos = { x = 261.315, y = 140.853, z = 2081.044 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006917_guide"] = { pos = { x = 346.366, y = 143.562, z = 2074.051 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006920_N12646"] = { pos = { x = 253.473, y = 141.359, z = 2075.443 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006921_N12646"] = { pos = { x = 271.844, y = 146.849, z = 2079.742 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006922_N12646"] = { pos = { x = 290.414, y = 152.105, z = 2060.959 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007004_N10095"] = { pos = { x = -2.760, y = 144.217, z = 612.017 }, rot = { x = 0.000, y = 300.000, z = 0.000 } },
["Q4007004_N1032"] = { pos = { x = -3.930, y = 144.287, z = 610.902 }, rot = { x = 0.000, y = 320.000, z = 0.000 } },
["Q4007004_N1042"] = { pos = { x = -5.004, y = 144.489, z = 610.226 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007005_N12623"] = { pos = { x = -99.213, y = 210.227, z = 578.939 }, rot = { x = 0.000, y = 60.000, z = 0.000 } },
["Q4007019_N10095"] = { pos = { x = -80.089, y = 210.341, z = 588.447 }, rot = { x = 0.000, y = 240.000, z = 0.000 } },
["Q4007019_N1032"] = { pos = { x = -80.799, y = 210.017, z = 589.059 }, rot = { x = 0.000, y = 240.000, z = 0.000 } },
["Q4007019_N1042"] = { pos = { x = -81.245, y = 210.213, z = 589.854 }, rot = { x = 0.000, y = 240.000, z = 0.000 } },
["T4006804_kazuha"] = { pos = { x = 2257.956, y = 519.501, z = 468.456 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006804_mona"] = { pos = { x = 2258.855, y = 519.589, z = 469.614 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["T4006804_paimon"] = { pos = { x = 2256.668, y = 519.818, z = 469.223 }, rot = { x = 0.000, y = 84.123, z = 0.000 } },
["T4006804_player"] = { pos = { x = 2256.256, y = 520.126, z = 469.936 }, rot = { x = 0.000, y = 104.163, z = 0.000 } },
["T4006805_N10000005"] = { pos = { x = 2180.055, y = 560.524, z = 585.912 }, rot = { x = 0.000, y = 325.000, z = 0.000 } },
["T4006805_N1005"] = { pos = { x = 2180.791, y = 560.511, z = 586.466 }, rot = { x = 0.000, y = 300.000, z = 0.000 } },
["T4006809_kazuha"] = { pos = { x = -6.419, y = 144.409, z = 607.934 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006809_mona"] = { pos = { x = -7.563, y = 144.316, z = 607.229 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006809_paimon"] = { pos = { x = -10.442, y = 144.546, z = 608.703 }, rot = { x = 0.000, y = 30.000, z = 0.000 } },
["T4006809_player"] = { pos = { x = -10.015, y = 144.396, z = 608.106 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006809_xinyan"] = { pos = { x = -8.037, y = 144.520, z = 608.961 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006902_kazuha"] = { pos = { x = -6.756, y = 144.765, z = 609.364 }, rot = { x = 0.000, y = 346.408, z = 0.000 } },
["T4006902_mona"] = { pos = { x = -5.676, y = 144.620, z = 609.371 }, rot = { x = 0.000, y = 334.265, z = 0.000 } },
["T4006902_paimon"] = { pos = { x = -3.672, y = 144.308, z = 611.779 }, rot = { x = 0.000, y = 294.809, z = 0.000 } },
["T4006902_player"] = { pos = { x = -4.003, y = 144.298, z = 610.907 }, rot = { x = 0.000, y = 306.029, z = 0.000 } },
["T4006902_xinyan"] = { pos = { x = -5.695, y = 144.645, z = 611.312 }, rot = { x = 0.000, y = 326.273, z = 0.000 } },
["T4006903_N10000005"] = { pos = { x = 217.275, y = 131.764, z = 2081.620 }, rot = { x = 0.000, y = 66.507, z = 0.000 } },
["T4006903_N1005"] = { pos = { x = 217.196, y = 131.764, z = 2082.545 }, rot = { x = 0.000, y = 101.309, z = 0.000 } },
["T4006904_kazuha"] = { pos = { x = 298.294, y = 152.279, z = 2028.492 }, rot = { x = 0.000, y = 183.425, z = 0.000 } },
["T4006904_mona"] = { pos = { x = 297.005, y = 152.190, z = 2028.976 }, rot = { x = 0.000, y = 174.189, z = 0.000 } },
["T4006904_paimon"] = { pos = { x = 293.801, y = 152.229, z = 2027.887 }, rot = { x = 0.000, y = 144.890, z = 0.000 } },
["T4006904_player"] = { pos = { x = 294.682, y = 152.169, z = 2028.719 }, rot = { x = 0.000, y = 162.076, z = 0.000 } },
["T4006904_xinyan"] = { pos = { x = 295.937, y = 152.316, z = 2027.228 }, rot = { x = 0.000, y = 170.000, z = 0.000 } },
["T4006906_kazuha"] = { pos = { x = 382.634, y = 140.068, z = 2008.207 }, rot = { x = 0.000, y = 135.000, z = 0.000 } },
["T4006906_mona"] = { pos = { x = 381.997, y = 140.123, z = 2007.434 }, rot = { x = 0.000, y = 135.000, z = 0.000 } },
["T4006906_paimon"] = { pos = { x = 385.656, y = 140.144, z = 2008.599 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006906_player"] = { pos = { x = 375.739, y = 141.179, z = 2037.496 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006906_xinyan"] = { pos = { x = 383.830, y = 140.085, z = 2007.335 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["T4006907_N10000005"] = { pos = { x = 433.520, y = 139.930, z = 1992.231 }, rot = { x = 0.000, y = 30.000, z = 0.000 } },
["T4006907_N1005"] = { pos = { x = 434.406, y = 139.932, z = 1991.823 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006907_N10095"] = { pos = { x = 431.519, y = 139.917, z = 1993.389 }, rot = { x = 0.000, y = 60.000, z = 0.000 } },
["T4006907_N1032"] = { pos = { x = 432.333, y = 139.912, z = 1992.446 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006907_N1042"] = { pos = { x = 433.406, y = 139.930, z = 1994.327 }, rot = { x = 0.000, y = 60.000, z = 0.000 } },
["T4006908_kazuha"] = { pos = { x = 398.107, y = 144.040, z = 1979.512 }, rot = { x = 0.000, y = 120.000, z = 0.000 } },
["T4006908_mona"] = { pos = { x = 398.644, y = 144.007, z = 1980.254 }, rot = { x = 0.000, y = 120.000, z = 0.000 } },
["T4006908_N10000005"] = { pos = { x = 400.031, y = 143.752, z = 1980.809 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006908_N1005"] = { pos = { x = 400.855, y = 144.064, z = 1980.674 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006912_N1005"] = { pos = { x = 1061.269, y = -388.461, z = 2114.685 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006912_N10095"] = { pos = { x = 1063.077, y = -388.461, z = 2114.896 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006912_N1032"] = { pos = { x = 1060.854, y = -388.461, z = 2113.679 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006912_player"] = { pos = { x = 1061.905, y = -388.461, z = 2114.941 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006912_xinyan"] = { pos = { x = 1067.118, y = -388.461, z = 2102.357 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["T4006912_yunjin"] = { pos = { x = 1068.661, y = -388.461, z = 2101.787 }, rot = { x = 0.000, y = 300.000, z = 0.000 } },
["T4006914_N10000005"] = { pos = { x = 371.683, y = 139.909, z = 1952.475 }, rot = { x = 0.000, y = 160.000, z = 0.000 } },
["T4006914_N1005"] = { pos = { x = 372.704, y = 139.909, z = 1953.094 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006914_N10095"] = { pos = { x = 369.588, y = 139.985, z = 1952.751 }, rot = { x = 0.000, y = 120.000, z = 0.000 } },
["T4006914_N1032"] = { pos = { x = 370.084, y = 139.926, z = 1953.874 }, rot = { x = 0.000, y = 135.000, z = 0.000 } },
["T4006914_N1042"] = { pos = { x = 373.791, y = 140.002, z = 1952.136 }, rot = { x = 0.000, y = 240.000, z = 0.000 } },
["T4007004_paimon"] = { pos = { x = -4.123, y = 144.337, z = 611.193 }, rot = { x = 0.000, y = 300.000, z = 0.000 } },
["T4007004_player"] = { pos = { x = -4.987, y = 144.487, z = 610.354 }, rot = { x = 0.000, y = 330.000, z = 0.000 } },
["T4007005_kazuha"] = { pos = { x = -78.886, y = 210.226, z = 586.885 }, rot = { x = 0.000, y = 260.000, z = 0.000 } },
["T4007005_mona"] = { pos = { x = -78.753, y = 210.351, z = 585.599 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["T4007005_paimon"] = { pos = { x = -83.246, y = 210.145, z = 589.650 }, rot = { x = 0.000, y = 240.000, z = 0.000 } },
["T4007005_player"] = { pos = { x = -82.313, y = 209.986, z = 588.391 }, rot = { x = 0.000, y = 230.000, z = 0.000 } },
["T4007005_xinyan"] = { pos = { x = -82.537, y = 209.833, z = 586.905 }, rot = { x = 0.000, y = 230.000, z = 0.000 } },
["T4007019_N10000005"] = { pos = { x = -79.659, y = 210.105, z = 586.731 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["T4007019_N1005"] = { pos = { x = -79.453, y = 210.219, z = 585.707 }, rot = { x = 0.000, y = 270.000, z = 0.000 } }
}
@@ -0,0 +1,126 @@
-- 基础信息
local base_info = {
group_id = 220133001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70360001, pos = { x = 1061.834, y = -388.308, z = 2116.638 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "GADGET_CREATE_1002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1002", action = "action_EVENT_GADGET_CREATE_1002", trigger_count = 0 },
{ config_id = 1001003, name = "SELECT_OPTION_1003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1003", action = "action_EVENT_SELECT_OPTION_1003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001 },
regions = { },
triggers = { "GADGET_CREATE_1002", "SELECT_OPTION_1003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1002(context, evt)
if 1001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220133001, 1001, {199}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1003(context, evt)
-- 判断是gadgetid 1001 option_id 199
if 1001 ~= evt.param1 then
return false
end
if 199 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1003(context, evt)
-- 将使用操作台的玩家传送至目标点
if evt.uid ~= nil then
local t_pos = {x=493.06, y=174.68, z=1880.56}
if 0 ~= ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = t_pos, rot = {x=0, y=100, z=0}}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
else
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
return 0
end
@@ -0,0 +1,168 @@
-- 基础信息
local base_info = {
group_id = 220133002
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[2001] = { config_id = 2001, gadget_id = 70690001, pos = { x = 5035.966, y = 537.398, z = -1709.172 }, rot = { x = 345.359, y = 342.696, z = 358.323 }, level = 1 },
-- 大花-水平转动
[2004] = { config_id = 2004, gadget_id = 70310169, pos = { x = 5039.584, y = 533.182, z = -1720.881 }, rot = { x = 23.971, y = 341.551, z = 358.225 }, level = 20, persistent = true },
-- 传音花风场
[2009] = { config_id = 2009, gadget_id = 70310341, pos = { x = 5039.653, y = 534.510, z = -1720.972 }, rot = { x = 345.359, y = 342.696, z = 358.323 }, level = 20 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1 and 花大=0
{ config_id = 1002010, name = "VARIABLE_CHANGE_2010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2010", action = "action_EVENT_VARIABLE_CHANGE_2010", trigger_count = 0 },
-- WindTimeA
{ config_id = 1002012, name = "TIME_AXIS_PASS_2012", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_2012", action = "action_EVENT_TIME_AXIS_PASS_2012", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1002011, name = "TIME_AXIS_PASS_2011", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_2011", action = "action_EVENT_TIME_AXIS_PASS_2011", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2004 },
regions = { },
triggers = { "VARIABLE_CHANGE_2010", "TIME_AXIS_PASS_2012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2001, 2009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 220133002, 2004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2010(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133002, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_2012(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2012(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133002, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,216 @@
-- 基础信息
local base_info = {
group_id = 220133003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 21010501, pos = { x = 2423.974, y = 533.128, z = -1786.863 }, rot = { x = 0.000, y = 32.908, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 3003, monster_id = 21010501, pos = { x = 2417.353, y = 533.080, z = -1787.336 }, rot = { x = 0.000, y = 56.534, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 3008, monster_id = 22010101, pos = { x = 2434.768, y = 536.701, z = -1792.858 }, rot = { x = 0.000, y = 261.733, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 3009, monster_id = 21010501, pos = { x = 2434.594, y = 536.180, z = -1796.112 }, rot = { x = 0.000, y = 261.733, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 3010, monster_id = 21010401, pos = { x = 2422.546, y = 533.026, z = -1781.536 }, rot = { x = 0.000, y = 68.169, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 3011, monster_id = 21010401, pos = { x = 2422.546, y = 533.026, z = -1781.536 }, rot = { x = 0.000, y = 68.169, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3004, gadget_id = 70211102, pos = { x = 2433.056, y = 532.937, z = -1779.814 }, rot = { x = 0.000, y = 270.750, z = 0.000 }, level = 16, drop_tag = "解谜低级群岛", state = GadgetState.ChestTrap, isOneoff = true, persistent = true },
{ config_id = 3012, gadget_id = 70220026, pos = { x = 2442.382, y = 537.138, z = -1796.237 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70310001, pos = { x = 2416.347, y = 533.082, z = -1783.330 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3014, gadget_id = 70310001, pos = { x = 2414.223, y = 533.082, z = -1790.009 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3015, gadget_id = 70310001, pos = { x = 2451.268, y = 536.756, z = -1782.696 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3016, gadget_id = 70310001, pos = { x = 2454.318, y = 536.662, z = -1785.908 }, rot = { x = 351.288, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 3005, shape = RegionShape.SPHERE, radius = 3.5, pos = { x = 2433.056, y = 532.937, z = -1779.814 } }
}
-- 触发器
triggers = {
{ config_id = 1003005, name = "ENTER_REGION_3005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3005", action = "action_EVENT_ENTER_REGION_3005" },
-- 开宝箱
{ config_id = 1003006, name = "ANY_MONSTER_DIE_3006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3006", action = "action_EVENT_ANY_MONSTER_DIE_3006", trigger_count = 0 },
-- Wave++
{ config_id = 1003007, name = "ANY_MONSTER_DIE_3007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3007", action = "action_EVENT_ANY_MONSTER_DIE_3007", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "Wave", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1003002, name = "GROUP_LOAD_3002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_3002", action = "action_EVENT_GROUP_LOAD_3002", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3004, 3012, 3013, 3014, 3015, 3016 },
regions = { 3005 },
triggers = { "ENTER_REGION_3005", "ANY_MONSTER_DIE_3006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3001, 3003, 3010, 3011 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3006", "ANY_MONSTER_DIE_3007" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 3008, 3009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3005(context, evt)
if evt.param1 ~= 3005 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_3005(context, evt)
-- 将configid为 3004 的物件更改为状态 GadgetState.ChestLocked
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3004, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133003, 2)
-- 触发镜头注目,注目位置为坐标(2416.271533.0818-1789.001),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=2416.271, y=533.0818, z=-1789.001}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, 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
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"Wave"为1
if ScriptLib.GetGroupVariableValue(context, "Wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3006(context, evt)
-- 将configid为 3004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"Wave"为0
if ScriptLib.GetGroupVariableValue(context, "Wave") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 针对当前group内变量名为 "Wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220133003, 3)
-- 触发镜头注目,注目位置为坐标(2436.744537.1246-1792.699),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=2436.744, y=537.1246, z=-1792.699}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, 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
return 0
end
@@ -0,0 +1,176 @@
-- 基础信息
local base_info = {
group_id = 220133004
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[4001] = { config_id = 4001, gadget_id = 70690001, pos = { x = 2531.791, y = 556.698, z = -1733.271 }, rot = { x = 342.098, y = 171.215, z = 1.339 }, level = 1 },
[4002] = { config_id = 4002, gadget_id = 70690001, pos = { x = 2536.736, y = 560.182, z = -1744.803 }, rot = { x = 341.602, y = 127.249, z = 1.766 }, level = 1 },
[4003] = { config_id = 4003, gadget_id = 70310170, pos = { x = 2515.384, y = 552.383, z = -1715.091 }, rot = { x = 1.975, y = 163.740, z = 357.379 }, level = 1, persistent = true },
-- 大花-水平转动
[4004] = { config_id = 4004, gadget_id = 70310169, pos = { x = 2529.000, y = 552.650, z = -1723.946 }, rot = { x = 1.885, y = 186.883, z = 355.169 }, level = 20, persistent = true },
[4005] = { config_id = 4005, gadget_id = 70690001, pos = { x = 2550.541, y = 562.860, z = -1751.779 }, rot = { x = 349.115, y = 90.728, z = 1.331 }, level = 1 },
[4006] = { config_id = 4006, gadget_id = 70690001, pos = { x = 2562.108, y = 564.432, z = -1753.509 }, rot = { x = 349.094, y = 103.621, z = 3.608 }, level = 1 },
[4007] = { config_id = 4007, gadget_id = 70310170, pos = { x = 2523.223, y = 552.663, z = -1715.326 }, rot = { x = 1.793, y = 273.677, z = 2.749 }, level = 1, persistent = true },
[4008] = { config_id = 4008, gadget_id = 70690011, pos = { x = 2578.822, y = 561.595, z = -1759.070 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 传音花风场
[4009] = { config_id = 4009, gadget_id = 70310341, pos = { x = 2529.363, y = 554.457, z = -1724.229 }, rot = { x = 340.657, y = 167.502, z = 0.262 }, level = 20 },
[4013] = { config_id = 4013, gadget_id = 70211164, pos = { x = 2516.334, y = 552.672, z = -1719.842 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, drop_tag = "解谜低级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
[4014] = { config_id = 4014, gadget_id = 70310170, pos = { x = 2518.861, y = 552.574, z = -1724.459 }, rot = { x = 357.846, y = 85.788, z = 357.523 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1 and 花大=0
{ config_id = 1004010, name = "VARIABLE_CHANGE_4010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_4010", action = "action_EVENT_VARIABLE_CHANGE_4010", trigger_count = 0 },
-- WindTimeA
{ config_id = 1004012, name = "TIME_AXIS_PASS_4012", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_4012", action = "action_EVENT_TIME_AXIS_PASS_4012", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1004011, name = "TIME_AXIS_PASS_4011", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_4011", action = "action_EVENT_TIME_AXIS_PASS_4011", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4003, 4004, 4007, 4013, 4014 },
regions = { },
triggers = { "VARIABLE_CHANGE_4010", "TIME_AXIS_PASS_4012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4005, 4006, 4008, 4009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 220133004, 4004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4010(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133004, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_4012(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_4012(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133004, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,175 @@
-- 基础信息
local base_info = {
group_id = 220133005
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[5001] = { config_id = 5001, gadget_id = 70690001, pos = { x = 2482.055, y = 537.316, z = -1761.766 }, rot = { x = 338.489, y = 69.904, z = 3.446 }, level = 1 },
[5002] = { config_id = 5002, gadget_id = 70690001, pos = { x = 2493.051, y = 540.799, z = -1755.720 }, rot = { x = 341.602, y = 31.658, z = 1.766 }, level = 1 },
[5003] = { config_id = 5003, gadget_id = 70310170, pos = { x = 2462.628, y = 535.859, z = -1778.340 }, rot = { x = 14.400, y = 357.694, z = 358.895 }, level = 1, persistent = true },
-- 大花-水平转动
[5004] = { config_id = 5004, gadget_id = 70310169, pos = { x = 2473.018, y = 533.229, z = -1765.148 }, rot = { x = 359.355, y = 62.919, z = 5.384 }, level = 20, persistent = true },
[5005] = { config_id = 5005, gadget_id = 70690001, pos = { x = 2498.649, y = 543.477, z = -1741.301 }, rot = { x = 349.115, y = 355.136, z = 1.331 }, level = 1 },
[5006] = { config_id = 5006, gadget_id = 70310171, pos = { x = 2464.225, y = 536.088, z = -1778.531 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, interact_id = 64 },
[5007] = { config_id = 5007, gadget_id = 70310170, pos = { x = 2462.318, y = 534.172, z = -1769.826 }, rot = { x = 358.275, y = 117.992, z = 358.342 }, level = 1, persistent = true },
[5008] = { config_id = 5008, gadget_id = 70690011, pos = { x = 2496.364, y = 523.799, z = -1733.433 }, rot = { x = 0.000, y = 264.408, z = 0.000 }, level = 1 },
-- 传音花风场
[5009] = { config_id = 5009, gadget_id = 70310341, pos = { x = 2473.294, y = 535.074, z = -1765.063 }, rot = { x = 340.657, y = 71.910, z = 0.262 }, level = 20 },
[5011] = { config_id = 5011, gadget_id = 70310170, pos = { x = 2470.625, y = 535.122, z = -1774.441 }, rot = { x = 10.650, y = 10.135, z = 358.691 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1 and 花大=0
{ config_id = 1005012, name = "VARIABLE_CHANGE_5012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5012", action = "action_EVENT_VARIABLE_CHANGE_5012", trigger_count = 0 },
-- WindTimeA
{ config_id = 1005014, name = "TIME_AXIS_PASS_5014", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_5014", action = "action_EVENT_TIME_AXIS_PASS_5014", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1005013, name = "TIME_AXIS_PASS_5013", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_5013", action = "action_EVENT_TIME_AXIS_PASS_5013", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5003, 5004, 5006, 5007, 5011 },
regions = { },
triggers = { "VARIABLE_CHANGE_5012", "TIME_AXIS_PASS_5014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5001, 5002, 5005, 5008, 5009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 220133005, 5004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5012(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133005, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_5014(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_5014(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133005, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,491 @@
-- 基础信息
local base_info = {
group_id = 220133006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70310242, pos = { x = 4353.612, y = 533.850, z = 240.350 }, rot = { x = 8.695, y = 312.790, z = 350.241 }, level = 1, interact_id = 64 },
{ config_id = 6002, gadget_id = 70310242, pos = { x = 4324.817, y = 537.676, z = 271.043 }, rot = { x = 355.736, y = 261.914, z = 5.687 }, level = 1, interact_id = 64 },
-- 浮石B
{ config_id = 6003, gadget_id = 70380320, pos = { x = 4332.400, y = 536.540, z = 248.270 }, rot = { x = 358.900, y = 333.589, z = 355.168 }, level = 1, route_id = 22, start_route = false },
-- 浮石A
{ config_id = 6004, gadget_id = 70380320, pos = { x = 4356.940, y = 535.130, z = 260.040 }, rot = { x = 355.352, y = 359.420, z = 356.935 }, level = 1, route_id = 16, start_route = false },
-- 浮石C
{ config_id = 6008, gadget_id = 70380320, pos = { x = 4342.980, y = 531.940, z = 269.840 }, rot = { x = 358.900, y = 90.710, z = 355.168 }, level = 1, route_id = 23, start_route = false },
-- 浮石D
{ config_id = 6022, gadget_id = 70380320, pos = { x = 4324.590, y = 532.190, z = 258.880 }, rot = { x = 0.086, y = 35.367, z = 352.973 }, level = 1, route_id = 24, start_route = false }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006016, name = "GROUP_LOAD_6016", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_6016", trigger_count = 0 },
-- 运营埋点
{ config_id = 1006017, name = "GADGET_STATE_CHANGE_6017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6017", action = "action_EVENT_GADGET_STATE_CHANGE_6017", trigger_count = 0 },
-- 运营埋点
{ config_id = 1006018, name = "GADGET_STATE_CHANGE_6018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6018", action = "action_EVENT_GADGET_STATE_CHANGE_6018", trigger_count = 0 },
-- A X-2
{ config_id = 1006019, name = "PLATFORM_ARRIVAL_6019", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_6019", action = "action_EVENT_PLATFORM_ARRIVAL_6019", trigger_count = 0 },
-- B X-2
{ config_id = 1006020, name = "PLATFORM_ARRIVAL_6020", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_6020", action = "action_EVENT_PLATFORM_ARRIVAL_6020", trigger_count = 0 },
-- C X-2
{ config_id = 1006024, name = "PLATFORM_ARRIVAL_6024", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_6024", action = "action_EVENT_PLATFORM_ARRIVAL_6024", trigger_count = 0 },
-- D X-2
{ config_id = 1006025, name = "PLATFORM_ARRIVAL_6025", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_6025", action = "action_EVENT_PLATFORM_ARRIVAL_6025", trigger_count = 0 },
-- 201+变量为0 启动平台+变量设1(Final)
{ config_id = 1006027, name = "GADGET_STATE_CHANGE_6027", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_6027", trigger_count = 0 },
-- A y-0
{ config_id = 1006028, name = "PLATFORM_ARRIVAL_6028", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_6028", action = "action_EVENT_PLATFORM_ARRIVAL_6028", trigger_count = 0 },
-- A y-0
{ config_id = 1006029, name = "PLATFORM_ARRIVAL_6029", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_6029", action = "action_EVENT_PLATFORM_ARRIVAL_6029", trigger_count = 0 },
-- A y-0
{ config_id = 1006030, name = "PLATFORM_ARRIVAL_6030", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_6030", action = "action_EVENT_PLATFORM_ARRIVAL_6030", trigger_count = 0 },
-- A y-0
{ config_id = 1006031, name = "PLATFORM_ARRIVAL_6031", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_6031", action = "action_EVENT_PLATFORM_ARRIVAL_6031", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "StoneReadyA", value = 0, no_refresh = false },
{ config_id = 2, name = "StoneReadyB", value = 0, no_refresh = false },
{ config_id = 3, name = "StoneReadyC", value = 0, no_refresh = false },
{ config_id = 4, name = "StoneReadyD", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 6005, gadget_id = 70380320, pos = { x = 4348.770, y = 532.220, z = 248.340 }, rot = { x = 355.352, y = 359.420, z = 356.935 }, level = 1, route_id = 7, start_route = false },
{ config_id = 6006, gadget_id = 70380320, pos = { x = 4341.210, y = 533.320, z = 253.960 }, rot = { x = 351.033, y = 277.877, z = 7.188 }, level = 1, route_id = 15, start_route = false },
{ config_id = 6021, gadget_id = 70380320, pos = { x = 4337.210, y = 535.020, z = 260.980 }, rot = { x = 359.392, y = 317.978, z = 353.407 }, level = 1, route_id = 7, start_route = false },
{ config_id = 6023, gadget_id = 70380320, pos = { x = 4329.600, y = 536.679, z = 266.420 }, rot = { x = 1.442, y = 278.324, z = 11.184 }, level = 1, route_id = 7, start_route = false }
},
triggers = {
{ config_id = 1006007, name = "GADGET_STATE_CHANGE_6007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_6007", trigger_count = 0 },
{ config_id = 1006009, name = "GADGET_STATE_CHANGE_6009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6009", action = "action_EVENT_GADGET_STATE_CHANGE_6009", trigger_count = 0 },
{ config_id = 1006010, name = "GADGET_STATE_CHANGE_6010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6010", action = "action_EVENT_GADGET_STATE_CHANGE_6010", trigger_count = 0 },
{ config_id = 1006011, name = "GADGET_STATE_CHANGE_6011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6011", action = "action_EVENT_GADGET_STATE_CHANGE_6011", trigger_count = 0 },
{ config_id = 1006012, name = "PLATFORM_REACH_POINT_6012", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_6012", action = "action_EVENT_PLATFORM_REACH_POINT_6012", trigger_count = 0 },
{ config_id = 1006013, name = "PLATFORM_REACH_POINT_6013", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_6013", action = "action_EVENT_PLATFORM_REACH_POINT_6013", trigger_count = 0 },
{ config_id = 1006014, name = "GADGET_STATE_CHANGE_6014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6014", action = "action_EVENT_GADGET_STATE_CHANGE_6014", trigger_count = 0 },
{ config_id = 1006015, name = "GADGET_STATE_CHANGE_6015", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6015", action = "action_EVENT_GADGET_STATE_CHANGE_6015", trigger_count = 0 },
{ config_id = 1006026, name = "GADGET_STATE_CHANGE_6026", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_6026", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6003, 6004, 6008, 6022 },
regions = { },
triggers = { "GROUP_LOAD_6016", "GADGET_STATE_CHANGE_6017", "GADGET_STATE_CHANGE_6018", "PLATFORM_ARRIVAL_6019", "PLATFORM_ARRIVAL_6020", "PLATFORM_ARRIVAL_6024", "PLATFORM_ARRIVAL_6025", "GADGET_STATE_CHANGE_6027", "PLATFORM_ARRIVAL_6028", "PLATFORM_ARRIVAL_6029", "PLATFORM_ARRIVAL_6030", "PLATFORM_ARRIVAL_6031" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_6016(context, evt)
-- 将本组内变量名为 "StoneReadyA" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "StoneReadyB" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "StoneReadyC" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyC", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "StoneReadyD" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyD", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6017(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133006, 6001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6017(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2801, 2, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6018(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133006, 6002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6018(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2801, 2, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_6019(context, evt)
-- 判断是gadgetid 为 6004的移动平台,是否到达了16 的路线中的 0 点
if 6004 ~= evt.param1 then
return false
end
if 16 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_6019(context, evt)
-- 将本组内变量名为 "StoneReadyA" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_6020(context, evt)
-- 判断是gadgetid 为 6003的移动平台,是否到达了22 的路线中的 0 点
if 6003 ~= evt.param1 then
return false
end
if 22 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_6020(context, evt)
-- 将本组内变量名为 "StoneReadyB" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_6024(context, evt)
-- 判断是gadgetid 为 6008的移动平台,是否到达了23 的路线中的 0 点
if 6008 ~= evt.param1 then
return false
end
if 23 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_6024(context, evt)
-- 将本组内变量名为 "StoneReadyC" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyC", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_6025(context, evt)
-- 判断是gadgetid 为 6022的移动平台,是否到达了24 的路线中的 0 点
if 6022 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_6025(context, evt)
-- 将本组内变量名为 "StoneReadyD" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyD", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6027(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 220133006, 6001) == 201 or ScriptLib.GetGadgetStateByConfigId(context, 220133006, 6002) == 201 then
if ScriptLib.GetGroupVariableValue(context, "StoneReadyA") == 0 and ScriptLib.GetGroupVariableValue(context, "StoneReadyB") == 0 and ScriptLib.GetGroupVariableValue(context, "StoneReadyC") == 0 and ScriptLib.GetGroupVariableValue(context, "StoneReadyD") == 0 then
ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 1)
ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 1)
ScriptLib.SetGroupVariableValue(context, "StoneReadyC", 1)
ScriptLib.SetGroupVariableValue(context, "StoneReadyD", 1)
ScriptLib.SetPlatformRouteId(context, 6004, 16)
ScriptLib.SetPlatformRouteId(context, 6003, 22)
ScriptLib.SetPlatformRouteId(context, 6008, 23)
ScriptLib.SetPlatformRouteId(context, 6022, 24)
ScriptLib.StartPlatform(context, 6004)
ScriptLib.StartPlatform(context, 6003)
ScriptLib.StartPlatform(context, 6008)
ScriptLib.StartPlatform(context, 6022)
else
if ScriptLib.GetGroupVariableValue(context, "StoneReadyA") == 2 and ScriptLib.GetGroupVariableValue(context, "StoneReadyB") == 2 and ScriptLib.GetGroupVariableValue(context, "StoneReadyC") == 2 and ScriptLib.GetGroupVariableValue(context, "StoneReadyD") == 2 then
ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 1)
ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 1)
ScriptLib.SetGroupVariableValue(context, "StoneReadyC", 1)
ScriptLib.SetGroupVariableValue(context, "StoneReadyD", 1)
ScriptLib.SetPlatformRouteId(context, 6004, 21)
ScriptLib.SetPlatformRouteId(context, 6003, 25)
ScriptLib.SetPlatformRouteId(context, 6008, 26)
ScriptLib.SetPlatformRouteId(context, 6022, 27)
ScriptLib.StartPlatform(context, 6004)
ScriptLib.StartPlatform(context, 6003)
ScriptLib.StartPlatform(context, 6008)
ScriptLib.StartPlatform(context, 6022)
end
end
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_6028(context, evt)
-- 判断是gadgetid 为 6004的移动平台,是否到达了21 的路线中的 0 点
if 6004 ~= evt.param1 then
return false
end
if 21 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_6028(context, evt)
-- 将本组内变量名为 "StoneReadyA" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_6029(context, evt)
-- 判断是gadgetid 为 6003的移动平台,是否到达了25 的路线中的 0 点
if 6003 ~= evt.param1 then
return false
end
if 25 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_6029(context, evt)
-- 将本组内变量名为 "StoneReadyB" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_6030(context, evt)
-- 判断是gadgetid 为 6008的移动平台,是否到达了26 的路线中的 0 点
if 6008 ~= evt.param1 then
return false
end
if 26 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_6030(context, evt)
-- 将本组内变量名为 "StoneReadyC" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyC", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_6031(context, evt)
-- 判断是gadgetid 为 6022的移动平台,是否到达了27 的路线中的 0 点
if 6022 ~= evt.param1 then
return false
end
if 27 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_6031(context, evt)
-- 将本组内变量名为 "StoneReadyD" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyD", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
@@ -0,0 +1,179 @@
-- 基础信息
local base_info = {
group_id = 220133007
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[7001] = { config_id = 7001, gadget_id = 70310341, pos = { x = 4325.820, y = 551.065, z = 175.264 }, rot = { x = 330.528, y = 245.126, z = 358.826 }, level = 1 },
[7002] = { config_id = 7002, gadget_id = 70310171, pos = { x = 4327.550, y = 549.458, z = 175.707 }, rot = { x = 1.577, y = 344.426, z = 340.926 }, level = 1, persistent = true, interact_id = 64 },
-- 大花-水平转动
[7003] = { config_id = 7003, gadget_id = 70310169, pos = { x = 4325.435, y = 549.784, z = 175.057 }, rot = { x = 10.507, y = 244.359, z = 358.961 }, level = 20, persistent = true },
[7012] = { config_id = 7012, gadget_id = 70690001, pos = { x = 4317.633, y = 555.654, z = 171.458 }, rot = { x = 330.528, y = 245.126, z = 358.826 }, level = 1 },
[7013] = { config_id = 7013, gadget_id = 70690001, pos = { x = 4307.169, y = 560.350, z = 166.389 }, rot = { x = 330.528, y = 245.126, z = 353.622 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1
{ config_id = 1007006, name = "VARIABLE_CHANGE_7006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_7006", action = "action_EVENT_VARIABLE_CHANGE_7006", trigger_count = 0 },
-- WindTimeA
{ config_id = 1007008, name = "TIME_AXIS_PASS_7008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_7008", action = "action_EVENT_TIME_AXIS_PASS_7008", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1007004, name = "GADGET_STATE_CHANGE_7004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7004", action = "action_EVENT_GADGET_STATE_CHANGE_7004", trigger_count = 0 },
{ config_id = 1007005, name = "GADGET_STATE_CHANGE_7005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7005", action = "action_EVENT_GADGET_STATE_CHANGE_7005", trigger_count = 0 },
{ config_id = 1007007, name = "TIME_AXIS_PASS_7007", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_7007", action = "action_EVENT_TIME_AXIS_PASS_7007", trigger_count = 0 },
{ config_id = 1007009, name = "VARIABLE_CHANGE_7009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_7009", action = "action_EVENT_VARIABLE_CHANGE_7009", trigger_count = 0 },
{ config_id = 1007010, name = "TIME_AXIS_PASS_7010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_7010", action = "action_EVENT_TIME_AXIS_PASS_7010", trigger_count = 0 },
{ config_id = 1007011, name = "TIME_AXIS_PASS_7011", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_7011", action = "action_EVENT_TIME_AXIS_PASS_7011", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7002, 7003 },
regions = { },
triggers = { "VARIABLE_CHANGE_7006", "TIME_AXIS_PASS_7008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7001, 7012, 7013 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_7006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_7006(context, evt)
-- 创建标识为"WindTimeA",时间节点为{16}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {16}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133007, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_7008(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_7008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133007, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220133008
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[8001] = 7
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 8001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 10.735, y = 161.492, z = 571.767 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1008001, name = "ENTER_REGION_8001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 8001 },
triggers = { "ENTER_REGION_8001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_8001(context, evt)
if evt.param1 ~= 8001 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
require "CheckPoint_Handler"
@@ -0,0 +1,213 @@
-- 基础信息
local base_info = {
group_id = 220133009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 9001, gadget_id = 70290286, pos = { x = 5048.340, y = 537.560, z = -1740.160 }, rot = { x = 8.283, y = 1.704, z = 2.290 }, level = 1, state = GadgetState.GearStop, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 125} },
{ config_id = 9002, gadget_id = 70290264, pos = { x = 5048.340, y = 537.560, z = -1740.160 }, rot = { x = 8.283, y = 1.704, z = 2.290 }, level = 1 },
-- 交钥匙解锁门 interactID126
{ config_id = 9005, gadget_id = 70310172, pos = { x = 5048.340, y = 537.560, z = -1740.160 }, rot = { x = 8.283, y = 1.704, z = 2.290 }, level = 1, isOneoff = true, interact_id = 126 }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 9006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 5048.340, y = 537.560, z = -1740.160 } }
}
-- 触发器
triggers = {
-- 隐形交付台交付 解锁门
{ config_id = 1009003, name = "GADGET_STATE_CHANGE_9003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_9003", action = "action_EVENT_GADGET_STATE_CHANGE_9003", trigger_count = 0 },
-- 门开后 创localTrigger
{ config_id = 1009004, name = "GADGET_STATE_CHANGE_9004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_9004", action = "action_EVENT_GADGET_STATE_CHANGE_9004", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1009006, name = "LEAVE_REGION_9006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_9006", action = "action_EVENT_LEAVE_REGION_9006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1009007, name = "GADGET_CREATE_9007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9007", action = "action_EVENT_GADGET_CREATE_9007", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1009008, name = "TIME_AXIS_PASS_9008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_9008", action = "action_EVENT_TIME_AXIS_PASS_9008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9005 },
regions = { 9006 },
triggers = { "GADGET_STATE_CHANGE_9003", "GADGET_STATE_CHANGE_9004", "LEAVE_REGION_9006", "GADGET_CREATE_9007", "TIME_AXIS_PASS_9008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_9003(context, evt)
-- 检测config_id为9005的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 9005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_9003(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 9005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_9004(context, evt)
-- 检测config_id为9001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 9001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_9004(context, evt)
-- 创建id为9002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 9002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_9006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133009, 9001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_9006(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133009, EntityType.GADGET, 9002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_9007(context, evt)
if 9001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9007(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_9008(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_9008(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133009, EntityType.GADGET, 9002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220133010
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[10001] = 11
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 10001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 36.352, y = 157.107, z = 537.241 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1010001, name = "ENTER_REGION_10001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 10001 },
triggers = { "ENTER_REGION_10001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10001(context, evt)
if evt.param1 ~= 10001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220133011
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[11001] = 13
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 11001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 218.709, y = 131.767, z = 2082.107 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1011001, name = "ENTER_REGION_11001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 11001 },
triggers = { "ENTER_REGION_11001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11001(context, evt)
if evt.param1 ~= 11001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220133012
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[12001] = 14
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 12001, shape = RegionShape.SPHERE, radius = 10, pos = { x = -4.033, y = 144.164, z = 608.689 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1012001, name = "ENTER_REGION_12001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 12001 },
triggers = { "ENTER_REGION_12001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_12001(context, evt)
if evt.param1 ~= 12001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220133013
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[13001] = 17
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 13001, shape = RegionShape.SPHERE, radius = 10, pos = { x = -81.186, y = 209.886, z = 588.342 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1013001, name = "ENTER_REGION_13001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 13001 },
triggers = { "ENTER_REGION_13001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_13001(context, evt)
if evt.param1 ~= 13001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220133014
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[14001] = 19
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 14001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 2374.616, y = 540.286, z = -1754.213 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1014001, name = "ENTER_REGION_14001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 14001 },
triggers = { "ENTER_REGION_14001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_14001(context, evt)
if evt.param1 ~= 14001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220133015
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[15001] = 23
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 15001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 4369.813, y = 536.372, z = 226.472 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1015001, name = "ENTER_REGION_15001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 15001 },
triggers = { "ENTER_REGION_15001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_15001(context, evt)
if evt.param1 ~= 15001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220133016
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[16001] = 28
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 16001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 5029.740, y = 540.684, z = -1826.172 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1016001, name = "ENTER_REGION_16001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 16001 },
triggers = { "ENTER_REGION_16001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_16001(context, evt)
if evt.param1 ~= 16001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220133017
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[17001] = 31
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 17001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 5048.692, y = 536.640, z = -1734.443 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1017001, name = "ENTER_REGION_17001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 17001 },
triggers = { "ENTER_REGION_17001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_17001(context, evt)
if evt.param1 ~= 17001 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
require "CheckPoint_Handler"
@@ -0,0 +1,80 @@
-- 基础信息
local base_info = {
group_id = 220133018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 18001, gadget_id = 70310169, pos = { x = 2261.374, y = 519.823, z = 474.608 }, rot = { x = 353.620, y = 359.290, z = 0.024 }, level = 1, persistent = true },
{ config_id = 18002, gadget_id = 70690013, pos = { x = 2261.949, y = 519.606, z = 479.601 }, rot = { x = 61.241, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18003, gadget_id = 70690010, pos = { x = 2261.173, y = 537.656, z = 542.966 }, rot = { x = 69.397, y = 329.422, z = 26.968 }, level = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,237 @@
-- 基础信息
local base_info = {
group_id = 220133019
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 19001, gadget_id = 70290286, pos = { x = 2170.328, y = 564.821, z = 598.710 }, rot = { x = 358.912, y = 140.043, z = 0.554 }, level = 1, state = GadgetState.GearStop, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 112} },
{ config_id = 19002, gadget_id = 70290264, pos = { x = 2170.328, y = 564.821, z = 598.710 }, rot = { x = 358.912, y = 140.043, z = 0.554 }, level = 1 },
-- 交钥匙解锁门 interactID126
{ config_id = 19003, gadget_id = 70310172, pos = { x = 2170.328, y = 564.821, z = 598.710 }, rot = { x = 358.912, y = 140.043, z = 0.554 }, level = 1, isOneoff = true, persistent = true, interact_id = 119 }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 19006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2170.328, y = 564.821, z = 598.710 } }
}
-- 触发器
triggers = {
-- 隐形交付台交付 解锁门
{ config_id = 1019004, name = "GADGET_STATE_CHANGE_19004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_19004", action = "action_EVENT_GADGET_STATE_CHANGE_19004", trigger_count = 0 },
-- 门开后 创localTrigger
{ config_id = 1019005, name = "GADGET_STATE_CHANGE_19005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_19005", action = "action_EVENT_GADGET_STATE_CHANGE_19005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1019006, name = "LEAVE_REGION_19006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_19006", action = "action_EVENT_LEAVE_REGION_19006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1019007, name = "GADGET_CREATE_19007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_19007", action = "action_EVENT_GADGET_CREATE_19007", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1019008, name = "TIME_AXIS_PASS_19008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_19008", action = "action_EVENT_TIME_AXIS_PASS_19008", trigger_count = 0 },
-- 保底4006805完成后才能交付
{ config_id = 1019009, name = "QUEST_FINISH_19009", event = EventType.EVENT_QUEST_FINISH, source = "4006805", condition = "", action = "action_EVENT_QUEST_FINISH_19009", trigger_count = 0 },
{ config_id = 1019010, name = "GROUP_LOAD_19010", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_19010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 19001 },
regions = { 19006 },
triggers = { "GADGET_STATE_CHANGE_19004", "GADGET_STATE_CHANGE_19005", "LEAVE_REGION_19006", "GADGET_CREATE_19007", "TIME_AXIS_PASS_19008", "QUEST_FINISH_19009", "GROUP_LOAD_19010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_19004(context, evt)
-- 检测config_id为19003的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 19003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_19004(context, evt)
-- 将configid为 19001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 19001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 19003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_19005(context, evt)
-- 检测config_id为19001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 19001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_19005(context, evt)
-- 创建id为19002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 19002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_19006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133019, 19001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_19006(context, evt)
-- 将configid为 19001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 19001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133019, EntityType.GADGET, 19002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_19007(context, evt)
if 19001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_19007(context, evt)
-- 将configid为 19001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 19001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_19008(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_19008(context, evt)
-- 将configid为 19001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 19001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133019, EntityType.GADGET, 19002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_19009(context, evt)
-- 创建id为19003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 19003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_19010(context, evt)
if ScriptLib.GetHostQuestState(context,4006805)==3 then
ScriptLib.CreateGadget(context, { config_id = 19003 })
end
return 0
end
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 220133020
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 20001, gadget_id = 70310206, pos = { x = 232.589, y = 134.525, z = 2073.222 }, rot = { x = 0.000, y = 298.598, z = 0.000 }, level = 1 },
{ config_id = 20003, gadget_id = 70310206, pos = { x = 254.527, y = 140.541, z = 2075.380 }, rot = { x = 0.000, y = 62.820, z = 0.000 }, level = 1 },
{ config_id = 20005, gadget_id = 70310206, pos = { x = 282.204, y = 147.452, z = 2080.895 }, rot = { x = 0.000, y = 146.408, z = 0.000 }, level = 1 },
{ config_id = 20007, gadget_id = 70310206, pos = { x = 291.018, y = 150.173, z = 2052.993 }, rot = { x = 0.000, y = 348.640, z = 0.000 }, level = 1 },
{ config_id = 20009, gadget_id = 70310206, pos = { x = 299.218, y = 150.583, z = 2039.273 }, rot = { x = 0.000, y = 335.430, z = 0.000 }, level = 1 },
{ config_id = 20011, gadget_id = 70310206, pos = { x = 294.443, y = 153.113, z = 2028.174 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
},
regions = {
{ config_id = 20002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 233.317, y = 134.525, z = 2072.912 } },
{ config_id = 20004, shape = RegionShape.SPHERE, radius = 5, pos = { x = 254.527, y = 140.541, z = 2075.380 } },
{ config_id = 20006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 282.204, y = 147.452, z = 2080.895 } },
{ config_id = 20008, shape = RegionShape.SPHERE, radius = 5, pos = { x = 291.018, y = 150.173, z = 2052.993 } },
{ config_id = 20010, shape = RegionShape.SPHERE, radius = 5, pos = { x = 299.218, y = 150.583, z = 2039.273 } }
},
triggers = {
{ config_id = 1020002, name = "ENTER_REGION_20002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20002", action = "action_EVENT_ENTER_REGION_20002" },
{ config_id = 1020004, name = "ENTER_REGION_20004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20004", action = "action_EVENT_ENTER_REGION_20004" },
{ config_id = 1020006, name = "ENTER_REGION_20006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20006", action = "action_EVENT_ENTER_REGION_20006" },
{ config_id = 1020008, name = "ENTER_REGION_20008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20008", action = "action_EVENT_ENTER_REGION_20008" },
{ config_id = 1020010, name = "ENTER_REGION_20010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20010", action = "action_EVENT_ENTER_REGION_20010" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,186 @@
-- 基础信息
local base_info = {
group_id = 220133021
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
[21013] = {0, 104, 103},
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[21001] = { config_id = 21001, gadget_id = 70310341, pos = { x = 4164.530, y = 589.100, z = 232.569 }, rot = { x = 321.733, y = 181.600, z = 358.977 }, level = 1 },
-- 大花-水平转动
[21002] = { config_id = 21002, gadget_id = 70310169, pos = { x = 4164.535, y = 587.976, z = 231.911 }, rot = { x = 1.922, y = 180.940, z = 359.197 }, level = 20, persistent = true },
[21003] = { config_id = 21003, gadget_id = 70690001, pos = { x = 4164.323, y = 594.950, z = 225.156 }, rot = { x = 321.733, y = 181.600, z = 358.977 }, level = 1 },
[21004] = { config_id = 21004, gadget_id = 70310170, pos = { x = 4173.305, y = 588.124, z = 223.048 }, rot = { x = 0.000, y = 104.551, z = 0.000 }, level = 1, persistent = true },
-- 0,104,103
[21013] = { config_id = 21013, gadget_id = 70310167, pos = { x = 4164.599, y = 588.061, z = 222.981 }, rot = { x = 0.000, y = 181.707, z = 0.000 }, level = 1, persistent = true },
[21014] = { config_id = 21014, gadget_id = 70310170, pos = { x = 4178.841, y = 588.085, z = 221.593 }, rot = { x = 22.573, y = 62.672, z = 0.729 }, level = 1, persistent = true },
[21015] = { config_id = 21015, gadget_id = 70310170, pos = { x = 4187.338, y = 584.406, z = 226.409 }, rot = { x = 21.642, y = 119.273, z = -0.003 }, level = 1, persistent = true },
[21016] = { config_id = 21016, gadget_id = 70310171, pos = { x = 4155.373, y = 588.117, z = 221.208 }, rot = { x = 0.000, y = 91.893, z = 0.000 }, level = 1, persistent = true, interact_id = 64 },
[21017] = { config_id = 21017, gadget_id = 70310170, pos = { x = 4155.992, y = 588.045, z = 222.996 }, rot = { x = 0.000, y = 89.975, z = 0.000 }, level = 1, persistent = true },
[21018] = { config_id = 21018, gadget_id = 70211165, pos = { x = 4164.717, y = 588.076, z = 214.099 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1
{ config_id = 1021007, name = "VARIABLE_CHANGE_21007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21007", action = "action_EVENT_VARIABLE_CHANGE_21007", trigger_count = 0 },
-- WindTimeA
{ config_id = 1021009, name = "TIME_AXIS_PASS_21009", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_21009", action = "action_EVENT_TIME_AXIS_PASS_21009", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1021005, name = "GADGET_STATE_CHANGE_21005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_21005", action = "action_EVENT_GADGET_STATE_CHANGE_21005", trigger_count = 0 },
{ config_id = 1021006, name = "GADGET_STATE_CHANGE_21006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_21006", action = "action_EVENT_GADGET_STATE_CHANGE_21006", trigger_count = 0 },
{ config_id = 1021008, name = "TIME_AXIS_PASS_21008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_21008", action = "action_EVENT_TIME_AXIS_PASS_21008", trigger_count = 0 },
{ config_id = 1021010, name = "VARIABLE_CHANGE_21010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21010", action = "action_EVENT_VARIABLE_CHANGE_21010", trigger_count = 0 },
{ config_id = 1021011, name = "TIME_AXIS_PASS_21011", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_21011", action = "action_EVENT_TIME_AXIS_PASS_21011", trigger_count = 0 },
{ config_id = 1021012, name = "TIME_AXIS_PASS_21012", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_21012", action = "action_EVENT_TIME_AXIS_PASS_21012", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 21002, 21004, 21013, 21014, 21015, 21016, 21017, 21018 },
regions = { },
triggers = { "VARIABLE_CHANGE_21007", "TIME_AXIS_PASS_21009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 21001, 21003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21007(context, evt)
-- 创建标识为"WindTimeA",时间节点为{16}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {16}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133021, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_21009(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_21009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133021, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,195 @@
-- 基础信息
local base_info = {
group_id = 220133022
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 759,
--上下俯仰的SelectOptionID
selectID_vertical = 760,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
[22001] = {0, 103},
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--装置初始state
init_state = {
[22006] = 303,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 横向移动 0,103
[22001] = { config_id = 22001, gadget_id = 70310167, pos = { x = 2165.313, y = 539.978, z = 508.754 }, rot = { x = 19.393, y = 182.080, z = 2.342 }, level = 1, persistent = true, worktop_config = { init_options = { 759 } } },
[22003] = { config_id = 22003, gadget_id = 70310341, pos = { x = 2158.482, y = 545.892, z = 522.912 }, rot = { x = 328.735, y = 19.731, z = 346.344 }, level = 1 },
-- WindTimeA
[22004] = { config_id = 22004, gadget_id = 70310169, pos = { x = 2158.514, y = 544.372, z = 522.924 }, rot = { x = 2.224, y = 16.511, z = 0.115 }, level = 1, persistent = true },
-- 纵向移动 0,303
[22006] = { config_id = 22006, gadget_id = 70310170, pos = { x = 2158.073, y = 541.099, z = 509.984 }, rot = { x = 6.970, y = 101.169, z = 343.688 }, level = 1, persistent = true },
[22008] = { config_id = 22008, gadget_id = 70690001, pos = { x = 2160.450, y = 549.278, z = 532.254 }, rot = { x = 331.550, y = 18.954, z = 346.731 }, level = 1 },
[22009] = { config_id = 22009, gadget_id = 70690001, pos = { x = 2163.392, y = 554.185, z = 540.820 }, rot = { x = 331.550, y = 18.954, z = 346.731 }, level = 1 },
[22010] = { config_id = 22010, gadget_id = 70690001, pos = { x = 2166.040, y = 558.603, z = 548.531 }, rot = { x = 331.550, y = 18.954, z = 346.731 }, level = 1 },
-- 荆棘宝箱-等待正式掉落
[22011] = { config_id = 22011, gadget_id = 70211165, pos = { x = 2165.138, y = 538.110, z = 502.900 }, rot = { x = 343.327, y = 6.008, z = 346.739 }, level = 16, chest_drop_id = 1050211, drop_count = 1, state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
-- 横 0,102
[22012] = { config_id = 22012, gadget_id = 70310170, pos = { x = 2165.688, y = 543.812, z = 519.680 }, rot = { x = 351.438, y = 295.262, z = 17.131 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 初始化WindTimeA
{ config_id = 1022002, name = "VARIABLE_CHANGE_22002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_22002", action = "action_EVENT_VARIABLE_CHANGE_22002", trigger_count = 0 },
-- WindTimeA10s销毁风场
{ config_id = 1022007, name = "TIME_AXIS_PASS_22007", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_22007", action = "action_EVENT_TIME_AXIS_PASS_22007", trigger_count = 0 },
{ config_id = 1022014, name = "GROUP_LOAD_22014", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_22014", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1022005, name = "TIME_AXIS_PASS_22005", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_22005", action = "action_EVENT_TIME_AXIS_PASS_22005", trigger_count = 0 },
{ config_id = 1022013, name = "GADGET_STATE_CHANGE_22013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_22013", action = "action_EVENT_GADGET_STATE_CHANGE_22013", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 22001, 22004, 22006, 22011, 22012 },
regions = { },
triggers = { "VARIABLE_CHANGE_22002", "TIME_AXIS_PASS_22007", "GROUP_LOAD_22014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 大传音花创造的风场,
monsters = { },
gadgets = { 22003, 22008, 22009, 22010 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_22002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_22002(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133022, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_22007(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_22007(context, evt)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 220133022, 2)
-- 将本组内变量名为 "big_flower" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "big_flower", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_22014(context, evt)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 220133023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 23001, gadget_id = 70310242, pos = { x = 2249.159, y = 539.757, z = 537.828 }, rot = { x = 0.000, y = 285.174, z = 0.000 }, level = 1, interact_id = 64 },
{ config_id = 23002, gadget_id = 70310020, pos = { x = 2245.104, y = 538.660, z = 537.642 }, rot = { x = 0.000, y = 17.393, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 23003, gadget_id = 70360046, pos = { x = 2200.870, y = 557.459, z = 582.763 }, rot = { x = 0.000, y = 17.393, z = 0.000 }, level = 1 },
{ config_id = 23004, gadget_id = 70310242, pos = { x = 2196.355, y = 559.139, z = 584.877 }, rot = { x = 0.000, y = 285.174, z = 0.000 }, level = 1, interact_id = 64 }
},
triggers = {
{ config_id = 1023005, name = "GADGET_STATE_CHANGE_23005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_23005", action = "action_EVENT_GADGET_STATE_CHANGE_23005" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,190 @@
-- 基础信息
local base_info = {
group_id = 220133024
}
-- DEFS_MISCS
local defs = {
guide_region = 24015,
--左右旋转的SelectOptionID
selectID_horizon = 759,
--上下俯仰的SelectOptionID
selectID_vertical = 760,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
[24003] = {0, 102},
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 小花-水平转动
[24001] = { config_id = 24001, gadget_id = 70310170, pos = { x = 2267.676, y = 537.236, z = 527.419 }, rot = { x = 354.531, y = 288.710, z = 21.895 }, level = 1, persistent = true },
-- 小花-固定
[24002] = { config_id = 24002, gadget_id = 70310170, pos = { x = 2264.185, y = 539.788, z = 534.942 }, rot = { x = 19.232, y = 158.263, z = 357.090 }, level = 1, persistent = true },
-- 小花-0 102
[24003] = { config_id = 24003, gadget_id = 70310167, pos = { x = 2258.299, y = 538.106, z = 530.707 }, rot = { x = 355.519, y = 283.253, z = 21.927 }, level = 1, persistent = true, worktop_config = { init_options = { 759 } } },
-- 大花-固定-WindA
[24004] = { config_id = 24004, gadget_id = 70310169, pos = { x = 2260.327, y = 540.037, z = 536.511 }, rot = { x = 357.213, y = 310.263, z = 11.336 }, level = 1, persistent = true },
[24005] = { config_id = 24005, gadget_id = 70310171, pos = { x = 2267.474, y = 539.745, z = 535.650 }, rot = { x = 0.530, y = 208.697, z = 2.802 }, level = 1, persistent = true, interact_id = 64 },
[24009] = { config_id = 24009, gadget_id = 70310341, pos = { x = 2259.564, y = 541.481, z = 536.073 }, rot = { x = 332.157, y = 300.588, z = 0.000 }, level = 1 },
[24010] = { config_id = 24010, gadget_id = 70690001, pos = { x = 2251.823, y = 544.179, z = 539.928 }, rot = { x = 338.230, y = 299.790, z = 2.011 }, level = 1 },
[24011] = { config_id = 24011, gadget_id = 70690001, pos = { x = 2241.048, y = 548.266, z = 546.626 }, rot = { x = 328.215, y = 299.925, z = 357.874 }, level = 1 },
[24012] = { config_id = 24012, gadget_id = 70690001, pos = { x = 2231.930, y = 553.118, z = 551.927 }, rot = { x = 335.341, y = 299.504, z = 2.044 }, level = 1 },
[24013] = { config_id = 24013, gadget_id = 70690001, pos = { x = 2222.202, y = 558.369, z = 559.159 }, rot = { x = 340.878, y = 315.710, z = 2.827 }, level = 1 },
[24014] = { config_id = 24014, gadget_id = 70690001, pos = { x = 2212.945, y = 561.517, z = 570.351 }, rot = { x = 342.550, y = 323.024, z = 3.114 }, level = 1 }
}
-- 区域
regions = {
[24015] = { config_id = 24015, shape = RegionShape.SPHERE, radius = 8, pos = { x = 2265.604, y = 537.646, z = 534.251 } }
}
-- 触发器
triggers = {
-- 初始化WindTimeA并出风
{ config_id = 1024006, name = "VARIABLE_CHANGE_24006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_24006", action = "action_EVENT_VARIABLE_CHANGE_24006", trigger_count = 0 },
-- 初始化WindTimeA 10s销毁风场
{ config_id = 1024008, name = "TIME_AXIS_PASS_24008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_24008", action = "action_EVENT_TIME_AXIS_PASS_24008", trigger_count = 0 },
{ config_id = 1024016, name = "GROUP_LOAD_24016", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_24016", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1024007, name = "TIME_AXIS_PASS_24007", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_24007", action = "action_EVENT_TIME_AXIS_PASS_24007", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 24001, 24002, 24003, 24004, 24005 },
regions = { 24015 },
triggers = { "VARIABLE_CHANGE_24006", "TIME_AXIS_PASS_24008", "GROUP_LOAD_24016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 24009, 24010, 24011, 24012, 24013, 24014 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_24006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_24006(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133024, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_24008(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_24008(context, evt)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 220133024, 2)
-- 将本组内变量名为 "big_flower" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "big_flower", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_24016(context, evt)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
@@ -0,0 +1,178 @@
-- 基础信息
local base_info = {
group_id = 220133025
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[25001] = { config_id = 25001, gadget_id = 70310341, pos = { x = 4196.588, y = 580.639, z = 219.136 }, rot = { x = 347.600, y = 27.963, z = 355.964 }, level = 1 },
-- 大花-水平转动
[25002] = { config_id = 25002, gadget_id = 70310169, pos = { x = 4196.661, y = 579.378, z = 219.463 }, rot = { x = 16.639, y = 25.915, z = 355.886 }, level = 20, persistent = true },
[25003] = { config_id = 25003, gadget_id = 70690001, pos = { x = 4202.204, y = 583.200, z = 231.211 }, rot = { x = 351.681, y = 27.672, z = 356.016 }, level = 1 },
[25004] = { config_id = 25004, gadget_id = 70690001, pos = { x = 4212.550, y = 578.789, z = 251.268 }, rot = { x = 2.827, y = 39.262, z = 356.581 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1
{ config_id = 1025007, name = "VARIABLE_CHANGE_25007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_25007", action = "action_EVENT_VARIABLE_CHANGE_25007", trigger_count = 0 },
-- WindTimeA
{ config_id = 1025009, name = "TIME_AXIS_PASS_25009", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_25009", action = "action_EVENT_TIME_AXIS_PASS_25009", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1025005, name = "GADGET_STATE_CHANGE_25005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_25005", action = "action_EVENT_GADGET_STATE_CHANGE_25005", trigger_count = 0 },
{ config_id = 1025006, name = "GADGET_STATE_CHANGE_25006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_25006", action = "action_EVENT_GADGET_STATE_CHANGE_25006", trigger_count = 0 },
{ config_id = 1025008, name = "TIME_AXIS_PASS_25008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_25008", action = "action_EVENT_TIME_AXIS_PASS_25008", trigger_count = 0 },
{ config_id = 1025010, name = "VARIABLE_CHANGE_25010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_25010", action = "action_EVENT_VARIABLE_CHANGE_25010", trigger_count = 0 },
{ config_id = 1025011, name = "TIME_AXIS_PASS_25011", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_25011", action = "action_EVENT_TIME_AXIS_PASS_25011", trigger_count = 0 },
{ config_id = 1025012, name = "TIME_AXIS_PASS_25012", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_25012", action = "action_EVENT_TIME_AXIS_PASS_25012", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 25002 },
regions = { },
triggers = { "VARIABLE_CHANGE_25007", "TIME_AXIS_PASS_25009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 25001, 25003, 25004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_25007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_25007(context, evt)
-- 创建标识为"WindTimeA",时间节点为{16}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {16}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133025, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_25009(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_25009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133025, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,222 @@
-- 基础信息
local base_info = {
group_id = 220133026
}
-- DEFS_MISCS
local defs =
{
guide_region = 26034,
--玩法完成时 这个gadget如果为GearStop则会被设为Default
finish_gadget = 26011,
--起点格configid
starter = 26007,
--终点格configid
ender = 26033,
--矩阵 用于踩格子时判断是否相邻
matrix =
{
{ 0, 0, 0,26018,26017, 0, 0, 0, 0},
{ 0, 0,26030,26003,26015, 0, 0,26010,26002},
{ 0, 0,26028, 0, 0, 0, 0, 0,26023},
{ 0, 0, 0, 0, 0, 0, 0, 0,26022},
{26006,26025, 0, 0, 0, 0, 0,26001,26004},
{ 0,26031,26032, 0, 0, 0, 0,26007, 0},
{ 0, 0,26029,26033, 0, 0, 0, 0, 0},
},
--每个还原格控制哪些离散格
reveal_tiles=
{
[26006] = {26008,26009,26019,26024},
},
--离散格拼入哪个位置,拼入位置需要布设普通格,初始状态为903
reveal_match=
{
[26008] = 26025,
[26009] = 26031,
[26019] = 26032,
[26024] = 26029,
},
--移动格的目标位置和使用的点阵
movable_pos =
{--[移动格子configID] = new_pos: 两位数字的矩阵坐标,x是十位,y是个位
[26010] = { new_pos = 26 },
[26028] = { new_pos = 41 },
},
lines=
{
[26010] = 26012,
[26028] = 26026,
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[26001] = { config_id = 26001, gadget_id = 70360350, pos = { x = 2168.707, y = 541.821, z = 511.195 }, rot = { x = 19.149, y = 176.066, z = 351.185 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 1} },
-- 普通
[26002] = { config_id = 26002, gadget_id = 70360350, pos = { x = 2177.620, y = 542.876, z = 508.214 }, rot = { x = 13.377, y = 174.426, z = 344.153 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 5} },
[26003] = { config_id = 26003, gadget_id = 70360350, pos = { x = 2166.625, y = 549.839, z = 526.987 }, rot = { x = 347.911, y = 348.013, z = 5.358 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 10} },
-- 还原格
[26004] = { config_id = 26004, gadget_id = 70360350, pos = { x = 2168.901, y = 540.837, z = 508.369 }, rot = { x = 19.149, y = 176.066, z = 351.185 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 2} },
[26006] = { config_id = 26006, gadget_id = 70360352, pos = { x = 2152.262, y = 547.998, z = 518.795 }, rot = { x = 351.278, y = 345.230, z = 347.184 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 13} },
[26007] = { config_id = 26007, gadget_id = 70360354, pos = { x = 2165.807, y = 541.569, z = 511.066 }, rot = { x = 19.700, y = 175.287, z = 358.736 }, level = 1 },
[26008] = { config_id = 26008, gadget_id = 70360353, pos = { x = 2159.382, y = 547.004, z = 516.975 }, rot = { x = 36.073, y = 106.892, z = 120.024 }, level = 1 },
[26009] = { config_id = 26009, gadget_id = 70360353, pos = { x = 2156.455, y = 547.829, z = 515.269 }, rot = { x = 17.694, y = 278.260, z = 335.177 }, level = 1 },
-- 移动平台移动
[26010] = { config_id = 26010, gadget_id = 70360351, pos = { x = 2177.296, y = 543.558, z = 511.116 }, rot = { x = 13.189, y = 173.750, z = 343.997 }, level = 1, route_id = 5, start_route = false, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 6} },
[26011] = { config_id = 26011, gadget_id = 70310171, pos = { x = 2156.244, y = 540.397, z = 507.763 }, rot = { x = 350.323, y = 68.521, z = 344.585 }, level = 1, state = GadgetState.GearStop, persistent = true, interact_id = 64 },
[26012] = { config_id = 26012, gadget_id = 70310349, pos = { x = 2176.475, y = 544.260, z = 512.441 }, rot = { x = 337.693, y = 336.682, z = 18.445 }, level = 1 },
[26015] = { config_id = 26015, gadget_id = 70360350, pos = { x = 2169.536, y = 550.111, z = 527.545 }, rot = { x = 347.911, y = 348.013, z = 5.358 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 7} },
[26017] = { config_id = 26017, gadget_id = 70360350, pos = { x = 2168.929, y = 550.736, z = 530.401 }, rot = { x = 347.911, y = 348.013, z = 5.358 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 8} },
[26018] = { config_id = 26018, gadget_id = 70360350, pos = { x = 2166.023, y = 550.460, z = 529.822 }, rot = { x = 347.911, y = 348.013, z = 5.358 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 9} },
[26019] = { config_id = 26019, gadget_id = 70360353, pos = { x = 2157.832, y = 550.853, z = 517.373 }, rot = { x = 78.170, y = 19.285, z = 151.693 }, level = 1 },
-- 还原格
[26022] = { config_id = 26022, gadget_id = 70360350, pos = { x = 2171.799, y = 541.428, z = 508.273 }, rot = { x = 18.992, y = 175.466, z = 344.434 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 3} },
-- 还原格
[26023] = { config_id = 26023, gadget_id = 70360350, pos = { x = 2174.700, y = 542.181, z = 508.231 }, rot = { x = 16.341, y = 176.336, z = 344.696 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 4} },
[26024] = { config_id = 26024, gadget_id = 70360353, pos = { x = 2158.443, y = 546.338, z = 511.798 }, rot = { x = 321.056, y = 172.484, z = 25.147 }, level = 1 },
-- 隐藏
[26025] = { config_id = 26025, gadget_id = 70360356, pos = { x = 2155.002, y = 547.329, z = 519.655 }, rot = { x = 347.797, y = 345.129, z = 344.195 }, level = 1, state = GadgetState.Action03, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 14} },
[26026] = { config_id = 26026, gadget_id = 70310349, pos = { x = 2164.158, y = 549.669, z = 523.557 }, rot = { x = 2.451, y = 259.833, z = 12.052 }, level = 1 },
-- 移动平台移动
[26028] = { config_id = 26028, gadget_id = 70360351, pos = { x = 2164.402, y = 549.008, z = 523.521 }, rot = { x = 347.800, y = 344.018, z = 358.788 }, level = 1, route_id = 6, start_route = false, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 12} },
[26029] = { config_id = 26029, gadget_id = 70360356, pos = { x = 2158.934, y = 545.094, z = 514.670 }, rot = { x = 348.248, y = 349.795, z = 336.183 }, level = 1, state = GadgetState.Action03, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 17} },
[26030] = { config_id = 26030, gadget_id = 70360350, pos = { x = 2163.715, y = 549.597, z = 526.366 }, rot = { x = 348.422, y = 347.994, z = 356.798 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 11} },
[26031] = { config_id = 26031, gadget_id = 70360356, pos = { x = 2155.755, y = 546.671, z = 516.800 }, rot = { x = 347.291, y = 345.909, z = 343.242 }, level = 1, state = GadgetState.Action03, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 15} },
[26032] = { config_id = 26032, gadget_id = 70360356, pos = { x = 2158.411, y = 545.708, z = 517.575 }, rot = { x = 348.248, y = 349.795, z = 336.183 }, level = 1, state = GadgetState.Action03, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 16} },
[26033] = { config_id = 26033, gadget_id = 70360355, pos = { x = 2161.601, y = 543.995, z = 515.383 }, rot = { x = 348.248, y = 349.795, z = 336.183 }, level = 1, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 18} }
}
-- 区域
regions = {
-- 玩法限定区域
[26027] = { config_id = 26027, shape = RegionShape.SPHERE, radius = 20, pos = { x = 2165.940, y = 540.941, z = 519.733 } },
[26034] = { config_id = 26034, shape = RegionShape.SPHERE, radius = 7, pos = { x = 2162.951, y = 541.893, z = 510.706 } }
}
-- 触发器
triggers = {
-- 音符植物重新激活时,提示玩家并播镜头
{ config_id = 1026013, name = "GADGET_STATE_CHANGE_26013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26013", action = "action_EVENT_GADGET_STATE_CHANGE_26013" },
-- 镜头结束-播放remidner
{ config_id = 1026014, name = "CUTSCENE_END_26014", event = EventType.EVENT_CUTSCENE_END, source = "201330104", condition = "", action = "action_EVENT_CUTSCENE_END_26014", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 26016, gadget_id = 70360356, pos = { x = 2150.780, y = 546.338, z = 513.566 }, rot = { x = 26.620, y = 154.920, z = 331.659 }, level = 1, state = GadgetState.Action03, server_global_value_config = { ["SGV_NoteSlate_Sound"]= 5} },
{ config_id = 26020, gadget_id = 70360351, pos = { x = 2172.505, y = 550.683, z = 527.957 }, rot = { x = 12.217, y = 170.359, z = 343.252 }, level = 1 },
{ config_id = 26021, gadget_id = 70360351, pos = { x = 2151.417, y = 548.621, z = 521.751 }, rot = { x = 347.800, y = 344.018, z = 358.788 }, level = 1 }
},
triggers = {
{ config_id = 1026005, name = "GADGET_STATE_CHANGE_26005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_26005", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 26011 },
regions = { 26034 },
triggers = { "GADGET_STATE_CHANGE_26013", "CUTSCENE_END_26014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 26001, 26002, 26003, 26004, 26006, 26007, 26008, 26009, 26010, 26012, 26015, 26017, 26018, 26019, 26022, 26023, 26024, 26025, 26026, 26028, 26029, 26030, 26031, 26032, 26033 },
regions = { 26027 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_26013(context, evt)
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 220133026, 26011) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_26013(context, evt)
-- 通知场景上的所有玩家播放名字为201330104 的cutscene
if 0 ~= ScriptLib.PlayCutScene(context, 201330104, 22) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : play_cutscene")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CUTSCENE_END_26014(context, evt)
if evt.param1 == 201330104 and evt.param2 == 1 then
ScriptLib.ShowReminder(context, 1111288)
ScriptLib.SetGroupVariableValueByGroup(context, "GadgetADie", 1, 220133091)
ScriptLib.KillEntityByConfigId(context, {group_id=220133091, config_id=91001, entity_type=EntityType.GADGET})
end
return 0
end
require "V2_8/DrawOneLine_Dreamland"
@@ -0,0 +1,216 @@
-- 基础信息
local base_info = {
group_id = 220133027
}
-- Trigger变量
local defs = {
gadget_animal = 27001,
pointarray_ID = 5,
maxPointCount = 9,
gadget_Reward = 27002,
pointInfo = {3,7,9},
addSuite_Info = 2,
animal_state = {0,0,0}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 27001, gadget_id = 70360358, pos = { x = 5089.219, y = 552.028, z = -1778.192 }, rot = { x = 1.008, y = 224.886, z = 343.144 }, level = 1, start_route = false, persistent = true, is_use_point_array = true },
{ config_id = 27002, gadget_id = 70211001, pos = { x = 5029.729, y = 541.088, z = -1828.453 }, rot = { x = 356.333, y = 67.854, z = 15.541 }, level = 16, drop_tag = "战斗低级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1027003, name = "PLATFORM_REACH_POINT_27003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_27003", action = "action_EVENT_PLATFORM_REACH_POINT_27003", trigger_count = 0 },
{ config_id = 1027004, name = "PLATFORM_REACH_POINT_27004", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_27004", action = "action_EVENT_PLATFORM_REACH_POINT_27004", trigger_count = 0 },
{ config_id = 1027006, name = "PLATFORM_REACH_POINT_27006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_27006", action = "action_EVENT_PLATFORM_REACH_POINT_27006", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1027005, name = "PLATFORM_REACH_POINT_27005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_27005", action = "action_EVENT_PLATFORM_REACH_POINT_27005", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
io_type = 1,
suite = 3,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suite_disk = {
[1] = {
gadgets = {
{ config_id = 27001, state = 0, platform_info = { point_id = 0, move_type = 1, route_id = 0, route_index = 0, is_started = false } }
},
monsters = {
},
regions = { },
triggers = { "PLATFORM_REACH_POINT_27003", "PLATFORM_REACH_POINT_27004", "PLATFORM_REACH_POINT_27006" },
npcs = { },
variables = {
}
},
[2] = {
gadgets = {
{ config_id = 27002, state = 0 }
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
}
},
[3] = {
gadgets = {
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
}
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_27003(context, evt)
-- 判断是gadgetid 为 27001的移动平台,是否到达了5 的点集中的 3 点
if 27001 ~= evt.param1 then
return false
end
if 5 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_27003(context, evt)
-- 将configid为 27001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 27001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_27004(context, evt)
-- 判断是gadgetid 为 27001的移动平台,是否到达了5 的点集中的 7 点
if 27001 ~= evt.param1 then
return false
end
if 5 ~= evt.param2 then
return false
end
if 7 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_27004(context, evt)
-- 将configid为 27001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 27001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_27006(context, evt)
-- 判断是gadgetid 为 27001的移动平台,是否到达了5 的点集中的 9 点
if 27001 ~= evt.param1 then
return false
end
if 5 ~= evt.param2 then
return false
end
if 9 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_27006(context, evt)
-- 将configid为 27001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 27001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
require "V2_8/AnimalSeelie"
@@ -0,0 +1,190 @@
-- 基础信息
local base_info = {
group_id = 220133028
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[28001] = { config_id = 28001, gadget_id = 70690001, pos = { x = -0.681, y = 150.403, z = 610.592 }, rot = { x = 305.081, y = 0.254, z = 342.911 }, level = 1 },
[28002] = { config_id = 28002, gadget_id = 70690001, pos = { x = -1.088, y = 156.843, z = 615.489 }, rot = { x = 311.391, y = 345.438, z = 355.132 }, level = 1 },
-- 大花-固定-WindA
[28004] = { config_id = 28004, gadget_id = 70310169, pos = { x = -0.994, y = 142.913, z = 606.902 }, rot = { x = 339.852, y = 349.737, z = 349.636 }, level = 1, persistent = true },
-- 任务完成才激活
[28005] = { config_id = 28005, gadget_id = 70310171, pos = { x = -11.459, y = 143.988, z = 604.648 }, rot = { x = 350.494, y = 28.716, z = 357.315 }, level = 1, state = GadgetState.GearStop, persistent = true, interact_id = 64 },
[28006] = { config_id = 28006, gadget_id = 70310341, pos = { x = -0.702, y = 143.796, z = 605.952 }, rot = { x = 305.081, y = 0.254, z = 342.911 }, level = 1 },
[28007] = { config_id = 28007, gadget_id = 70310170, pos = { x = -9.386, y = 144.026, z = 604.493 }, rot = { x = 4.540, y = 77.935, z = 351.678 }, level = 1, persistent = true },
[28010] = { config_id = 28010, gadget_id = 70690029, pos = { x = -6.354, y = 162.223, z = 627.518 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1028011, name = "QUEST_FINISH_28011", event = EventType.EVENT_QUEST_FINISH, source = "4007004", condition = "", action = "action_EVENT_QUEST_FINISH_28011", trigger_count = 0 },
-- 初始化WindTimeA
{ config_id = 1028012, name = "VARIABLE_CHANGE_28012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_28012", action = "action_EVENT_VARIABLE_CHANGE_28012", trigger_count = 0 },
-- 初始化WindTimeA 10s销毁风场
{ config_id = 1028014, name = "TIME_AXIS_PASS_28014", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_28014", action = "action_EVENT_TIME_AXIS_PASS_28014", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 28003, gadget_id = 70690001, pos = { x = -21.687, y = 160.747, z = 610.516 }, rot = { x = 320.861, y = 344.403, z = 355.851 }, level = 1 },
{ config_id = 28008, gadget_id = 70690001, pos = { x = -0.702, y = 143.796, z = 605.952 }, rot = { x = 305.081, y = 0.254, z = 342.911 }, level = 1 },
{ config_id = 28009, gadget_id = 70690001, pos = { x = -0.702, y = 143.796, z = 605.952 }, rot = { x = 305.081, y = 0.254, z = 342.911 }, level = 1 }
},
triggers = {
{ config_id = 1028013, name = "TIME_AXIS_PASS_28013", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_28013", action = "action_EVENT_TIME_AXIS_PASS_28013", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 28004, 28005, 28007 },
regions = { },
triggers = { "QUEST_FINISH_28011", "VARIABLE_CHANGE_28012", "TIME_AXIS_PASS_28014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 28001, 28002, 28006, 28010 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_28011(context, evt)
-- 将configid为 28005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 28005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_28012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_28012(context, evt)
-- 创建标识为"WindTimeA",时间节点为{25}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {25}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133028, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_28014(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_28014(context, evt)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 220133028, 2)
-- 将本组内变量名为 "big_flower" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "big_flower", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 220133029
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 29001, gadget_id = 70360346, pos = { x = 2172.130, y = 564.117, z = 596.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, interact_id = 119 },
{ config_id = 29003, gadget_id = 70310148, pos = { x = 2172.130, y = 564.117, z = 596.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
},
triggers = {
{ config_id = 1029002, name = "GADGET_STATE_CHANGE_29002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_29002", action = "action_EVENT_GADGET_STATE_CHANGE_29002" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,157 @@
-- 基础信息
local base_info = {
group_id = 220133030
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 30001, gadget_id = 70360001, pos = { x = 497.987, y = 176.085, z = 1879.336 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1030002, name = "GADGET_CREATE_30002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_30002", action = "action_EVENT_GADGET_CREATE_30002", trigger_count = 0 },
{ config_id = 1030003, name = "SELECT_OPTION_30003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_30003", action = "action_EVENT_SELECT_OPTION_30003", trigger_count = 0 },
{ config_id = 1030004, name = "GROUP_LOAD_30004", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_30004", trigger_count = 0 },
{ config_id = 1030005, name = "GROUP_LOAD_30005", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_30005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_30004" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 30001 },
regions = { },
triggers = { "GADGET_CREATE_30002", "SELECT_OPTION_30003", "GROUP_LOAD_30005" },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_30002(context, evt)
if 30001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_30002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220133030, 30001, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_30003(context, evt)
-- 判断是gadgetid 30001 option_id 1
if 30001 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_30003(context, evt)
-- 将使用操作台的玩家传送至目标点
if evt.uid ~= nil then
local t_pos = {x=1062.296, y=-388.4613, z=2108.598}
if 0 ~= ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = t_pos, rot = {x=0, y=90, z=0}}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
else
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_30004(context, evt)
if ScriptLib.GetHostQuestState(context,4006912)==2 then
ScriptLib.RefreshGroup(context, { group_id = 220133030, suite = 2 })
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_30005(context, evt)
if ScriptLib.GetHostQuestState(context,4006912)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133030, suite = 1 })
end
return 0
end
@@ -0,0 +1,129 @@
-- 基础信息
local base_info = {
group_id = 220133031
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 31001, gadget_id = 70360001, pos = { x = 1067.443, y = -388.465, z = 2106.126 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1031002, name = "GADGET_CREATE_31002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_31002", action = "action_EVENT_GADGET_CREATE_31002" },
{ config_id = 1031003, name = "SELECT_OPTION_31003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_31003", action = "action_EVENT_SELECT_OPTION_31003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 31001 },
regions = { },
triggers = { "GADGET_CREATE_31002", "SELECT_OPTION_31003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_31002(context, evt)
if 31001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_31002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220133031, 31001, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_31003(context, evt)
-- 判断是gadgetid 31001 option_id 1
if 31001 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_31003(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006911") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,228 @@
-- 基础信息
local base_info = {
group_id = 220133032
}
-- Trigger变量
local defs = {
gadget_animal = 32001,
pointarray_ID = 6,
maxPointCount = 11,
gadget_Reward = 0,
pointInfo = {1,4,11},
addSuite_Info = 3,
animal_state = {0,0,0}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 32001, gadget_id = 70360358, pos = { x = 2638.105, y = 584.297, z = -1771.661 }, rot = { x = 0.000, y = 183.003, z = 0.000 }, level = 1, start_route = false, persistent = true, is_use_point_array = true },
{ config_id = 32008, gadget_id = 70360358, pos = { x = 2638.105, y = 584.297, z = -1771.662 }, rot = { x = 0.000, y = 183.003, z = 0.000 }, level = 1, start_route = false, persistent = true, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1032005, name = "PLATFORM_REACH_POINT_32005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_32005", action = "action_EVENT_PLATFORM_REACH_POINT_32005", trigger_count = 0 },
{ config_id = 1032006, name = "PLATFORM_REACH_POINT_32006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_32006", action = "action_EVENT_PLATFORM_REACH_POINT_32006", trigger_count = 0 },
{ config_id = 1032007, name = "PLATFORM_REACH_POINT_32007", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_32007", action = "action_EVENT_PLATFORM_REACH_POINT_32007", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1032002, name = "VARIABLE_CHANGE_32002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_32002", action = "action_EVENT_VARIABLE_CHANGE_32002", trigger_count = 0 },
{ config_id = 1032003, name = "PLATFORM_REACH_POINT_32003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_32003", action = "action_EVENT_PLATFORM_REACH_POINT_32003", trigger_count = 0 },
{ config_id = 1032004, name = "PLATFORM_REACH_POINT_32004", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_32004", action = "action_EVENT_PLATFORM_REACH_POINT_32004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
io_type = 1,
suite = 2,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suite_disk = {
[1] = {
gadgets = {
{ config_id = 32001, state = 0, platform_info = { point_id = 0, move_type = 1, route_id = 0, route_index = 0, is_started = false } }
},
monsters = {
},
regions = { },
triggers = { "PLATFORM_REACH_POINT_32005", "PLATFORM_REACH_POINT_32006", "PLATFORM_REACH_POINT_32007" },
npcs = { },
variables = {
}
},
[2] = {
gadgets = {
{ config_id = 32008, state = 0, platform_info = { point_id = 0, move_type = 1, route_id = 0, route_index = 0, is_started = false } }
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
}
},
[3] = {
gadgets = {
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
}
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_32005(context, evt)
-- 判断是gadgetid 为 32001的移动平台,是否到达了6 的点集中的 4 点
if 32001 ~= evt.param1 then
return false
end
if 6 ~= evt.param2 then
return false
end
if 4 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_32005(context, evt)
-- 将configid为 32001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 32001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_32006(context, evt)
-- 判断是gadgetid 为 32001的移动平台,是否到达了6 的点集中的 11 点
if 32001 ~= evt.param1 then
return false
end
if 6 ~= evt.param2 then
return false
end
if 11 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_32006(context, evt)
-- 将configid为 32001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 32001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220133033, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_32007(context, evt)
-- 判断是gadgetid 为 32001的移动平台,是否到达了6 的点集中的 5 点
if 32001 ~= evt.param1 then
return false
end
if 6 ~= evt.param2 then
return false
end
if 5 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_32007(context, evt)
-- 触发镜头注目,注目位置为坐标(2656.48585.839-1748.326),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=2656.48, y=585.839, z=-1748.326}
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
return 0
end
require "V2_8/AnimalSeelie"
@@ -0,0 +1,265 @@
-- 基础信息
local base_info = {
group_id = 220133033
}
-- Trigger变量
local defs = {
gadget_animal = 33001,
pointarray_ID = 7,
maxPointCount = 12,
gadget_Reward = 33002,
pointInfo = {5,8,11,12},
addSuite_Info = 2,
animal_state = {0,0,0,0}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 33001, gadget_id = 70360358, pos = { x = -123.094, y = 181.475, z = 626.198 }, rot = { x = 350.167, y = 176.308, z = 19.203 }, level = 1, start_route = false, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
{ config_id = 33002, gadget_id = 70211101, pos = { x = -46.986, y = 178.980, z = 611.717 }, rot = { x = 354.346, y = 299.359, z = 351.282 }, level = 16, drop_tag = "解谜低级群岛", isOneoff = true, persistent = true },
{ config_id = 33007, gadget_id = 70360001, pos = { x = -123.397, y = 181.492, z = 629.415 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1033003, name = "PLATFORM_REACH_POINT_33003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_33003", action = "action_EVENT_PLATFORM_REACH_POINT_33003", trigger_count = 0 },
{ config_id = 1033004, name = "PLATFORM_REACH_POINT_33004", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_33004", action = "action_EVENT_PLATFORM_REACH_POINT_33004", trigger_count = 0 },
{ config_id = 1033005, name = "PLATFORM_REACH_POINT_33005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_33005", action = "action_EVENT_PLATFORM_REACH_POINT_33005", trigger_count = 0 },
{ config_id = 1033006, name = "PLATFORM_REACH_POINT_33006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_33006", action = "action_EVENT_PLATFORM_REACH_POINT_33006", trigger_count = 0 },
{ config_id = 1033008, name = "GROUP_LOAD_33008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_33008", action = "action_EVENT_GROUP_LOAD_33008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
io_type = 1,
suite = 3,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suite_disk = {
[1] = {
gadgets = {
{ config_id = 33001, state = 0, platform_info = { point_id = 0, move_type = 1, route_id = 0, route_index = 0, is_started = false } }
},
monsters = {
},
regions = { },
triggers = { "PLATFORM_REACH_POINT_33003", "PLATFORM_REACH_POINT_33004", "PLATFORM_REACH_POINT_33005", "PLATFORM_REACH_POINT_33006" },
npcs = { },
variables = {
}
},
[2] = {
gadgets = {
{ config_id = 33002, state = 0 }
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
}
},
[3] = {
gadgets = {
{ config_id = 33007, state = 0 }
},
monsters = {
},
regions = { },
triggers = { "GROUP_LOAD_33008" },
npcs = { },
variables = {
}
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_33003(context, evt)
-- 判断是gadgetid 为 33001的移动平台,是否到达了7 的点集中的 5 点
if 33001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
if 5 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_33003(context, evt)
-- 将configid为 33001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_33004(context, evt)
-- 判断是gadgetid 为 33001的移动平台,是否到达了7 的点集中的 8 点
if 33001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
if 8 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_33004(context, evt)
-- 将configid为 33001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_33005(context, evt)
-- 判断是gadgetid 为 33001的移动平台,是否到达了7 的点集中的 11 点
if 33001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
if 11 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_33005(context, evt)
-- 将configid为 33001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_33006(context, evt)
-- 判断是gadgetid 为 33001的移动平台,是否到达了7 的点集中的 12 点
if 33001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
if 12 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_33006(context, evt)
-- 将configid为 33001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_33008(context, evt)
-- 判断变量"isFinished"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "isFinished", 220133032) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_33008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220133033, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
require "V2_8/AnimalSeelie"
@@ -0,0 +1,253 @@
-- 基础信息
local base_info = {
group_id = 220133034
}
-- Trigger变量
local defs = {
duration = 35,
group_id = 220133034
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 34001, gadget_id = 70211111, pos = { x = 4196.102, y = 579.270, z = 233.718 }, rot = { x = 13.495, y = 89.780, z = 354.485 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true, autopick = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
{ config_id = 34002, gadget_id = 70350083, pos = { x = 4245.909, y = 571.444, z = 153.548 }, rot = { x = 355.944, y = 9.602, z = 351.355 }, level = 1, persistent = true },
{ config_id = 34003, gadget_id = 70360001, pos = { x = 4245.909, y = 571.444, z = 153.548 }, rot = { x = 355.944, y = 9.602, z = 351.355 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1034004, name = "CHALLENGE_SUCCESS_34004", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_34004", trigger_count = 0 },
{ config_id = 1034005, name = "CHALLENGE_FAIL_34005", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_34005", trigger_count = 0 },
{ config_id = 1034006, name = "GADGET_STATE_CHANGE_34006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_34006", action = "action_EVENT_GADGET_STATE_CHANGE_34006", trigger_count = 0 },
{ config_id = 1034007, name = "GADGET_STATE_CHANGE_34007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_34007", action = "", tag = "202" },
{ config_id = 1034008, name = "GADGET_CREATE_34008", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_34008", action = "action_EVENT_GADGET_CREATE_34008", trigger_count = 0 },
{ config_id = 1034009, name = "SELECT_OPTION_34009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_34009", action = "action_EVENT_SELECT_OPTION_34009", trigger_count = 0 },
-- 2.0rel加的保底,如果group在挑战中间被卸载了,需要在加载时加个保底置回初始状态
{ config_id = 1034010, name = "GROUP_LOAD_34010", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_34010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 34002, 34003 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_34004", "CHALLENGE_FAIL_34005", "GADGET_STATE_CHANGE_34006", "GADGET_STATE_CHANGE_34007", "GADGET_CREATE_34008", "SELECT_OPTION_34009", "GROUP_LOAD_34010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 34001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 34002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_34004(context, evt)
-- 将configid为 34002 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 34002, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 220133034, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220133034, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_34005(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133034, 2)
-- 将configid为 34002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 34002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为34003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 34003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_34006(context, evt)
if 34002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_34006(context, evt)
-- 202号挑战,duration内开启宝箱
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 202, defs.duration, 7, 202, 1) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_34007(context, evt)
if 34001 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_34008(context, evt)
if 34003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_34008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220133034, 34003, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_34009(context, evt)
-- 判断是gadgetid 34003 option_id 177
if 34003 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_34009(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 34003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 34002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 34002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_34010(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133034, 2)
-- 将configid为 34002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 34002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为34003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 34003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,236 @@
-- 基础信息
local base_info = {
group_id = 220133035
}
-- Trigger变量
local defs = {
gadget_animal = 35001,
pointarray_ID = 8,
maxPointCount = 16,
gadget_Reward = 0,
pointInfo = {2,8,11,16},
addSuite_Info = 2,
animal_state = {0,0,0,0}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 35001, gadget_id = 70360358, pos = { x = 4238.820, y = 561.579, z = 268.624 }, rot = { x = 15.946, y = 117.868, z = 8.270 }, level = 1, start_route = false, persistent = true, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1035003, name = "PLATFORM_REACH_POINT_35003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_35003", action = "action_EVENT_PLATFORM_REACH_POINT_35003", trigger_count = 0 },
{ config_id = 1035004, name = "PLATFORM_REACH_POINT_35004", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_35004", action = "action_EVENT_PLATFORM_REACH_POINT_35004", trigger_count = 0 },
{ config_id = 1035005, name = "PLATFORM_REACH_POINT_35005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_35005", action = "action_EVENT_PLATFORM_REACH_POINT_35005", trigger_count = 0 },
-- 激活传送门逻辑
{ config_id = 1035006, name = "PLATFORM_REACH_POINT_35006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_35006", action = "action_EVENT_PLATFORM_REACH_POINT_35006", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1035007, name = "GADGET_STATE_CHANGE_35007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_35007", action = "action_EVENT_GADGET_STATE_CHANGE_35007", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
io_type = 1,
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suite_disk = {
[1] = {
gadgets = {
{ config_id = 35001, state = 0, platform_info = { point_id = 0, move_type = 1, route_id = 0, route_index = 0, is_started = false } }
},
monsters = {
},
regions = { },
triggers = { "PLATFORM_REACH_POINT_35003", "PLATFORM_REACH_POINT_35004", "PLATFORM_REACH_POINT_35005", "PLATFORM_REACH_POINT_35006" },
npcs = { },
variables = {
}
},
[2] = {
gadgets = {
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
}
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_35003(context, evt)
-- 判断是gadgetid 为 35001的移动平台,是否到达了8 的点集中的 2 点
if 35001 ~= evt.param1 then
return false
end
if 8 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_35003(context, evt)
-- 将configid为 35001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_35004(context, evt)
-- 判断是gadgetid 为 35001的移动平台,是否到达了8 的点集中的 8 点
if 35001 ~= evt.param1 then
return false
end
if 8 ~= evt.param2 then
return false
end
if 8 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_35004(context, evt)
-- 将configid为 35001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_35005(context, evt)
-- 判断是gadgetid 为 35001的移动平台,是否到达了8 的点集中的 11 点
if 35001 ~= evt.param1 then
return false
end
if 8 ~= evt.param2 then
return false
end
if 11 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_35005(context, evt)
-- 将configid为 35001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_35006(context, evt)
-- 判断是gadgetid 为 35001的移动平台,是否到达了8 的点集中的 16 点
if 35001 ~= evt.param1 then
return false
end
if 8 ~= evt.param2 then
return false
end
if 16 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_35006(context, evt)
-- 改变指定group组220133063中, configid为63002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220133063, 63002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
require "V2_8/AnimalSeelie"
@@ -0,0 +1,126 @@
-- 基础信息
local base_info = {
group_id = 220133036
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 36001, gadget_id = 70310242, pos = { x = -46.903, y = 163.357, z = 499.185 }, rot = { x = 354.721, y = 215.462, z = 0.000 }, level = 1, interact_id = 64 },
{ config_id = 36002, gadget_id = 70310383, pos = { x = -28.500, y = 160.270, z = 509.230 }, rot = { x = 0.000, y = 1.548, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1036003, name = "GADGET_STATE_CHANGE_36003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_36003", action = "action_EVENT_GADGET_STATE_CHANGE_36003", trigger_count = 0 },
-- 运营埋点
{ config_id = 1036004, name = "GADGET_STATE_CHANGE_36004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_36004", action = "action_EVENT_GADGET_STATE_CHANGE_36004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 36001, 36002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_36003", "GADGET_STATE_CHANGE_36004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_36003(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133036, 36001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_36003(context, evt)
-- 将configid为 36002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-25.58206159.2544507.2841),持续时间为1.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-25.58206, y=159.2544, z=507.2841}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1.5, 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 = true, 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
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_36004(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133036, 36001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_36004(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2801, 1, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,284 @@
-- 基础信息
local base_info = {
group_id = 220133037
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 37001, gadget_id = 70310242, pos = { x = 13.920, y = 182.675, z = 628.057 }, rot = { x = 0.000, y = 196.717, z = 0.000 }, level = 1, interact_id = 64 },
{ config_id = 37002, gadget_id = 70310381, pos = { x = -7.160, y = 184.080, z = 627.720 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 第一次鼓A交互 AddSuit2 和 刷新group到指定suit
{ config_id = 1037003, name = "GADGET_STATE_CHANGE_37003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_37003", action = "action_EVENT_GADGET_STATE_CHANGE_37003", trigger_count = 0 },
-- 第二次鼓A交互 AddSuit2 和 刷新group到指定suit
{ config_id = 1037004, name = "GADGET_STATE_CHANGE_37004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_37004", action = "action_EVENT_GADGET_STATE_CHANGE_37004", trigger_count = 0 },
-- 运营埋点
{ config_id = 1037005, name = "GADGET_STATE_CHANGE_37005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_37005", action = "action_EVENT_GADGET_STATE_CHANGE_37005", trigger_count = 0 },
-- 第一次鼓A交互播片
{ config_id = 1037006, name = "GADGET_STATE_CHANGE_37006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_37006", action = "action_EVENT_GADGET_STATE_CHANGE_37006", trigger_count = 0 },
-- 第二次鼓A交互 播片
{ config_id = 1037007, name = "GADGET_STATE_CHANGE_37007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_37007", action = "action_EVENT_GADGET_STATE_CHANGE_37007", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "DrumTime", value = 1, no_refresh = true },
{ config_id = 2, name = "CsShown", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 37001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_37003", "GADGET_STATE_CHANGE_37004", "GADGET_STATE_CHANGE_37005", "GADGET_STATE_CHANGE_37006", "GADGET_STATE_CHANGE_37007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = [桥A】,
monsters = { },
gadgets = { 37002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_37003(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133037, 37001) then
return false
end
-- 判断变量"DrumTime"为1
if ScriptLib.GetGroupVariableValue(context, "DrumTime") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_37003(context, evt)
-- 将本组内变量名为 "DrumTime" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "DrumTime", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133037, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220133038, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 改变指定group组220133041中, configid为41005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220133041, 41005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220133042中, configid为42001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220133042, 42001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_37004(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133037, 37001) then
return false
end
-- 判断变量"DrumTime"为0
if ScriptLib.GetGroupVariableValue(context, "DrumTime") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_37004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133037, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220133038, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 改变指定group组220133041中, configid为41005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220133041, 41005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220133042中, configid为42001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220133042, 42001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_37005(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133037, 37001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_37005(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2801, 1, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_37006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133037, 37001) then
return false
end
-- 判断变量"DrumTime"为1
if ScriptLib.GetGroupVariableValue(context, "DrumTime") ~= 1 then
return false
end
-- 判断变量"CsShown"为0
if ScriptLib.GetGroupVariableValue(context, "CsShown") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_37006(context, evt)
-- 将本组内变量名为 "CsShown" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "CsShown", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "CsShown" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "CsShown", 0, 220133038) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 通知场景上的所有玩家播放名字为201330101 的cutscene
if 0 ~= ScriptLib.PlayCutScene(context, 201330101, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : play_cutscene")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_37007(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133037, 37001) then
return false
end
-- 判断变量"DrumTime"为0
if ScriptLib.GetGroupVariableValue(context, "DrumTime") ~= 0 then
return false
end
-- 判断变量"CsShown"为0
if ScriptLib.GetGroupVariableValue(context, "CsShown") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_37007(context, evt)
-- 将本组内变量名为 "CsShown" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "CsShown", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "CsShown" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "CsShown", 0, 220133038) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 通知场景上的所有玩家播放名字为201330103 的cutscene
if 0 ~= ScriptLib.PlayCutScene(context, 201330103, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : play_cutscene")
return -1
end
return 0
end
@@ -0,0 +1,200 @@
-- 基础信息
local base_info = {
group_id = 220133038
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 38001, gadget_id = 70310242, pos = { x = -47.999, y = 179.266, z = 610.289 }, rot = { x = 356.407, y = 325.288, z = 346.213 }, level = 1, interact_id = 64 },
{ config_id = 38002, gadget_id = 70310382, pos = { x = -20.250, y = 190.810, z = 612.490 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if鼓B交互 AddSuit2 和 refresh桥Asuit1
{ config_id = 1038003, name = "GADGET_STATE_CHANGE_38003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_38003", action = "action_EVENT_GADGET_STATE_CHANGE_38003", trigger_count = 0 },
-- 运营埋点
{ config_id = 1038004, name = "GADGET_STATE_CHANGE_38004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_38004", action = "action_EVENT_GADGET_STATE_CHANGE_38004", trigger_count = 0 },
-- if鼓B交互 播片
{ config_id = 1038005, name = "GADGET_STATE_CHANGE_38005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_38005", action = "action_EVENT_GADGET_STATE_CHANGE_38005", trigger_count = 0 },
{ config_id = 1038006, name = "GROUP_LOAD_38006", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_38006", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 2, name = "CsShown", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 3,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 38001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_38003", "GADGET_STATE_CHANGE_38004", "GADGET_STATE_CHANGE_38005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 38002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_38006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_38003(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133038, 38001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_38003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133038, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220133037, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 改变指定group组220133041中, configid为41005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220133041, 41005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220133042中, configid为42001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220133042, 42001, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_38004(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133038, 38001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_38004(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2801, 1, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_38005(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133038, 38001) then
return false
end
-- 判断变量"CsShown"为0
if ScriptLib.GetGroupVariableValue(context, "CsShown") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_38005(context, evt)
-- 将本组内变量名为 "CsShown" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "CsShown", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "CsShown" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "CsShown", 0, 220133037) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 通知场景上的所有玩家播放名字为201330102 的cutscene
if 0 ~= ScriptLib.PlayCutScene(context, 201330102, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : play_cutscene")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_38006(context, evt)
if ScriptLib.GetHostQuestState(context,4007010)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133038, suite = 1 })
end
return 0
end
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 220133039
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 39001, monster_id = 21010401, pos = { x = -29.875, y = 154.397, z = 667.308 }, rot = { x = 0.000, y = 131.501, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9012 },
{ config_id = 39003, monster_id = 21010401, pos = { x = -30.573, y = 153.862, z = 664.737 }, rot = { x = 0.000, y = 61.739, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9012 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 39001, 39003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,108 @@
-- 基础信息
local base_info = {
group_id = 220133040
}
-- DEFS_MISCS
local defs = {
--装置初始state
init_state = {
[40003] = 304,
}
,
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
[40001] = {0, 103},
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
[40003] = {0, 304},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 小花-水平转动
[40001] = { config_id = 40001, gadget_id = 70310167, pos = { x = -37.837, y = 155.219, z = 670.122 }, rot = { x = 5.281, y = 188.915, z = 3.917 }, level = 1, persistent = true, worktop_config = { init_options = { 54 } } },
-- 小花-固定
[40002] = { config_id = 40002, gadget_id = 70310170, pos = { x = -27.427, y = 154.149, z = 666.700 }, rot = { x = 352.776, y = 288.584, z = 12.858 }, level = 1, persistent = true },
-- 小花-仰角转动0,35,75
[40003] = { config_id = 40003, gadget_id = 70310167, pos = { x = -29.063, y = 152.886, z = 655.846 }, rot = { x = 354.569, y = 11.760, z = 356.681 }, level = 1, persistent = true, worktop_config = { init_options = { 55 } } },
[40004] = { config_id = 40004, gadget_id = 70211165, pos = { x = -35.810, y = 156.713, z = 681.485 }, rot = { x = 359.396, y = 191.292, z = 355.233 }, level = 16, chest_drop_id = 1050212, drop_count = 1, state = GadgetState.ChestLocked, isOneoff = true, persistent = true, autopick = true },
[40005] = { config_id = 40005, gadget_id = 70310171, pos = { x = -25.777, y = 152.003, z = 654.232 }, rot = { x = 349.224, y = 339.801, z = 357.274 }, level = 1, persistent = true, interact_id = 64 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 40001, 40002, 40003, 40004, 40005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,124 @@
-- 基础信息
local base_info = {
group_id = 220133041
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 小花-固定
[41001] = { config_id = 41001, gadget_id = 70310170, pos = { x = -52.081, y = 207.859, z = 600.555 }, rot = { x = 338.669, y = 228.229, z = 7.809 }, level = 1, persistent = true },
-- 小花-固定
[41002] = { config_id = 41002, gadget_id = 70310170, pos = { x = -44.175, y = 206.818, z = 599.224 }, rot = { x = 353.571, y = 280.604, z = 352.971 }, level = 1, persistent = true },
-- 小花-固定
[41003] = { config_id = 41003, gadget_id = 70310170, pos = { x = -60.564, y = 212.341, z = 592.218 }, rot = { x = 7.150, y = 279.641, z = 357.486 }, level = 1, persistent = true },
-- 小花-固定
[41004] = { config_id = 41004, gadget_id = 70310170, pos = { x = -84.059, y = 211.458, z = 574.378 }, rot = { x = 342.441, y = 189.219, z = 338.731 }, level = 1, persistent = true },
[41005] = { config_id = 41005, gadget_id = 70310171, pos = { x = -42.320, y = 206.075, z = 596.641 }, rot = { x = 359.450, y = 359.017, z = 348.996 }, level = 1, persistent = true, interact_id = 64 },
-- 小花-固定
[41006] = { config_id = 41006, gadget_id = 70310170, pos = { x = -72.203, y = 211.044, z = 594.554 }, rot = { x = 352.596, y = 182.129, z = 359.828 }, level = 1, persistent = true },
[41007] = { config_id = 41007, gadget_id = 70310186, pos = { x = -121.926, y = 227.302, z = 537.892 }, rot = { x = 4.229, y = 56.534, z = 0.000 }, level = 1, state = GadgetState.GearStop },
[41008] = { config_id = 41008, gadget_id = 70211111, pos = { x = -125.425, y = 228.860, z = 533.226 }, rot = { x = 26.496, y = 5.431, z = 15.516 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true },
[41009] = { config_id = 41009, gadget_id = 70211131, pos = { x = -126.219, y = 228.506, z = 534.693 }, rot = { x = 1.149, y = 55.404, z = 0.000 }, level = 16, chest_drop_id = 2004500, drop_count = 1, isOneoff = true, persistent = true },
[41010] = { config_id = 41010, gadget_id = 70211011, pos = { x = -127.242, y = 228.480, z = 535.833 }, rot = { x = 353.219, y = 97.849, z = 346.498 }, level = 16, drop_tag = "战斗中级群岛", isOneoff = true, persistent = true },
-- 小花-固定
[41011] = { config_id = 41011, gadget_id = 70310170, pos = { x = -86.089, y = 215.150, z = 562.336 }, rot = { x = 328.870, y = 173.759, z = 356.856 }, level = 1, persistent = true },
-- 小花-固定
[41012] = { config_id = 41012, gadget_id = 70310170, pos = { x = -94.111, y = 221.530, z = 548.202 }, rot = { x = 7.026, y = 289.164, z = 334.143 }, level = 1, persistent = true },
-- 小花-固定
[41013] = { config_id = 41013, gadget_id = 70310170, pos = { x = -72.127, y = 212.533, z = 583.137 }, rot = { x = 4.272, y = 233.319, z = 345.862 }, level = 1, persistent = true },
-- 小花-固定
[41014] = { config_id = 41014, gadget_id = 70310170, pos = { x = -92.396, y = 219.335, z = 552.542 }, rot = { x = 336.347, y = 196.297, z = 337.398 }, level = 1, persistent = true },
-- 小花-固定
[41015] = { config_id = 41015, gadget_id = 70310170, pos = { x = -113.725, y = 223.200, z = 547.799 }, rot = { x = 332.658, y = 217.488, z = 350.735 }, level = 1, persistent = true },
-- 小花-固定
[41016] = { config_id = 41016, gadget_id = 70310170, pos = { x = -102.236, y = 220.537, z = 551.378 }, rot = { x = 346.215, y = 252.238, z = 329.459 }, level = 1, persistent = true },
-- 小花-固定
[41017] = { config_id = 41017, gadget_id = 70310170, pos = { x = -84.907, y = 219.659, z = 554.863 }, rot = { x = 4.486, y = 249.847, z = 338.032 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 41001, 41002, 41003, 41004, 41005, 41006, 41007, 41008, 41009, 41010, 41011, 41012, 41013, 41014, 41015, 41016, 41017 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/TransferFlower"
@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 220133042
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 42001, gadget_id = 70211021, pos = { x = 15.488, y = 198.256, z = 614.718 }, rot = { x = 355.881, y = 192.424, z = 347.412 }, level = 16, drop_tag = "战斗高级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1042002, name = "GROUP_LOAD_42002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_42002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 42001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_42002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_42002(context, evt)
if ScriptLib.GetHostQuestState(context,4007010)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133042, suite = 1 })
end
return 0
end
@@ -0,0 +1,139 @@
-- 基础信息
local base_info = {
group_id = 220133043
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
[43006] = {0, 102},
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 小花-水平转动
[43001] = { config_id = 43001, gadget_id = 70310170, pos = { x = 43.048, y = 186.336, z = 635.914 }, rot = { x = 14.844, y = 287.227, z = 356.680 }, level = 1, persistent = true },
[43002] = { config_id = 43002, gadget_id = 70950157, pos = { x = 23.371, y = 188.992, z = 631.222 }, rot = { x = 18.304, y = 355.632, z = 269.957 }, level = 1, persistent = true },
-- 小花-仰角转动0,35,75
[43003] = { config_id = 43003, gadget_id = 70310170, pos = { x = 70.723, y = 192.526, z = 637.758 }, rot = { x = 23.773, y = 321.787, z = 5.490 }, level = 1, persistent = true },
[43004] = { config_id = 43004, gadget_id = 70310186, pos = { x = 24.280, y = 183.544, z = 636.730 }, rot = { x = 0.000, y = 271.591, z = 0.000 }, level = 1, state = GadgetState.GearStop },
[43005] = { config_id = 43005, gadget_id = 70310171, pos = { x = 73.875, y = 193.603, z = 637.028 }, rot = { x = 2.168, y = 358.393, z = 2.402 }, level = 1, persistent = true, interact_id = 64 },
-- 小花-仰角转动0,102
[43006] = { config_id = 43006, gadget_id = 70310167, pos = { x = 32.926, y = 184.027, z = 638.404 }, rot = { x = 354.181, y = 170.043, z = 7.505 }, level = 1, persistent = true, worktop_config = { init_options = { 54 } } },
[43007] = { config_id = 43007, gadget_id = 70950157, pos = { x = 23.371, y = 190.604, z = 641.937 }, rot = { x = 343.264, y = 4.705, z = 260.427 }, level = 1, persistent = true },
-- 小花-水平转动
[43011] = { config_id = 43011, gadget_id = 70310170, pos = { x = 46.986, y = 186.907, z = 643.768 }, rot = { x = 7.028, y = 206.696, z = 357.612 }, level = 1, persistent = true },
-- 小花-水平转动
[43013] = { config_id = 43013, gadget_id = 70310170, pos = { x = 55.954, y = 187.821, z = 640.404 }, rot = { x = 7.177, y = 294.521, z = 1.682 }, level = 1, persistent = true },
-- 小花-水平转动
[43015] = { config_id = 43015, gadget_id = 70310170, pos = { x = 64.948, y = 188.757, z = 645.432 }, rot = { x = 3.515, y = 241.251, z = 357.808 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1043008, name = "ANY_GADGET_DIE_43008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_43008", action = "action_EVENT_ANY_GADGET_DIE_43008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 43001, 43002, 43003, 43004, 43005, 43006, 43007, 43011, 43013, 43015 },
regions = { },
triggers = { "ANY_GADGET_DIE_43008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_43008(context, evt)
if 43004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_43008(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133043, EntityType.GADGET, 43002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133043, EntityType.GADGET, 43007 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,302 @@
-- 基础信息
local base_info = {
group_id = 220133044
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 44001, gadget_id = 70310462, pos = { x = 235.858, y = 135.203, z = 2072.500 }, rot = { x = 15.522, y = 279.449, z = 353.641 }, level = 1, persistent = true },
{ config_id = 44002, gadget_id = 70310463, pos = { x = 253.826, y = 139.511, z = 2075.425 }, rot = { x = 9.903, y = 260.231, z = 357.877 }, level = 1, persistent = true },
{ config_id = 44003, gadget_id = 70310462, pos = { x = 271.885, y = 144.894, z = 2079.764 }, rot = { x = 0.107, y = 286.618, z = 1.499 }, level = 1, persistent = true },
{ config_id = 44008, gadget_id = 70310464, pos = { x = 290.493, y = 150.204, z = 2060.732 }, rot = { x = 4.646, y = 336.946, z = 359.366 }, level = 1, persistent = true },
{ config_id = 44011, gadget_id = 70310317, pos = { x = 300.176, y = 152.485, z = 2024.404 }, rot = { x = 3.634, y = 319.144, z = 356.991 }, level = 1, state = GadgetState.GearStop },
{ config_id = 44012, gadget_id = 70310317, pos = { x = 296.965, y = 152.639, z = 2022.489 }, rot = { x = 4.640, y = 348.450, z = 359.824 }, level = 1, state = GadgetState.GearStop },
{ config_id = 44014, gadget_id = 70310317, pos = { x = 293.610, y = 152.484, z = 2023.108 }, rot = { x = 4.330, y = 11.847, z = 1.679 }, level = 1, state = GadgetState.GearStop }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 4次切换已完成
{ config_id = 1044004, name = "QUEST_START_44004", event = EventType.EVENT_QUEST_START, source = "4006916", condition = "condition_EVENT_QUEST_START_44004", action = "action_EVENT_QUEST_START_44004", trigger_count = 0 },
-- 门1换门2
{ config_id = 1044005, name = "QUEST_FINISH_44005", event = EventType.EVENT_QUEST_FINISH, source = "4006911", condition = "", action = "action_EVENT_QUEST_FINISH_44005", trigger_count = 0 },
-- 门2换门3
{ config_id = 1044006, name = "QUEST_FINISH_44006", event = EventType.EVENT_QUEST_FINISH, source = "4006920", condition = "", action = "action_EVENT_QUEST_FINISH_44006", trigger_count = 0 },
-- 门3换门4
{ config_id = 1044007, name = "QUEST_FINISH_44007", event = EventType.EVENT_QUEST_FINISH, source = "4006921", condition = "", action = "action_EVENT_QUEST_FINISH_44007", trigger_count = 0 },
-- 刷出门1
{ config_id = 1044009, name = "QUEST_START_44009", event = EventType.EVENT_QUEST_START, source = "4006911", condition = "", action = "action_EVENT_QUEST_START_44009", trigger_count = 0 },
-- 门4换屏风
{ config_id = 1044010, name = "QUEST_FINISH_44010", event = EventType.EVENT_QUEST_FINISH, source = "4006922", condition = "", action = "action_EVENT_QUEST_FINISH_44010", trigger_count = 0 },
{ config_id = 1044013, name = "GROUP_LOAD_44013", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_44013" },
-- group加载保底-显示3屏风
{ config_id = 1044015, name = "GROUP_LOAD_44015", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_44015", trigger_count = 0 },
-- group加载保底-切回空
{ config_id = 1044016, name = "GROUP_LOAD_44016", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_44016", trigger_count = 0 },
-- group加载保底-回滚后清除已创建门
{ config_id = 1044017, name = "GROUP_LOAD_44017", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_44017", trigger_count = 0 },
-- 对话重连保底-重刷门
{ config_id = 1044018, name = "GROUP_REFRESH_44018", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_44018", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 5, name = "talkShadowDoor", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_44013", "GROUP_LOAD_44017" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_START_44004", "QUEST_FINISH_44005", "QUEST_FINISH_44006", "QUEST_FINISH_44007", "QUEST_START_44009", "QUEST_FINISH_44010", "GROUP_LOAD_44015", "GROUP_LOAD_44016", "GROUP_LOAD_44017", "GROUP_REFRESH_44018" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 44001, 44002, 44003, 44008 },
regions = { },
triggers = { },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 44011, 44012, 44014 },
regions = { },
triggers = { },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_START_44004(context, evt)
-- 判断变量"talkShadowDoor"为4
if ScriptLib.GetGroupVariableValue(context, "talkShadowDoor") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_44004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006916") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_44005(context, evt)
-- 将configid为 44001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为44002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 44002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 针对当前group内变量名为 "talkShadowDoor" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "talkShadowDoor", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_44006(context, evt)
-- 将configid为 44002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为44003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 44003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 针对当前group内变量名为 "talkShadowDoor" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "talkShadowDoor", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_44007(context, evt)
-- 将configid为 44003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为44008的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 44008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 针对当前group内变量名为 "talkShadowDoor" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "talkShadowDoor", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_44009(context, evt)
-- 创建id为44001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 44001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_44010(context, evt)
-- 将configid为 44008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220133044, 4)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006916") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 针对当前group内变量名为 "talkShadowDoor" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "talkShadowDoor", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_44013(context, evt)
if ScriptLib.GetHostQuestState(context,4006916)==2 or ScriptLib.GetHostQuestState(context,4006903)==2 then
ScriptLib.RefreshGroup(context, { group_id = 220133044, suite = 2 })
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_44015(context, evt)
if ScriptLib.GetHostQuestState(context,4006904)==2 then
ScriptLib.RemoveExtraGroupSuite(context, 220133044, 3)
ScriptLib.AddExtraGroupSuite(context, 220133044, 4)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_44016(context, evt)
if ScriptLib.GetHostQuestState(context,4006904)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133044, suite = 1 })
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_44017(context, evt)
if ScriptLib.GetHostQuestState(context,4006903) == 2 then
ScriptLib.RemoveExtraGroupSuite(context, 220133044, 3)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_44018(context, evt)
if ScriptLib.GetHostQuestState(context,4006918) == 2 then
ScriptLib.AddExtraGroupSuite(context, 220133044, 4)
end
return 0
end
@@ -0,0 +1,83 @@
-- 基础信息
local base_info = {
group_id = 220133045
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 45005, gadget_id = 70310290, pos = { x = 384.971, y = 140.128, z = 2005.129 }, rot = { x = 0.000, y = 330.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 45001, shape = RegionShape.SPHERE, radius = 25, pos = { x = 384.971, y = 140.128, z = 2005.129 } }
}
-- 触发器
triggers = {
{ config_id = 1045001, name = "ENTER_REGION_45001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 45001 },
triggers = { "ENTER_REGION_45001" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 45005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,215 @@
-- 基础信息
local base_info = {
group_id = 220133046
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 46001, gadget_id = 70310306, pos = { x = -8.372, y = 144.928, z = 614.720 }, rot = { x = 4.995, y = 171.559, z = 8.905 }, level = 1, persistent = true },
{ config_id = 46002, gadget_id = 70310298, pos = { x = -8.372, y = 144.928, z = 614.720 }, rot = { x = 4.995, y = 171.559, z = 8.905 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1046003, name = "QUEST_FINISH_46003", event = EventType.EVENT_QUEST_FINISH, source = "4006923", condition = "condition_EVENT_QUEST_FINISH_46003", action = "action_EVENT_QUEST_FINISH_46003", trigger_count = 0 },
{ config_id = 1046004, name = "GROUP_REFRESH_46004", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "condition_EVENT_GROUP_REFRESH_46004", action = "action_EVENT_GROUP_REFRESH_46004" },
{ config_id = 1046005, name = "GADGET_STATE_CHANGE_46005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_46005", action = "action_EVENT_GADGET_STATE_CHANGE_46005", trigger_count = 0 },
{ config_id = 1046006, name = "QUEST_START_46006", event = EventType.EVENT_QUEST_START, source = "4006923", condition = "", action = "action_EVENT_QUEST_START_46006", trigger_count = 0 },
{ config_id = 1046007, name = "GADGET_STATE_CHANGE_46007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_46007", action = "action_EVENT_GADGET_STATE_CHANGE_46007", trigger_count = 0 },
{ config_id = 1046008, name = "GROUP_LOAD_46008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_46008", action = "action_EVENT_GROUP_LOAD_46008", trigger_count = 0 },
{ config_id = 1046009, name = "GROUP_LOAD_46009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_46009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 46001 },
regions = { },
triggers = { "QUEST_FINISH_46003", "GADGET_STATE_CHANGE_46005", "QUEST_START_46006", "GADGET_STATE_CHANGE_46007", "GROUP_LOAD_46008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 46002 },
regions = { },
triggers = { "GROUP_REFRESH_46004", "GROUP_LOAD_46009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_46003(context, evt)
--检查ID为4006923的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 4006923 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_46003(context, evt)
-- 将configid为 46001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 46001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组220133053中, configid为53001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220133053, 53001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_REFRESH_46004(context, evt)
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 220133046, 46002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_46004(context, evt)
ScriptLib.SetWeatherAreaState(context, 10074, 1)
ScriptLib.SetWeatherAreaState(context, 10073, 0)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_46005(context, evt)
if 46001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_46005(context, evt)
ScriptLib.SetWeatherAreaState(context, 10073, 1)
ScriptLib.SetWeatherAreaState(context, 10072, 0)
ScriptLib.KillEntityByConfigId(context, {group_id=220133091, config_id=91010, entity_type=EntityType.GADGET})
-- 将本组内变量名为 "Level2Sound" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "GadgetBDie", 1, 220133091) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_46006(context, evt)
-- 将configid为 46001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 46001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_46007(context, evt)
if 46001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_46007(context, evt)
ScriptLib.SetWeatherAreaState(context, 10073, 0)
ScriptLib.SetWeatherAreaState(context, 10072, 1)
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_46008(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133046, 46001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_46008(context, evt)
ScriptLib.SetWeatherAreaState(context, 10073, 1)
ScriptLib.SetWeatherAreaState(context, 10072, 0)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_46009(context, evt)
ScriptLib.SetWeatherAreaState(context, 10074, 1)
ScriptLib.SetWeatherAreaState(context, 10073, 0)
ScriptLib.SetWeatherAreaState(context, 10072, 0)
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220133047
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 47001, gadget_id = 70310299, pos = { x = -101.020, y = 214.520, z = 577.680 }, rot = { x = 4.702, y = 54.624, z = 3.394 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 47001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 220133048
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 48001, gadget_id = 70211001, pos = { x = 2173.504, y = 560.321, z = 577.735 }, rot = { x = 0.000, y = 66.355, z = 0.000 }, level = 16, drop_tag = "战斗低级群岛", isOneoff = true, persistent = true },
{ config_id = 48002, gadget_id = 70690029, pos = { x = 2158.145, y = 532.886, z = 545.386 }, 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 = { 48001, 48002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 220133049
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 49001, gadget_id = 71700380, pos = { x = 401.810, y = 145.101, z = 1976.727 }, rot = { x = 300.000, y = 149.157, z = 0.000 }, level = 1 },
{ config_id = 49002, gadget_id = 71700381, pos = { x = 401.722, y = 145.076, z = 1976.729 }, rot = { x = 270.000, y = 149.157, z = 0.000 }, level = 1 },
{ config_id = 49003, gadget_id = 71700381, pos = { x = 401.568, y = 145.073, z = 1976.696 }, rot = { x = 270.000, y = 135.000, z = 0.000 }, level = 1 },
{ config_id = 49004, gadget_id = 71700382, pos = { x = 401.189, y = 145.078, z = 1976.814 }, rot = { x = 0.000, y = 149.157, 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 = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 49001, 49002, 49003, 49004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,412 @@
-- 基础信息
local base_info = {
group_id = 220133050
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 50001, gadget_id = 70310242, pos = { x = 2256.604, y = 521.290, z = 479.627 }, rot = { x = 6.658, y = 57.486, z = 348.845 }, level = 1, interact_id = 64 },
{ config_id = 50004, gadget_id = 70310242, pos = { x = 2268.672, y = 533.289, z = 520.602 }, rot = { x = 11.525, y = 146.292, z = 351.642 }, level = 1, interact_id = 64 },
-- 浮石B
{ config_id = 50012, gadget_id = 70380320, pos = { x = 2270.846, y = 525.892, z = 501.388 }, rot = { x = 350.118, y = 277.789, z = 8.025 }, level = 1, route_id = 15, start_route = false },
-- 浮石A
{ config_id = 50013, gadget_id = 70380320, pos = { x = 2252.569, y = 528.610, z = 503.680 }, rot = { x = 350.118, y = 277.789, z = 8.025 }, level = 1, route_id = 7, start_route = false }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 敲击+StoneReadyA/B=0,启动平台
{ config_id = 1050002, name = "GADGET_STATE_CHANGE_50002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_50002", action = "action_EVENT_GADGET_STATE_CHANGE_50002", trigger_count = 0 },
-- count1 注目镜头专用
{ config_id = 1050003, name = "GADGET_STATE_CHANGE_50003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_50003", action = "action_EVENT_GADGET_STATE_CHANGE_50003" },
-- 敲击+StoneReadyA/B=0,启动平台
{ config_id = 1050005, name = "GADGET_STATE_CHANGE_50005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_50005", action = "action_EVENT_GADGET_STATE_CHANGE_50005", trigger_count = 0 },
{ config_id = 1050016, name = "GROUP_LOAD_50016", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_50016", trigger_count = 0 },
-- 运营埋点
{ config_id = 1050017, name = "GADGET_STATE_CHANGE_50017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_50017", action = "action_EVENT_GADGET_STATE_CHANGE_50017", trigger_count = 0 },
-- 运营埋点
{ config_id = 1050018, name = "GADGET_STATE_CHANGE_50018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_50018", action = "action_EVENT_GADGET_STATE_CHANGE_50018", trigger_count = 0 },
{ config_id = 1050019, name = "PLATFORM_ARRIVAL_50019", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_50019", action = "action_EVENT_PLATFORM_ARRIVAL_50019", trigger_count = 0 },
{ config_id = 1050020, name = "PLATFORM_ARRIVAL_50020", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_50020", action = "action_EVENT_PLATFORM_ARRIVAL_50020", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "StoneReadyA", value = 0, no_refresh = false },
{ config_id = 2, name = "StoneReadyB", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 50014, gadget_id = 70380320, pos = { x = 2263.496, y = 533.253, z = 516.340 }, rot = { x = 350.118, y = 277.789, z = 8.025 }, level = 1 },
{ config_id = 50015, gadget_id = 70380320, pos = { x = 2257.032, y = 521.345, z = 488.792 }, rot = { x = 350.118, y = 277.789, z = 8.025 }, level = 1 }
},
triggers = {
{ config_id = 1050006, name = "GADGET_STATE_CHANGE_50006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_50006", action = "action_EVENT_GADGET_STATE_CHANGE_50006", trigger_count = 0 },
{ config_id = 1050007, name = "GADGET_STATE_CHANGE_50007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_50007", action = "action_EVENT_GADGET_STATE_CHANGE_50007", trigger_count = 0 },
{ config_id = 1050008, name = "PLATFORM_REACH_POINT_50008", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_50008", action = "action_EVENT_PLATFORM_REACH_POINT_50008", trigger_count = 0 },
{ config_id = 1050009, name = "PLATFORM_REACH_POINT_50009", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_50009", action = "action_EVENT_PLATFORM_REACH_POINT_50009", trigger_count = 0 },
{ config_id = 1050010, name = "GADGET_STATE_CHANGE_50010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_50010", action = "action_EVENT_GADGET_STATE_CHANGE_50010", trigger_count = 0 },
{ config_id = 1050011, name = "GADGET_STATE_CHANGE_50011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_50011", action = "action_EVENT_GADGET_STATE_CHANGE_50011", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 50001, 50004, 50012, 50013 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_50002", "GADGET_STATE_CHANGE_50003", "GADGET_STATE_CHANGE_50005", "GROUP_LOAD_50016", "GADGET_STATE_CHANGE_50017", "GADGET_STATE_CHANGE_50018", "PLATFORM_ARRIVAL_50019", "PLATFORM_ARRIVAL_50020" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_50002(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133050, 50001) then
return false
end
-- 判断变量"StoneReadyA"为0
if ScriptLib.GetGroupVariableValue(context, "StoneReadyA") ~= 0 then
return false
end
-- 判断变量"StoneReadyB"为0
if ScriptLib.GetGroupVariableValue(context, "StoneReadyB") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_50002(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 50012) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 50013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 将本组内变量名为 "StoneReadyA" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "StoneReadyB" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_50003(context, evt)
if 50001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_50003(context, evt)
-- 触发镜头注目,注目位置为坐标(2258,526,502),持续时间为1.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=2258, y=526, z=502}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1.5, 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
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_50005(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133050, 50004) then
return false
end
-- 判断变量"StoneReadyA"为0
if ScriptLib.GetGroupVariableValue(context, "StoneReadyA") ~= 0 then
return false
end
-- 判断变量"StoneReadyB"为0
if ScriptLib.GetGroupVariableValue(context, "StoneReadyB") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_50005(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 50012) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 50013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 将本组内变量名为 "StoneReadyA" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "StoneReadyB" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_50016(context, evt)
-- 将本组内变量名为 "StoneReadyA" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "StoneReadyB" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_50017(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133050, 50001) then
return false
end
-- 判断变量"StoneReadyA"为0
if ScriptLib.GetGroupVariableValue(context, "StoneReadyA") ~= 0 then
return false
end
-- 判断变量"StoneReadyB"为0
if ScriptLib.GetGroupVariableValue(context, "StoneReadyB") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_50017(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2801, 2, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_50018(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133050, 50004) then
return false
end
-- 判断变量"StoneReadyA"为0
if ScriptLib.GetGroupVariableValue(context, "StoneReadyA") ~= 0 then
return false
end
-- 判断变量"StoneReadyB"为0
if ScriptLib.GetGroupVariableValue(context, "StoneReadyB") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_50018(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2801, 2, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_50019(context, evt)
-- 判断是gadgetid 为 50013的移动平台,是否到达了7 的路线中的 3 点
if 50013 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_50019(context, evt)
-- 将本组内变量名为 "StoneReadyA" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "StoneReadyB" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 50001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 50001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 50004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 50004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_50020(context, evt)
-- 判断是gadgetid 为 50012的移动平台,是否到达了15 的路线中的 3 点
if 50012 ~= evt.param1 then
return false
end
if 15 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_50020(context, evt)
-- 将本组内变量名为 "StoneReadyA" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyA", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "StoneReadyB" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "StoneReadyB", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 50001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 50001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 50004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 50004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 220133051
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 51001, gadget_id = 70290356, pos = { x = 1066.916, y = -388.466, z = 2106.010 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 51002, gadget_id = 70290356, pos = { x = 1072.130, y = -388.474, z = 2111.352 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 51004, gadget_id = 70290439, pos = { x = 1061.845, y = -388.466, z = 2116.708 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 51003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1067.238, y = -388.461, z = 2106.022 } }
}
-- 触发器
triggers = {
{ config_id = 1051003, name = "ENTER_REGION_51003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 51001, 51002, 51004 },
regions = { 51003 },
triggers = { "ENTER_REGION_51003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220133052
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 52001, gadget_id = 70500036, pos = { x = 4163.063, y = 599.281, z = 201.268 }, rot = { x = 0.000, y = 0.000, z = 346.301 }, level = 1, arguments = { 35 } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 52001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 220133053
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 53001, gadget_id = 70310184, pos = { x = -8.372, y = 144.928, z = 614.720 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 保底
{ config_id = 1053002, name = "GROUP_LOAD_53002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_53002", action = "action_EVENT_GROUP_LOAD_53002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 53001 },
regions = { },
triggers = { "GROUP_LOAD_53002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GROUP_LOAD_53002(context, evt)
-- 判断变量"GadgetBDie"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "GadgetBDie", 220133091) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_53002(context, evt)
-- 将configid为 53001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 53001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,151 @@
-- 基础信息
local base_info = {
group_id = 220133054
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 54001, gadget_id = 70310242, pos = { x = -123.454, y = 181.861, z = 625.185 }, rot = { x = 351.301, y = 299.603, z = 346.251 }, level = 1, interact_id = 64 },
{ config_id = 54002, gadget_id = 70310384, pos = { x = -104.990, y = 180.700, z = 625.750 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1054003, name = "GADGET_STATE_CHANGE_54003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_54003", action = "action_EVENT_GADGET_STATE_CHANGE_54003", trigger_count = 0 },
-- 运营埋点
{ config_id = 1054004, name = "GADGET_STATE_CHANGE_54004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_54004", action = "action_EVENT_GADGET_STATE_CHANGE_54004", trigger_count = 0 },
-- 第一次交互的注目镜头
{ config_id = 1054005, name = "GADGET_STATE_CHANGE_54005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_54005", action = "action_EVENT_GADGET_STATE_CHANGE_54005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 54001, 54002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_54003", "GADGET_STATE_CHANGE_54004", "GADGET_STATE_CHANGE_54005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_54003(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133054, 54001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_54003(context, evt)
-- 将configid为 54002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 54002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_54004(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133054, 54001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_54004(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2801, 1, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_54005(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133054, 54001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_54005(context, evt)
-- 触发镜头注目,注目位置为坐标(-103.51,181.98,623.05),持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-103.51, y=181.98, z=623.05}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, 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
return 0
end
@@ -0,0 +1,177 @@
-- 基础信息
local base_info = {
group_id = 220133055
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[55001] = { config_id = 55001, gadget_id = 70310341, pos = { x = 2380.821, y = 541.131, z = -1758.232 }, rot = { x = 330.528, y = 142.682, z = 358.826 }, level = 1 },
[55003] = { config_id = 55003, gadget_id = 70310171, pos = { x = 2379.908, y = 540.007, z = -1756.429 }, rot = { x = 359.644, y = 261.565, z = 358.570 }, level = 20, persistent = true, interact_id = 64 },
-- 大花-水平转动
[55004] = { config_id = 55004, gadget_id = 70310169, pos = { x = 2381.108, y = 539.850, z = -1758.563 }, rot = { x = 10.507, y = 141.915, z = 358.961 }, level = 20, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1
{ config_id = 1055025, name = "VARIABLE_CHANGE_55025", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_55025", action = "action_EVENT_VARIABLE_CHANGE_55025", trigger_count = 0 },
-- WindTimeA
{ config_id = 1055027, name = "TIME_AXIS_PASS_55027", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_55027", action = "action_EVENT_TIME_AXIS_PASS_55027", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1055023, name = "GADGET_STATE_CHANGE_55023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_55023", action = "action_EVENT_GADGET_STATE_CHANGE_55023", trigger_count = 0 },
{ config_id = 1055024, name = "GADGET_STATE_CHANGE_55024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_55024", action = "action_EVENT_GADGET_STATE_CHANGE_55024", trigger_count = 0 },
{ config_id = 1055026, name = "TIME_AXIS_PASS_55026", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_55026", action = "action_EVENT_TIME_AXIS_PASS_55026", trigger_count = 0 },
{ config_id = 1055028, name = "VARIABLE_CHANGE_55028", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_55028", action = "action_EVENT_VARIABLE_CHANGE_55028", trigger_count = 0 },
{ config_id = 1055029, name = "TIME_AXIS_PASS_55029", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_55029", action = "action_EVENT_TIME_AXIS_PASS_55029", trigger_count = 0 },
{ config_id = 1055030, name = "TIME_AXIS_PASS_55030", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_55030", action = "action_EVENT_TIME_AXIS_PASS_55030", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 55003, 55004 },
regions = { },
triggers = { "VARIABLE_CHANGE_55025", "TIME_AXIS_PASS_55027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 0,
monsters = { },
gadgets = { 55001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 102,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_55025(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_55025(context, evt)
-- 创建标识为"WindTimeA",时间节点为{16}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {16}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133055, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_55027(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_55027(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133055, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,212 @@
-- 基础信息
local base_info = {
group_id = 220133056
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 56001, gadget_id = 70290286, pos = { x = 40.057, y = 156.859, z = 535.697 }, rot = { x = 352.622, y = 297.305, z = 348.402 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 111} },
{ config_id = 56002, gadget_id = 70290264, pos = { x = 40.057, y = 156.859, z = 535.697 }, rot = { x = 352.622, y = 297.305, z = 348.402 }, level = 1 },
{ config_id = 56009, gadget_id = 70290502, pos = { x = 40.057, y = 156.859, z = 535.697 }, rot = { x = 352.622, y = 297.305, z = 348.402 }, level = 1, persistent = true }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 56006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 40.057, y = 156.859, z = 535.697 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1056005, name = "GADGET_STATE_CHANGE_56005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_56005", action = "action_EVENT_GADGET_STATE_CHANGE_56005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1056006, name = "LEAVE_REGION_56006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_56006", action = "action_EVENT_LEAVE_REGION_56006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1056007, name = "GADGET_CREATE_56007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_56007", action = "action_EVENT_GADGET_CREATE_56007", trigger_count = 0 },
-- if queststate 换真门
{ config_id = 1056008, name = "GROUP_LOAD_56008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_56008", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1056010, name = "TIME_AXIS_PASS_56010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_56010", action = "action_EVENT_TIME_AXIS_PASS_56010", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 56003, gadget_id = 70310172, pos = { x = 40.057, y = 156.859, z = 535.697 }, rot = { x = 352.622, y = 297.305, z = 348.402 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1056004, name = "GADGET_STATE_CHANGE_56004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_56004", action = "action_EVENT_GADGET_STATE_CHANGE_56004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 56001 },
regions = { 56006 },
triggers = { "GADGET_STATE_CHANGE_56005", "LEAVE_REGION_56006", "GADGET_CREATE_56007", "GROUP_LOAD_56008", "TIME_AXIS_PASS_56010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 56009 },
regions = { },
triggers = { "GROUP_LOAD_56008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_56005(context, evt)
-- 检测config_id为56001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 56001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_56005(context, evt)
-- 创建id为56002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 56002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_56006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133056, 56001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_56006(context, evt)
-- 将configid为 56001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133056, EntityType.GADGET, 56002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_56007(context, evt)
if 56001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_56007(context, evt)
-- 将configid为 56001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_56008(context, evt)
if ScriptLib.GetHostQuestState(context,4007010)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133056, suite = 1 })
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_56010(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_56010(context, evt)
-- 将configid为 56001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133056, EntityType.GADGET, 56002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,96 @@
-- 基础信息
local base_info = {
group_id = 220133057
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 57001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 38.483, y = 157.831, z = 536.958 } }
}
-- 触发器
triggers = {
{ config_id = 1057001, name = "ENTER_REGION_57001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_57001", action = "action_EVENT_ENTER_REGION_57001", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 57001 },
triggers = { "ENTER_REGION_57001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_57001(context, evt)
if evt.param1 ~= 57001 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_57001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006807") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 220133058
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1058001, name = "QUEST_START_58001", event = EventType.EVENT_QUEST_START, source = "", condition = "condition_EVENT_QUEST_START_58001", action = "", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,211 @@
-- 基础信息
local base_info = {
group_id = 220133059
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 59001, gadget_id = 70290286, pos = { x = 25.554, y = 144.151, z = 637.178 }, rot = { x = 1.111, y = 232.565, z = 359.494 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 201} },
{ config_id = 59002, gadget_id = 70290264, pos = { x = 25.554, y = 144.151, z = 637.178 }, rot = { x = 1.111, y = 232.565, z = 359.494 }, level = 1 }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 59006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 25.554, y = 144.151, z = 637.178 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1059005, name = "GADGET_STATE_CHANGE_59005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_59005", action = "action_EVENT_GADGET_STATE_CHANGE_59005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1059006, name = "LEAVE_REGION_59006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_59006", action = "action_EVENT_LEAVE_REGION_59006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1059007, name = "GADGET_CREATE_59007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_59007", action = "action_EVENT_GADGET_CREATE_59007", trigger_count = 0 },
-- if queststate 切空suite
{ config_id = 1059008, name = "GROUP_LOAD_59008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_59008", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1059009, name = "TIME_AXIS_PASS_59009", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_59009", action = "action_EVENT_TIME_AXIS_PASS_59009", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 59003, gadget_id = 70310172, pos = { x = 21.956, y = 143.474, z = 634.352 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1059004, name = "GADGET_STATE_CHANGE_59004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_59004", action = "action_EVENT_GADGET_STATE_CHANGE_59004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 59001 },
regions = { 59006 },
triggers = { "GADGET_STATE_CHANGE_59005", "LEAVE_REGION_59006", "GADGET_CREATE_59007", "GROUP_LOAD_59008", "TIME_AXIS_PASS_59009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = startSuit,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_59005(context, evt)
-- 检测config_id为59001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 59001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_59005(context, evt)
-- 创建id为59002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 59002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_59006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133059, 59001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_59006(context, evt)
-- 将configid为 59001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 59001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133059, EntityType.GADGET, 59002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_59007(context, evt)
if 59001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_59007(context, evt)
-- 将configid为 59001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 59001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_59008(context, evt)
if ScriptLib.GetHostQuestState(context,4006912)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133059, suite = 2 })
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_59009(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_59009(context, evt)
-- 将configid为 59001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 59001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133059, EntityType.GADGET, 59002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,194 @@
-- 基础信息
local base_info = {
group_id = 220133060
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[60001] = { config_id = 60001, gadget_id = 70690001, pos = { x = 2638.865, y = 587.650, z = -1732.336 }, rot = { x = 356.100, y = 314.911, z = 0.000 }, level = 1 },
[60002] = { config_id = 60002, gadget_id = 70690001, pos = { x = 2626.147, y = 588.874, z = -1719.658 }, rot = { x = 356.283, y = 312.866, z = 0.000 }, level = 1 },
[60003] = { config_id = 60003, gadget_id = 70310171, pos = { x = 2644.169, y = 583.978, z = -1740.864 }, rot = { x = 0.000, y = 223.612, z = 0.000 }, level = 1, persistent = true, interact_id = 64 },
-- 大花-水平转动
[60004] = { config_id = 60004, gadget_id = 70310169, pos = { x = 2642.705, y = 583.847, z = -1739.606 }, rot = { x = 6.691, y = 339.129, z = 3.526 }, level = 20, persistent = true },
[60005] = { config_id = 60005, gadget_id = 70690001, pos = { x = 2612.983, y = 590.041, z = -1707.439 }, rot = { x = 356.509, y = 310.410, z = 0.000 }, level = 1 },
[60006] = { config_id = 60006, gadget_id = 70690001, pos = { x = 2599.304, y = 591.137, z = -1695.794 }, rot = { x = 356.873, y = 306.606, z = 0.000 }, level = 1 },
[60007] = { config_id = 60007, gadget_id = 70690011, pos = { x = 2584.264, y = 568.735, z = -1684.744 }, rot = { x = 357.686, y = 298.563, z = 0.000 }, level = 1 },
[60008] = { config_id = 60008, gadget_id = 70690001, pos = { x = 2569.119, y = 592.843, z = -1676.499 }, rot = { x = 1.179, y = 276.063, z = 0.000 }, level = 1 },
[60009] = { config_id = 60009, gadget_id = 70690001, pos = { x = 2551.371, y = 592.476, z = -1674.614 }, rot = { x = 6.287, y = 265.702, z = 0.000 }, level = 1 },
[60010] = { config_id = 60010, gadget_id = 70690001, pos = { x = 2533.537, y = 590.506, z = -1675.954 }, rot = { x = 9.504, y = 262.584, z = 0.000 }, level = 1 },
[60011] = { config_id = 60011, gadget_id = 70310341, pos = { x = 2642.761, y = 585.161, z = -1739.972 }, rot = { x = 337.529, y = 337.267, z = 3.790 }, level = 20 },
[60012] = { config_id = 60012, gadget_id = 70690001, pos = { x = 2515.936, y = 587.535, z = -1678.245 }, rot = { x = 12.487, y = 261.310, z = 0.000 }, level = 1 },
[60013] = { config_id = 60013, gadget_id = 70690001, pos = { x = 2498.566, y = 583.643, z = -1680.900 }, rot = { x = 17.046, y = 262.035, z = 0.000 }, level = 1 },
[60014] = { config_id = 60014, gadget_id = 70690011, pos = { x = 2482.693, y = 550.343, z = -1682.791 }, rot = { x = 3.273, y = 246.970, z = 0.000 }, level = 1 },
[60015] = { config_id = 60015, gadget_id = 70690001, pos = { x = 2466.033, y = 572.278, z = -1689.873 }, rot = { x = 18.469, y = 238.182, z = 0.000 }, level = 1 },
[60016] = { config_id = 60016, gadget_id = 70690001, pos = { x = 2451.528, y = 566.577, z = -1698.872 }, rot = { x = 17.978, y = 235.656, z = 0.000 }, level = 1 },
[60017] = { config_id = 60017, gadget_id = 70690001, pos = { x = 2437.393, y = 561.021, z = -1708.531 }, rot = { x = 17.694, y = 234.267, z = 0.000 }, level = 1 },
[60018] = { config_id = 60018, gadget_id = 70690001, pos = { x = 2423.473, y = 555.551, z = -1718.546 }, rot = { x = 17.495, y = 233.328, z = 0.000 }, level = 1 },
[60019] = { config_id = 60019, gadget_id = 70690001, pos = { x = 2409.703, y = 550.139, z = -1728.799 }, rot = { x = 17.337, y = 232.599, z = 0.000 }, level = 1 },
[60020] = { config_id = 60020, gadget_id = 70690001, pos = { x = 2396.054, y = 544.776, z = -1739.235 }, rot = { x = 17.188, y = 231.917, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1
{ config_id = 1060024, name = "VARIABLE_CHANGE_60024", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_60024", action = "action_EVENT_VARIABLE_CHANGE_60024", trigger_count = 0 },
-- WindTimeA
{ config_id = 1060026, name = "TIME_AXIS_PASS_60026", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_60026", action = "action_EVENT_TIME_AXIS_PASS_60026", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1060022, name = "GADGET_STATE_CHANGE_60022", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_60022", action = "action_EVENT_GADGET_STATE_CHANGE_60022", trigger_count = 0 },
{ config_id = 1060023, name = "GADGET_STATE_CHANGE_60023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_60023", action = "action_EVENT_GADGET_STATE_CHANGE_60023", trigger_count = 0 },
{ config_id = 1060025, name = "TIME_AXIS_PASS_60025", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_60025", action = "action_EVENT_TIME_AXIS_PASS_60025", trigger_count = 0 },
{ config_id = 1060027, name = "VARIABLE_CHANGE_60027", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_60027", action = "action_EVENT_VARIABLE_CHANGE_60027", trigger_count = 0 },
{ config_id = 1060028, name = "TIME_AXIS_PASS_60028", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_60028", action = "action_EVENT_TIME_AXIS_PASS_60028", trigger_count = 0 },
{ config_id = 1060029, name = "TIME_AXIS_PASS_60029", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_60029", action = "action_EVENT_TIME_AXIS_PASS_60029", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 60003, 60004 },
regions = { },
triggers = { "VARIABLE_CHANGE_60024", "TIME_AXIS_PASS_60026" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 0,
monsters = { },
gadgets = { 60001, 60002, 60005, 60006, 60007, 60008, 60009, 60010, 60011, 60012, 60013, 60014, 60015, 60016, 60017, 60018, 60019, 60020 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 102,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_60024(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_60024(context, evt)
-- 创建标识为"WindTimeA",时间节点为{35}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {35}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133060, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_60026(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_60026(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133060, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,140 @@
-- 基础信息
local base_info = {
group_id = 220133061
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 61001, gadget_id = 70690001, pos = { x = 4350.821, y = 542.257, z = 227.540 }, rot = { x = 342.675, y = 238.137, z = 357.168 }, level = 1 },
{ config_id = 61002, gadget_id = 70690001, pos = { x = 4343.089, y = 545.575, z = 220.442 }, rot = { x = 343.183, y = 227.266, z = 359.889 }, level = 1 },
{ config_id = 61003, gadget_id = 70310171, pos = { x = 4361.946, y = 536.556, z = 227.816 }, rot = { x = 357.998, y = 341.774, z = 353.553 }, level = 20, state = GadgetState.GearStart, persistent = true, interact_id = 64 },
{ config_id = 61004, gadget_id = 70310166, pos = { x = 4359.771, y = 536.276, z = 229.903 }, rot = { x = 352.376, y = 223.899, z = 349.682 }, level = 20, persistent = true, worktop_config = { init_options = { 54 } } },
{ config_id = 61005, gadget_id = 70690001, pos = { x = 4333.947, y = 549.336, z = 211.997 }, rot = { x = 344.032, y = 225.198, z = 359.899 }, level = 1 },
{ config_id = 61006, gadget_id = 70690001, pos = { x = 4325.078, y = 552.912, z = 203.192 }, rot = { x = 345.284, y = 222.260, z = 359.913 }, level = 1 },
{ config_id = 61007, gadget_id = 70690001, pos = { x = 4316.626, y = 556.214, z = 193.887 }, rot = { x = 347.596, y = 217.123, z = 359.937 }, level = 1 },
{ config_id = 61008, gadget_id = 70690001, pos = { x = 4308.969, y = 559.004, z = 183.772 }, rot = { x = 353.178, y = 204.686, z = -0.005 }, level = 1 },
{ config_id = 61009, gadget_id = 70690001, pos = { x = 4304.937, y = 560.517, z = 177.160 }, rot = { x = 352.535, y = 214.059, z = 359.952 }, level = 1 },
{ config_id = 61010, gadget_id = 70690001, pos = { x = 4297.717, y = 562.206, z = 166.482 }, rot = { x = 351.270, y = 213.689, z = 359.953 }, level = 1 },
{ config_id = 61011, gadget_id = 70690027, pos = { x = 4357.718, y = 536.947, z = 228.251 }, rot = { x = 61.114, y = 215.531, z = 342.152 }, level = 20 }
},
triggers = {
{ config_id = 1061022, name = "GADGET_STATE_CHANGE_61022", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_61022", action = "action_EVENT_GADGET_STATE_CHANGE_61022", trigger_count = 0 },
{ config_id = 1061023, name = "GADGET_STATE_CHANGE_61023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_61023", action = "action_EVENT_GADGET_STATE_CHANGE_61023", trigger_count = 0 },
{ config_id = 1061024, name = "VARIABLE_CHANGE_61024", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_61024", action = "action_EVENT_VARIABLE_CHANGE_61024", trigger_count = 0 },
{ config_id = 1061025, name = "TIME_AXIS_PASS_61025", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_61025", action = "action_EVENT_TIME_AXIS_PASS_61025", trigger_count = 0 },
{ config_id = 1061026, name = "TIME_AXIS_PASS_61026", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_61026", action = "action_EVENT_TIME_AXIS_PASS_61026", trigger_count = 0 },
{ config_id = 1061027, name = "VARIABLE_CHANGE_61027", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_61027", action = "action_EVENT_VARIABLE_CHANGE_61027", trigger_count = 0 },
{ config_id = 1061028, name = "TIME_AXIS_PASS_61028", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_61028", action = "action_EVENT_TIME_AXIS_PASS_61028", trigger_count = 0 },
{ config_id = 1061029, name = "TIME_AXIS_PASS_61029", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_61029", action = "action_EVENT_TIME_AXIS_PASS_61029", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 0,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 102,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/TransferFlower"
@@ -0,0 +1,183 @@
-- 基础信息
local base_info = {
group_id = 220133062
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[62001] = { config_id = 62001, gadget_id = 70690001, pos = { x = 4233.113, y = 576.501, z = 167.437 }, rot = { x = 342.151, y = 331.253, z = 353.425 }, level = 1 },
[62002] = { config_id = 62002, gadget_id = 70690001, pos = { x = 4222.208, y = 580.359, z = 177.228 }, rot = { x = 348.227, y = 321.254, z = 357.523 }, level = 1 },
[62003] = { config_id = 62003, gadget_id = 70310171, pos = { x = 4249.788, y = 569.586, z = 146.699 }, rot = { x = 356.664, y = 33.889, z = 352.845 }, level = 20, persistent = true, interact_id = 64 },
-- 大花-水平转动
[62004] = { config_id = 62004, gadget_id = 70310169, pos = { x = 4241.731, y = 571.228, z = 160.593 }, rot = { x = 8.022, y = 317.476, z = 356.927 }, level = 20, persistent = true },
[62005] = { config_id = 62005, gadget_id = 70690001, pos = { x = 4212.556, y = 582.401, z = 187.769 }, rot = { x = 357.280, y = 329.368, z = 354.865 }, level = 1 },
[62006] = { config_id = 62006, gadget_id = 70690011, pos = { x = 4202.775, y = 555.474, z = 205.178 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[62008] = { config_id = 62008, gadget_id = 70310170, pos = { x = 4248.610, y = 569.693, z = 147.801 }, rot = { x = 356.373, y = 6.220, z = 0.042 }, level = 1, persistent = true },
[62009] = { config_id = 62009, gadget_id = 70310170, pos = { x = 4249.382, y = 570.493, z = 157.805 }, rot = { x = 352.882, y = 290.374, z = 0.378 }, level = 1, persistent = true },
[62011] = { config_id = 62011, gadget_id = 70310341, pos = { x = 4241.942, y = 572.868, z = 160.487 }, rot = { x = 341.032, y = 313.116, z = 359.196 }, level = 20 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1
{ config_id = 1062014, name = "VARIABLE_CHANGE_62014", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_62014", action = "action_EVENT_VARIABLE_CHANGE_62014", trigger_count = 0 },
-- WindTimeA
{ config_id = 1062016, name = "TIME_AXIS_PASS_62016", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_62016", action = "action_EVENT_TIME_AXIS_PASS_62016", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1062012, name = "GADGET_STATE_CHANGE_62012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_62012", action = "action_EVENT_GADGET_STATE_CHANGE_62012", trigger_count = 0 },
{ config_id = 1062013, name = "GADGET_STATE_CHANGE_62013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_62013", action = "action_EVENT_GADGET_STATE_CHANGE_62013", trigger_count = 0 },
{ config_id = 1062015, name = "TIME_AXIS_PASS_62015", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_62015", action = "action_EVENT_TIME_AXIS_PASS_62015", trigger_count = 0 },
{ config_id = 1062017, name = "VARIABLE_CHANGE_62017", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_62017", action = "action_EVENT_VARIABLE_CHANGE_62017", trigger_count = 0 },
{ config_id = 1062018, name = "TIME_AXIS_PASS_62018", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_62018", action = "action_EVENT_TIME_AXIS_PASS_62018", trigger_count = 0 },
{ config_id = 1062019, name = "TIME_AXIS_PASS_62019", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_62019", action = "action_EVENT_TIME_AXIS_PASS_62019", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 62003, 62004, 62008, 62009 },
regions = { },
triggers = { "VARIABLE_CHANGE_62014", "TIME_AXIS_PASS_62016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 0,
monsters = { },
gadgets = { 62001, 62002, 62005, 62006, 62011 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 102,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_62014(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_62014(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133062, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_62016(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_62016(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133062, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,133 @@
-- 基础信息
local base_info = {
group_id = 220133063
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 63002, gadget_id = 70900055, pos = { x = 4306.157, y = 542.361, z = 279.225 }, rot = { x = 1.911, y = 336.444, z = 347.306 }, level = 1, state = GadgetState.GearStop, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- load时判state和isfinish,保底方碑解锁
{ config_id = 1063001, name = "GROUP_LOAD_63001", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_63001", action = "action_EVENT_GROUP_LOAD_63001", trigger_count = 0 },
{ config_id = 1063003, name = "GADGET_STATE_CHANGE_63003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_63003", action = "action_EVENT_GADGET_STATE_CHANGE_63003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 63002 },
regions = { },
triggers = { "GROUP_LOAD_63001", "GADGET_STATE_CHANGE_63003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GROUP_LOAD_63001(context, evt)
-- 判断变量"isFinished"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "isFinished", 220133035) ~= 1 then
return false
end
if GadgetState.GearStop ~= ScriptLib.GetGadgetStateByConfigId(context, 220133063, 63002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_63001(context, evt)
-- 将configid为 63002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 63002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_63003(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133063, 63002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_63003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133103, 2)
-- 将本组内变量名为 "DoorCreated" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "DoorCreated", 1, 220133103) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 触发镜头注目,注目位置为坐标(4302.32542.1581290.11),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=4302.32, y=542.1581, z=290.11}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, 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
return 0
end
@@ -0,0 +1,248 @@
-- 基础信息
local base_info = {
group_id = 220133064
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 小花-水平转动
[64001] = { config_id = 64001, gadget_id = 70310170, pos = { x = 302.092, y = 152.639, z = 2019.065 }, rot = { x = 0.000, y = 48.683, z = 0.000 }, level = 1, persistent = true },
-- 小花-固定
[64002] = { config_id = 64002, gadget_id = 70310170, pos = { x = 287.885, y = 150.061, z = 2046.763 }, rot = { x = 356.305, y = 29.530, z = 356.361 }, level = 1, persistent = true },
-- 小花-固定
[64003] = { config_id = 64003, gadget_id = 70310170, pos = { x = 302.309, y = 153.846, z = 2022.993 }, rot = { x = 11.179, y = 298.359, z = 350.452 }, level = 1, persistent = true },
-- 202一发解锁
[64004] = { config_id = 64004, gadget_id = 70310186, pos = { x = 299.981, y = 150.197, z = 2064.775 }, rot = { x = 3.470, y = 259.671, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true },
[64005] = { config_id = 64005, gadget_id = 70310171, pos = { x = 298.668, y = 154.638, z = 2015.067 }, rot = { x = 0.000, y = 346.118, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true, interact_id = 64 },
-- 小花-固定
[64006] = { config_id = 64006, gadget_id = 70310170, pos = { x = 291.617, y = 152.303, z = 2028.680 }, rot = { x = 9.869, y = 38.522, z = 9.882 }, level = 1, persistent = true },
-- 小花-固定
[64007] = { config_id = 64007, gadget_id = 70310170, pos = { x = 297.937, y = 151.176, z = 2036.812 }, rot = { x = 2.436, y = 316.298, z = 354.647 }, level = 1, persistent = true },
-- 小花-固定
[64008] = { config_id = 64008, gadget_id = 70310170, pos = { x = 296.126, y = 154.682, z = 2016.587 }, rot = { x = 7.062, y = 44.802, z = 358.931 }, level = 1, persistent = true },
-- 小花-固定
[64009] = { config_id = 64009, gadget_id = 70310170, pos = { x = 293.234, y = 149.801, z = 2065.995 }, rot = { x = 345.994, y = 100.477, z = 0.350 }, level = 1, persistent = true },
-- 小花-固定
[64010] = { config_id = 64010, gadget_id = 70310170, pos = { x = 293.558, y = 150.638, z = 2056.388 }, rot = { x = 6.600, y = 356.215, z = 5.327 }, level = 1, persistent = true },
-- 1
[64013] = { config_id = 64013, gadget_id = 70950157, pos = { x = 295.390, y = 151.675, z = 2069.255 }, rot = { x = 5.454, y = 312.388, z = 84.323 }, level = 1 },
-- 2
[64014] = { config_id = 64014, gadget_id = 70950157, pos = { x = 295.364, y = 161.716, z = 2070.760 }, rot = { x = 5.454, y = 312.388, z = 84.323 }, level = 1 },
-- 3
[64015] = { config_id = 64015, gadget_id = 70950157, pos = { x = 298.597, y = 161.127, z = 2065.298 }, rot = { x = 273.816, y = 34.698, z = 26.585 }, level = 1 },
-- 4
[64016] = { config_id = 64016, gadget_id = 70950157, pos = { x = 299.661, y = 154.584, z = 2059.695 }, rot = { x = 5.454, y = 357.956, z = 84.323 }, level = 1 },
-- 5
[64017] = { config_id = 64017, gadget_id = 70950157, pos = { x = 300.274, y = 161.077, z = 2061.135 }, rot = { x = 82.488, y = 201.322, z = 301.855 }, level = 1 },
-- 6
[64018] = { config_id = 64018, gadget_id = 70950157, pos = { x = 299.728, y = 163.658, z = 2065.068 }, rot = { x = 5.454, y = 357.956, z = 84.323 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1064011, name = "QUEST_FINISH_64011", event = EventType.EVENT_QUEST_FINISH, source = "4006904", condition = "", action = "action_EVENT_QUEST_FINISH_64011", trigger_count = 0 },
{ config_id = 1064012, name = "ANY_GADGET_DIE_64012", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_64012", action = "action_EVENT_ANY_GADGET_DIE_64012", trigger_count = 0 },
-- 4006905 任务保底
{ config_id = 1064019, name = "QUEST_START_64019", event = EventType.EVENT_QUEST_START, source = "4006905", condition = "condition_EVENT_QUEST_START_64019", action = "action_EVENT_QUEST_START_64019", trigger_count = 0 },
-- 4006905 任务保底
{ config_id = 1064020, name = "GROUP_LOAD_64020", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_64020", action = "action_EVENT_GROUP_LOAD_64020", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "doorDie", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 64001, 64002, 64003, 64004, 64005, 64006, 64007, 64008, 64009, 64010, 64013, 64014, 64015, 64016, 64017, 64018 },
regions = { },
triggers = { "QUEST_FINISH_64011", "ANY_GADGET_DIE_64012", "QUEST_START_64019", "GROUP_LOAD_64020" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_64011(context, evt)
-- 将configid为 64005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 64005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_64012(context, evt)
if 64004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_64012(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006905") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133064, EntityType.GADGET, 64013 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133064, EntityType.GADGET, 64014 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133064, EntityType.GADGET, 64015 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133064, EntityType.GADGET, 64016 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133064, EntityType.GADGET, 64017 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133064, EntityType.GADGET, 64018 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 将本组内变量名为 "doorDie" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "doorDie", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_64019(context, evt)
-- 判断变量"doorDie"为1
if ScriptLib.GetGroupVariableValue(context, "doorDie") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_64019(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006905") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_64020(context, evt)
-- 判断变量"doorDie"为1
if ScriptLib.GetGroupVariableValue(context, "doorDie") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_64020(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006905") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,253 @@
-- 基础信息
local base_info = {
group_id = 220133065
}
-- Trigger变量
local defs = {
duration = 23,
group_id = 220133065
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 65001, gadget_id = 70211111, pos = { x = 31.930, y = 158.375, z = 543.421 }, rot = { x = 13.956, y = 37.945, z = 349.537 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true },
{ config_id = 65002, gadget_id = 70350083, pos = { x = -40.998, y = 162.200, z = 494.633 }, rot = { x = 344.396, y = 293.045, z = 353.060 }, level = 1, persistent = true },
{ config_id = 65003, gadget_id = 70360001, pos = { x = -40.707, y = 163.120, z = 494.644 }, rot = { x = 344.396, y = 293.045, z = 352.585 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1065005, name = "CHALLENGE_SUCCESS_65005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_65005", trigger_count = 0 },
{ config_id = 1065006, name = "CHALLENGE_FAIL_65006", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_65006", trigger_count = 0 },
{ config_id = 1065007, name = "GADGET_STATE_CHANGE_65007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_65007", action = "action_EVENT_GADGET_STATE_CHANGE_65007", trigger_count = 0 },
{ config_id = 1065008, name = "GADGET_STATE_CHANGE_65008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_65008", action = "", tag = "202" },
{ config_id = 1065009, name = "GADGET_CREATE_65009", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_65009", action = "action_EVENT_GADGET_CREATE_65009", trigger_count = 0 },
{ config_id = 1065010, name = "SELECT_OPTION_65010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_65010", action = "action_EVENT_SELECT_OPTION_65010", trigger_count = 0 },
-- 2.0rel加的保底,如果group在挑战中间被卸载了,需要在加载时加个保底置回初始状态
{ config_id = 1065011, name = "GROUP_LOAD_65011", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_65011", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 65002, 65003 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_65005", "CHALLENGE_FAIL_65006", "GADGET_STATE_CHANGE_65007", "GADGET_STATE_CHANGE_65008", "GADGET_CREATE_65009", "SELECT_OPTION_65010", "GROUP_LOAD_65011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 65001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 65002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_65005(context, evt)
-- 将configid为 65002 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 65002, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 220133065, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220133065, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_65006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133065, 2)
-- 将configid为 65002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 65002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为65003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_65007(context, evt)
if 65002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_65007(context, evt)
-- 202号挑战,duration内开启宝箱
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 202, defs.duration, 7, 202, 1) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_65008(context, evt)
if 65001 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_65009(context, evt)
if 65003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_65009(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220133065, 65003, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_65010(context, evt)
-- 判断是gadgetid 65003 option_id 177
if 65003 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_65010(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 65002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 65002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_65011(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133065, 2)
-- 将configid为 65002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 65002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为65003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,285 @@
-- 基础信息
local base_info = {
group_id = 220133066
}
-- Trigger变量
local defs = {
gadget_animal = 66001,
pointarray_ID = 4,
maxPointCount = 8,
gadget_Reward = 0,
pointInfo = {1,6,7,8},
addSuite_Info = 0,
animal_state = {0,0,0,0}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 66001, gadget_id = 70360358, pos = { x = 5089.773, y = 552.180, z = -1777.721 }, rot = { x = 13.940, y = 346.703, z = 9.623 }, level = 1, start_route = false, persistent = true, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1066003, name = "PLATFORM_REACH_POINT_66003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_66003", action = "action_EVENT_PLATFORM_REACH_POINT_66003", trigger_count = 0 },
-- 移动到点7时变为鹤的形象
{ config_id = 1066006, name = "PLATFORM_REACH_POINT_66006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_66006", action = "action_EVENT_PLATFORM_REACH_POINT_66006", trigger_count = 0 },
-- 移动到点8时变为鹤的形象
{ config_id = 1066008, name = "PLATFORM_REACH_POINT_66008", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_66008", action = "action_EVENT_PLATFORM_REACH_POINT_66008", trigger_count = 0 },
-- 循环到点1时作为猪的形象
{ config_id = 1066009, name = "PLATFORM_REACH_POINT_66009", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_66009", action = "action_EVENT_PLATFORM_REACH_POINT_66009", trigger_count = 0 },
-- 循环到点6next=3 时setnext=1
{ config_id = 1066010, name = "VARIABLE_CHANGE_66010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_66010", action = "action_EVENT_VARIABLE_CHANGE_66010", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 3, name = "A", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1066004, name = "GADGET_CREATE_66004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_66004", action = "action_EVENT_GADGET_CREATE_66004", trigger_count = 0 },
{ config_id = 1066005, name = "PLATFORM_REACH_POINT_66005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "", action = "action_EVENT_PLATFORM_REACH_POINT_66005", trigger_count = 0 },
{ config_id = 1066007, name = "PLATFORM_ARRIVAL_66007", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_66007", action = "action_EVENT_PLATFORM_ARRIVAL_66007", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
io_type = 1,
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suite_disk = {
[1] = {
gadgets = {
{ config_id = 66001, state = 0, platform_info = { point_id = 0, move_type = 1, route_id = 0, route_index = 0, is_started = false } }
},
monsters = {
},
regions = { },
triggers = { "PLATFORM_REACH_POINT_66003", "PLATFORM_REACH_POINT_66006", "PLATFORM_REACH_POINT_66008", "PLATFORM_REACH_POINT_66009", "VARIABLE_CHANGE_66010" },
npcs = { },
variables = {
{ config_id = 3, name = "A", value = 0, no_refresh = true }
}
},
[2] = {
gadgets = {
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
{ config_id = 3, name = "A", value = 0, no_refresh = true }
}
},
[3] = {
gadgets = {
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
{ config_id = 3, name = "A", value = 0, no_refresh = true }
}
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_66003(context, evt)
-- 判断是gadgetid 为 66001的移动平台,是否到达了4 的点集中的 6 点
if 66001 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
if 6 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_66003(context, evt)
-- 将configid为 66001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 66001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_66006(context, evt)
-- 判断是gadgetid 为 66001的移动平台,是否到达了4 的点集中的 7 点
if 66001 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
if 7 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_66006(context, evt)
-- 将configid为 66001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 66001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_66008(context, evt)
-- 判断是gadgetid 为 66001的移动平台,是否到达了4 的点集中的 8 点
if 66001 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
if 8 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_66008(context, evt)
-- 将configid为 66001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 66001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_66009(context, evt)
-- 判断是gadgetid 为 66001的移动平台,是否到达了4 的点集中的 1 点
if 66001 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_66009(context, evt)
-- 将configid为 66001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 66001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_66010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"next_index"为3
if ScriptLib.GetGroupVariableValue(context, "next_index") ~= 3 then
return false
end
-- 判断变量"A"为0
if ScriptLib.GetGroupVariableValue(context, "A") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_66010(context, evt)
-- 将本组内变量名为 "next_index" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "next_index", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/AnimalSeelie"
@@ -0,0 +1,238 @@
-- 基础信息
local base_info = {
group_id = 220133067
}
-- Trigger变量
local defs = {
active_step = 201,
inactive_step = 0,
gadget_array = {67001,67004,67003,67002},
reset_gear_list = {}
}
-- DEFS_MISCS
local v = 0
local v_error = 0
local max_bit = #defs.gadget_array
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 67001, gadget_id = 70900007, pos = { x = 5092.206, y = 548.364, z = -1766.356 }, rot = { x = 26.719, y = 358.148, z = 21.666 }, level = 1, persistent = true },
{ config_id = 67002, gadget_id = 70900007, pos = { x = 5085.801, y = 547.747, z = -1771.844 }, rot = { x = 20.168, y = -0.001, z = 22.987 }, level = 1, persistent = true },
{ config_id = 67003, gadget_id = 70900007, pos = { x = 5093.983, y = 551.720, z = -1773.450 }, rot = { x = 13.575, y = 3.161, z = 18.157 }, level = 1, persistent = true },
{ config_id = 67004, gadget_id = 70900007, pos = { x = 5087.074, y = 549.926, z = -1776.622 }, rot = { x = 16.100, y = 359.188, z = 18.643 }, level = 1, persistent = true },
{ config_id = 67006, gadget_id = 70211111, pos = { x = 5090.319, y = 549.386, z = -1770.986 }, rot = { x = 2.043, y = 24.947, z = 27.368 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true, autopick = true },
{ config_id = 67012, gadget_id = 70690029, pos = { x = 5073.315, y = 537.064, z = -1794.211 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 67005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 5100.805, y = 550.982, z = -1787.451 } }
}
-- 触发器
triggers = {
{ config_id = 1067005, name = "ENTER_REGION_67005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_67005" },
{ config_id = 1067007, name = "GADGET_STATE_CHANGE_67007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_67007", action = "action_EVENT_GADGET_STATE_CHANGE_67007", trigger_count = 0 },
{ config_id = 1067008, name = "VARIABLE_CHANGE_67008", event = EventType.EVENT_VARIABLE_CHANGE, source = "gear_reset", condition = "", action = "action_EVENT_VARIABLE_CHANGE_67008", trigger_count = 0 },
{ config_id = 1067009, name = "VARIABLE_CHANGE_67009", event = EventType.EVENT_VARIABLE_CHANGE, source = "trigger_output", condition = "condition_EVENT_VARIABLE_CHANGE_67009", action = "", trigger_count = 0 },
-- 成功执行以及 通信AB
{ config_id = 1067010, name = "VARIABLE_CHANGE_67010", event = EventType.EVENT_VARIABLE_CHANGE, source = "trigger_output", condition = "condition_EVENT_VARIABLE_CHANGE_67010", action = "action_EVENT_VARIABLE_CHANGE_67010", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "sort", value = 0, no_refresh = true },
{ config_id = 2, name = "gear_reset", value = 0, no_refresh = true },
{ config_id = 3, name = "v_error", value = 0, no_refresh = true },
{ config_id = 4, name = "trigger_output", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1067011, name = "GADGET_CREATE_67011", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_67011", action = "action_EVENT_GADGET_CREATE_67011", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 67001, 67002, 67003, 67004, 67012 },
regions = { 67005 },
triggers = { "ENTER_REGION_67005", "GADGET_STATE_CHANGE_67007", "VARIABLE_CHANGE_67008", "VARIABLE_CHANGE_67009", "VARIABLE_CHANGE_67010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_67005(context, evt)
-- 将本组内变量名为 "next_index" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "next_index", 3, 220133066) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_67007(context, evt)
for i=1,#defs.gadget_array do
if defs.gadget_array[i] == evt.param2 then
return true
end
end
return false
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_67007(context, evt)
if max_bit > 9 or max_bit <= 1 then
return -1
end
if evt.param1 == defs.active_step then
--操作顺序入栈
for i = 1,max_bit do
if defs.gadget_array[i] == evt.param2 then
v = ScriptLib.GetGroupVariableValue(context, "sort")
v = 10*v + i
ScriptLib.SetGroupVariableValue(context, "sort", v)
break
end
if i == max_bit and defs.gadget_array[i] ~= evt.param2 then
ScriptLib.SetGroupVariableValue(context, "v_error", 1)
v = 10*v
end
end
end
--v的位数足够时进行出栈检测
if v > 10^(max_bit-1) then
v_error = ScriptLib.GetGroupVariableValue(context, "v_error")
--v_error有问题时直接清空栈并重置
if 0 == v_error then
for i=max_bit,1,-1 do
if v%10 ~= i then
v_error = 1
break
end
v = math.floor(v/10)
end
end
v = 0
if v_error ~= 1 then
v_error = -1
end
ScriptLib.SetGroupVariableValue(context, "sort", v)
ScriptLib.SetGroupVariableValue(context, "gear_reset", v_error)
ScriptLib.SetGroupVariableValue(context, "v_error", 0)
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_67008(context, evt)
if evt.param1 == evt.param2 then return -1 end
if evt.param1 == 1 then
if #defs.reset_gear_list == 0 then
defs.reset_gear_list = suites[1].gadgets
end
for i=1,#defs.reset_gear_list do
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, defs.reset_gear_list[i], defs.inactive_step)
end
ScriptLib.SetGroupVariableValue(context, "trigger_output", -1)
elseif -1 == evt.param1 then
--外接标记
ScriptLib.SetGroupVariableValue(context, "trigger_output", 1)
end
--还原标记
ScriptLib.SetGroupVariableValue(context, "gear_reset", 0)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_67009(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == -1 then
return true
end
return false
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_67010(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 > 0 then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_67010(context, evt)
-- 创建id为67006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 67006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220133027, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220133066, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 220133068
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 2, name = "SingleTick", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 68001, gadget_id = 70310242, pos = { x = 5063.180, y = 520.446, z = -1621.103 }, rot = { x = 352.108, y = 292.663, z = 356.212 }, level = 1, interact_id = 64 },
{ config_id = 68002, gadget_id = 70380320, pos = { x = 5028.852, y = 532.757, z = -1629.253 }, rot = { x = 359.428, y = 252.203, z = 355.718 }, level = 1, route_id = 8, start_route = false },
{ config_id = 68003, gadget_id = 70310242, pos = { x = 5027.238, y = 523.081, z = -1655.644 }, rot = { x = 353.111, y = 173.516, z = 4.905 }, level = 1, interact_id = 64 },
{ config_id = 68010, gadget_id = 70380320, pos = { x = 5028.717, y = 543.838, z = -1614.948 }, rot = { x = 357.352, y = 233.543, z = 1.394 }, level = 1, route_id = 9, start_route = false },
{ config_id = 68011, gadget_id = 70380320, pos = { x = 5038.885, y = 528.238, z = -1604.005 }, rot = { x = 358.327, y = 160.717, z = 5.988 }, level = 1, route_id = 10, start_route = false }
},
triggers = {
{ config_id = 1068004, name = "GADGET_STATE_CHANGE_68004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_68004", action = "action_EVENT_GADGET_STATE_CHANGE_68004", trigger_count = 0 },
{ config_id = 1068005, name = "GADGET_STATE_CHANGE_68005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_68005", action = "action_EVENT_GADGET_STATE_CHANGE_68005", trigger_count = 0 },
{ config_id = 1068006, name = "GADGET_STATE_CHANGE_68006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_68006", action = "action_EVENT_GADGET_STATE_CHANGE_68006", trigger_count = 0 },
{ config_id = 1068007, name = "GADGET_STATE_CHANGE_68007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_68007", action = "action_EVENT_GADGET_STATE_CHANGE_68007", trigger_count = 0 },
{ config_id = 1068008, name = "GADGET_STATE_CHANGE_68008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_68008", action = "action_EVENT_GADGET_STATE_CHANGE_68008", trigger_count = 0 },
{ config_id = 1068009, name = "GADGET_STATE_CHANGE_68009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_68009", action = "action_EVENT_GADGET_STATE_CHANGE_68009", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,173 @@
-- 基础信息
local base_info = {
group_id = 220133069
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[69001] = { config_id = 69001, gadget_id = 70690001, pos = { x = 5065.692, y = 523.192, z = -1615.809 }, rot = { x = 342.141, y = 274.393, z = 1.840 }, level = 1 },
[69002] = { config_id = 69002, gadget_id = 70690001, pos = { x = 5048.702, y = 527.478, z = -1618.654 }, rot = { x = 343.224, y = 241.738, z = 358.700 }, level = 1 },
[69003] = { config_id = 69003, gadget_id = 70310171, pos = { x = 5061.225, y = 520.823, z = -1622.940 }, rot = { x = 8.911, y = 89.287, z = 7.457 }, level = 20, persistent = true, interact_id = 64 },
-- 大花-水平转动
[69004] = { config_id = 69004, gadget_id = 70310169, pos = { x = 5075.229, y = 518.902, z = -1616.645 }, rot = { x = 3.023, y = 306.019, z = 355.785 }, level = 20, persistent = true },
[69005] = { config_id = 69005, gadget_id = 70690001, pos = { x = 5032.926, y = 530.375, z = -1636.371 }, rot = { x = 349.115, y = 195.536, z = 1.331 }, level = 1 },
[69007] = { config_id = 69007, gadget_id = 70310170, pos = { x = 5062.767, y = 520.443, z = -1621.297 }, rot = { x = 4.594, y = 106.003, z = 9.620 }, level = 1, persistent = true },
[69008] = { config_id = 69008, gadget_id = 70310170, pos = { x = 5071.639, y = 520.014, z = -1624.031 }, rot = { x = 10.175, y = 23.917, z = 356.836 }, level = 1, persistent = true },
-- 传音花风场
[69011] = { config_id = 69011, gadget_id = 70310341, pos = { x = 5074.941, y = 520.473, z = -1615.377 }, rot = { x = 340.657, y = 272.310, z = 0.262 }, level = 20 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1 and 花大=0
{ config_id = 1069025, name = "VARIABLE_CHANGE_69025", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_69025", action = "action_EVENT_VARIABLE_CHANGE_69025", trigger_count = 0 },
-- WindTimeA
{ config_id = 1069027, name = "TIME_AXIS_PASS_69027", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_69027", action = "action_EVENT_TIME_AXIS_PASS_69027", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1069026, name = "TIME_AXIS_PASS_69026", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_69026", action = "action_EVENT_TIME_AXIS_PASS_69026", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 69003, 69004, 69007, 69008 },
regions = { },
triggers = { "VARIABLE_CHANGE_69025", "TIME_AXIS_PASS_69027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 0,
monsters = { },
gadgets = { 69001, 69002, 69005, 69011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_69025(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 220133069, 69004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_69025(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133069, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_69027(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_69027(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133069, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,290 @@
-- 基础信息
local base_info = {
group_id = 220133070
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
[70004] = {0,104},
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[70001] = { config_id = 70001, gadget_id = 70690001, pos = { x = 5030.495, y = 529.525, z = -1669.224 }, rot = { x = 349.934, y = 52.646, z = 359.937 }, level = 1 },
[70002] = { config_id = 70002, gadget_id = 70690001, pos = { x = 5041.013, y = 529.235, z = -1659.799 }, rot = { x = 351.386, y = 36.183, z = 359.889 }, level = 1 },
[70003] = { config_id = 70003, gadget_id = 70310170, pos = { x = 5018.709, y = 523.281, z = -1657.248 }, rot = { x = 345.825, y = 158.139, z = 359.115 }, level = 1, persistent = true },
-- 大花-水平转动
[70004] = { config_id = 70004, gadget_id = 70310166, pos = { x = 5019.285, y = 526.793, z = -1675.660 }, rot = { x = 347.947, y = 158.377, z = 11.205 }, level = 20, persistent = true, worktop_config = { init_options = { 54 } } },
[70006] = { config_id = 70006, gadget_id = 70690001, pos = { x = 5023.593, y = 530.856, z = -1685.808 }, rot = { x = 345.902, y = 169.627, z = 0.000 }, level = 1 },
[70007] = { config_id = 70007, gadget_id = 70690001, pos = { x = 5026.307, y = 533.630, z = -1696.456 }, rot = { x = 346.832, y = 139.851, z = 3.635 }, level = 1 },
[70009] = { config_id = 70009, gadget_id = 70310170, pos = { x = 5021.024, y = 525.037, z = -1663.028 }, rot = { x = 358.001, y = 150.752, z = 13.861 }, level = 1, persistent = true },
[70010] = { config_id = 70010, gadget_id = 70310170, pos = { x = 5024.499, y = 525.216, z = -1669.381 }, rot = { x = 347.645, y = 218.869, z = 354.689 }, level = 1, persistent = true },
[70011] = { config_id = 70011, gadget_id = 70310341, pos = { x = 5018.857, y = 528.727, z = -1676.479 }, rot = { x = 339.119, y = 152.705, z = 353.977 }, level = 20 },
[70012] = { config_id = 70012, gadget_id = 70310341, pos = { x = 5019.348, y = 527.817, z = -1674.848 }, rot = { x = 341.847, y = 57.212, z = 352.298 }, level = 20 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 喷风中途改102
{ config_id = 1070023, name = "GADGET_STATE_CHANGE_70023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_70023", action = "action_EVENT_GADGET_STATE_CHANGE_70023", trigger_count = 0 },
-- 喷风中途改0
{ config_id = 1070024, name = "GADGET_STATE_CHANGE_70024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_70024", action = "action_EVENT_GADGET_STATE_CHANGE_70024", trigger_count = 0 },
-- if big_flower==1 and 花大=0
{ config_id = 1070025, name = "VARIABLE_CHANGE_70025", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_70025", action = "action_EVENT_VARIABLE_CHANGE_70025", trigger_count = 0 },
-- WindTimeA
{ config_id = 1070027, name = "TIME_AXIS_PASS_70027", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_70027", action = "action_EVENT_TIME_AXIS_PASS_70027", trigger_count = 0 },
-- if big_flower==1 and 花大=102
{ config_id = 1070028, name = "VARIABLE_CHANGE_70028", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_70028", action = "action_EVENT_VARIABLE_CHANGE_70028", trigger_count = 0 },
-- WindTimeB
{ config_id = 1070030, name = "TIME_AXIS_PASS_70030", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_70030", action = "action_EVENT_TIME_AXIS_PASS_70030", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1070026, name = "TIME_AXIS_PASS_70026", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_70026", action = "action_EVENT_TIME_AXIS_PASS_70026", trigger_count = 0 },
{ config_id = 1070029, name = "TIME_AXIS_PASS_70029", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_70029", action = "action_EVENT_TIME_AXIS_PASS_70029", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 70003, 70004, 70009, 70010 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_70023", "GADGET_STATE_CHANGE_70024", "VARIABLE_CHANGE_70025", "TIME_AXIS_PASS_70027", "VARIABLE_CHANGE_70028", "TIME_AXIS_PASS_70030" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 0,
monsters = { },
gadgets = { 70006, 70007, 70011 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 102,
monsters = { },
gadgets = { 70001, 70002, 70012 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_70023(context, evt)
if 70004 ~= evt.param2 or GadgetState.ChestTrap ~= evt.param1 then
return false
end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_70023(context, evt)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133070, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_70024(context, evt)
if 70004 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_70024(context, evt)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133070, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_70025(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 220133070, 70004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_70025(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133070, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_70027(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_70027(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133070, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_70028(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
if GadgetState.ChestBramble ~= ScriptLib.GetGadgetStateByConfigId(context, 220133070, 70004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_70028(context, evt)
-- 创建标识为"WindTimeB",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeB", {15}, false)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220133070, 3)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_70030(context, evt)
if "WindTimeB" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_70030(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133070, 3)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,167 @@
-- 基础信息
local base_info = {
group_id = 220133071
}
-- DEFS_MISCS
local defs =
{
lines=
{
[71020] = 71019,
[71009] = 71027,
} ,
--玩法完成时 这个gadget如果为GearStop则会被设为Default
finish_gadget = 71010,
--起点格configid
starter = 71006,
--终点格configid
ender = 71023,
--矩阵 用于踩格子时判断是否相邻
matrix =
{
{71014,71005,71002,71025,71028,71009, 0, 0,},
{71003,71015, 0,71024,71021,71022, 0,71023,},
{ 0, 0, 0,71020,71001,71029, 0, 0,},
{ 0, 0, 0, 0,71006, 0, 0, 0,},
},
--每个还原格控制哪些离散格
reveal_tiles=
{
[71005] = {71007},
},
--离散格拼入哪个位置,拼入位置需要布设普通格,初始状态为903
reveal_match=
{
[71007] = 71002,
}
,
--移动格的目标位置和使用的点阵
movable_pos =
{--[移动格子configID] = new_pos: 两位数字的矩阵坐标,x是十位,y是个位
[71020] = { new_pos = 32 },
[71009] = { new_pos = 18 },
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[71001] = { config_id = 71001, gadget_id = 70360350, pos = { x = 5025.541, y = 524.700, z = -1661.390 }, rot = { x = 352.678, y = 209.950, z = 336.851 }, level = 1 },
-- 隐藏态
[71002] = { config_id = 71002, gadget_id = 70360356, pos = { x = 5033.311, y = 526.328, z = -1658.732 }, rot = { x = 2.359, y = 202.695, z = 336.212 }, level = 1, state = GadgetState.Action03 },
[71003] = { config_id = 71003, gadget_id = 70360350, pos = { x = 5033.454, y = 524.659, z = -1652.237 }, rot = { x = 352.678, y = 209.950, z = 332.906 }, level = 1 },
[71005] = { config_id = 71005, gadget_id = 70360352, pos = { x = 5034.402, y = 526.283, z = -1656.022 }, rot = { x = 352.678, y = 209.950, z = 336.810 }, level = 1 },
[71006] = { config_id = 71006, gadget_id = 70360354, pos = { x = 5022.960, y = 524.062, z = -1659.997 }, rot = { x = 352.678, y = 209.950, z = 356.817 }, level = 1 },
[71007] = { config_id = 71007, gadget_id = 70360353, pos = { x = 5035.138, y = 529.654, z = -1660.081 }, rot = { x = 332.872, y = 221.470, z = 262.220 }, level = 1 },
-- 移动平台移动B
[71009] = { config_id = 71009, gadget_id = 70360351, pos = { x = 5028.979, y = 527.166, z = -1666.545 }, rot = { x = 352.678, y = 209.950, z = 334.191 }, level = 1, route_id = 12, start_route = false },
[71010] = { config_id = 71010, gadget_id = 70310171, pos = { x = 5018.608, y = 522.972, z = -1655.766 }, rot = { x = 355.299, y = 122.839, z = 9.290 }, level = 1, state = GadgetState.GearStop, persistent = true, interact_id = 64 },
[71014] = { config_id = 71014, gadget_id = 70360350, pos = { x = 5035.828, y = 525.919, z = -1653.419 }, rot = { x = 352.678, y = 209.950, z = 333.948 }, level = 1 },
[71015] = { config_id = 71015, gadget_id = 70360350, pos = { x = 5031.970, y = 525.041, z = -1654.813 }, rot = { x = 352.678, y = 209.950, z = 332.906 }, level = 1 },
[71019] = { config_id = 71019, gadget_id = 70310349, pos = { x = 5027.090, y = 524.365, z = -1658.342 }, rot = { x = 7.094, y = 31.037, z = 12.019 }, level = 1 },
-- 移动平台移动A
[71020] = { config_id = 71020, gadget_id = 70360351, pos = { x = 5026.969, y = 524.444, z = -1658.758 }, rot = { x = 352.678, y = 209.950, z = 338.246 }, level = 1, route_id = 11, start_route = false },
[71021] = { config_id = 71021, gadget_id = 70360350, pos = { x = 5027.993, y = 525.666, z = -1662.735 }, rot = { x = 352.678, y = 209.950, z = 339.760 }, level = 1 },
[71022] = { config_id = 71022, gadget_id = 70360350, pos = { x = 5026.523, y = 526.044, z = -1665.286 }, rot = { x = 352.678, y = 209.950, z = 339.760 }, level = 1 },
[71023] = { config_id = 71023, gadget_id = 70360355, pos = { x = 5023.246, y = 526.890, z = -1670.985 }, rot = { x = 352.678, y = 209.950, z = 338.721 }, level = 1 },
[71024] = { config_id = 71024, gadget_id = 70360350, pos = { x = 5029.469, y = 525.286, z = -1660.173 }, rot = { x = 352.678, y = 209.950, z = 339.760 }, level = 1 },
[71025] = { config_id = 71025, gadget_id = 70360350, pos = { x = 5031.934, y = 526.406, z = -1661.417 }, rot = { x = 352.678, y = 209.950, z = 334.191 }, level = 1 },
[71027] = { config_id = 71027, gadget_id = 70310349, pos = { x = 5028.689, y = 527.427, z = -1666.451 }, rot = { x = 352.678, y = 209.950, z = 348.117 }, level = 1 },
[71028] = { config_id = 71028, gadget_id = 70360350, pos = { x = 5030.463, y = 526.784, z = -1663.970 }, rot = { x = 352.678, y = 209.950, z = 334.191 }, level = 1 },
[71029] = { config_id = 71029, gadget_id = 70360350, pos = { x = 5024.052, y = 525.003, z = -1663.981 }, rot = { x = 352.678, y = 209.950, z = 339.969 }, level = 1 }
}
-- 区域
regions = {
-- 玩法限定区域
[71026] = { config_id = 71026, shape = RegionShape.SPHERE, radius = 18, pos = { x = 5028.278, y = 525.561, z = -1661.656 } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 71017, gadget_id = 70360351, pos = { x = 5029.541, y = 523.824, z = -1653.569 }, rot = { x = 352.678, y = 209.950, z = 336.409 }, level = 1 },
{ config_id = 71018, gadget_id = 70360351, pos = { x = 5025.701, y = 528.010, z = -1672.234 }, rot = { x = 352.678, y = 209.950, z = 334.191 }, level = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 71010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 71001, 71002, 71003, 71005, 71006, 71007, 71009, 71014, 71015, 71019, 71020, 71021, 71022, 71023, 71024, 71025, 71027, 71028, 71029 },
regions = { 71026 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/DrawOneLine_Dreamland"
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220133072
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 72001, gadget_id = 70310342, pos = { x = 5097.612, y = 551.345, z = -1770.660 }, 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 = { 72001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,247 @@
-- 基础信息
local base_info = {
group_id = 220133073
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
[73010] = {0,102},
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[73001] = { config_id = 73001, gadget_id = 70690001, pos = { x = 5062.760, y = 540.984, z = -1741.590 }, rot = { x = 332.101, y = 133.735, z = 0.000 }, level = 1 },
[73002] = { config_id = 73002, gadget_id = 70690001, pos = { x = 5068.108, y = 544.903, z = -1746.708 }, rot = { x = 334.381, y = 149.071, z = 0.000 }, level = 1 },
[73003] = { config_id = 73003, gadget_id = 70211164, pos = { x = 5056.885, y = 536.257, z = -1732.106 }, rot = { x = 10.948, y = 29.717, z = 6.187 }, level = 16, drop_tag = "解谜低级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
-- 大花-水平转动
[73004] = { config_id = 73004, gadget_id = 70310169, pos = { x = 5055.698, y = 536.621, z = -1733.853 }, rot = { x = 7.469, y = 138.624, z = 1.215 }, level = 20, persistent = true },
[73005] = { config_id = 73005, gadget_id = 70690001, pos = { x = 5071.977, y = 548.512, z = -1753.164 }, rot = { x = 334.381, y = 149.071, z = 0.000 }, level = 1 },
[73009] = { config_id = 73009, gadget_id = 70310170, pos = { x = 5051.625, y = 534.161, z = -1720.520 }, rot = { x = 359.445, y = 120.155, z = 3.567 }, level = 1, persistent = true },
-- 0 102
[73010] = { config_id = 73010, gadget_id = 70310167, pos = { x = 5048.518, y = 532.924, z = -1718.280 }, rot = { x = 350.686, y = 129.124, z = 8.456 }, level = 1, persistent = true },
[73011] = { config_id = 73011, gadget_id = 70310341, pos = { x = 5055.482, y = 538.242, z = -1733.781 }, rot = { x = 342.489, y = 136.916, z = 0.274 }, level = 20 },
[73013] = { config_id = 73013, gadget_id = 70310170, pos = { x = 5046.196, y = 533.777, z = -1721.453 }, rot = { x = 7.061, y = 278.914, z = 348.139 }, level = 1, persistent = true },
[73031] = { config_id = 73031, gadget_id = 70310170, pos = { x = 5059.972, y = 534.646, z = -1725.533 }, rot = { x = 349.641, y = 203.466, z = 357.627 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 喷风中途改103
{ config_id = 1073023, name = "GADGET_STATE_CHANGE_73023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_73023", action = "action_EVENT_GADGET_STATE_CHANGE_73023", trigger_count = 0 },
-- 喷风中途改0
{ config_id = 1073024, name = "GADGET_STATE_CHANGE_73024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_73024", action = "action_EVENT_GADGET_STATE_CHANGE_73024", trigger_count = 0 },
-- if big_flower==1 and 花大=0
{ config_id = 1073025, name = "VARIABLE_CHANGE_73025", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_73025", action = "action_EVENT_VARIABLE_CHANGE_73025", trigger_count = 0 },
-- WindTimeA
{ config_id = 1073027, name = "TIME_AXIS_PASS_73027", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_73027", action = "action_EVENT_TIME_AXIS_PASS_73027", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 73006, gadget_id = 70690001, pos = { x = 5049.759, y = 539.211, z = -1726.478 }, rot = { x = 0.588, y = 309.122, z = 0.000 }, level = 1 },
{ config_id = 73007, gadget_id = 70690001, pos = { x = 5050.318, y = 538.880, z = -1718.046 }, rot = { x = 1.523, y = 339.831, z = 0.000 }, level = 1 },
{ config_id = 73008, gadget_id = 70690001, pos = { x = 5044.983, y = 535.312, z = -1728.409 }, rot = { x = 1.523, y = 339.831, z = 0.000 }, level = 1 },
{ config_id = 73012, gadget_id = 70310341, pos = { x = 5055.029, y = 538.398, z = -1733.071 }, rot = { x = 353.151, y = 323.287, z = 356.496 }, level = 20 }
},
triggers = {
{ config_id = 1073026, name = "TIME_AXIS_PASS_73026", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_73026", action = "action_EVENT_TIME_AXIS_PASS_73026", trigger_count = 0 },
{ config_id = 1073028, name = "VARIABLE_CHANGE_73028", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_73028", action = "action_EVENT_VARIABLE_CHANGE_73028", trigger_count = 0 },
{ config_id = 1073029, name = "TIME_AXIS_PASS_73029", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_73029", action = "action_EVENT_TIME_AXIS_PASS_73029", trigger_count = 0 },
{ config_id = 1073030, name = "TIME_AXIS_PASS_73030", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_73030", action = "action_EVENT_TIME_AXIS_PASS_73030", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 73003, 73004, 73009, 73010, 73013, 73031 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_73023", "GADGET_STATE_CHANGE_73024", "VARIABLE_CHANGE_73025", "TIME_AXIS_PASS_73027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 0,
monsters = { },
gadgets = { 73001, 73002, 73005, 73011 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 102,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_73023(context, evt)
if 73004 ~= evt.param2 or GadgetState.ChestTrap ~= evt.param1 then
return false
end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_73023(context, evt)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133073, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_73024(context, evt)
if 73004 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_73024(context, evt)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133073, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_73025(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 220133073, 73004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_73025(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133073, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_73027(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_73027(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133073, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,170 @@
-- 基础信息
local base_info = {
group_id = 220133074
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[74002] = { config_id = 74002, gadget_id = 70690001, pos = { x = 5027.513, y = 542.707, z = -1813.364 }, rot = { x = 355.559, y = 339.758, z = 359.367 }, level = 1 },
[74003] = { config_id = 74003, gadget_id = 70310171, pos = { x = 5038.698, y = 543.466, z = -1827.350 }, rot = { x = 3.371, y = 347.427, z = 358.682 }, level = 20, persistent = true, interact_id = 64 },
-- 大花-水平转动
[74004] = { config_id = 74004, gadget_id = 70310169, pos = { x = 5029.054, y = 540.040, z = -1823.864 }, rot = { x = 7.983, y = 15.373, z = 7.867 }, level = 20, persistent = true },
[74005] = { config_id = 74005, gadget_id = 70690001, pos = { x = 5021.994, y = 543.946, z = -1798.398 }, rot = { x = 355.547, y = 342.102, z = 359.437 }, level = 1 },
[74006] = { config_id = 74006, gadget_id = 70690001, pos = { x = 5017.093, y = 545.188, z = -1783.222 }, rot = { x = 355.922, y = 8.833, z = 0.281 }, level = 1 },
[74007] = { config_id = 74007, gadget_id = 70310170, pos = { x = 5040.958, y = 543.259, z = -1825.373 }, rot = { x = 19.322, y = 317.103, z = 355.390 }, level = 1, persistent = true },
-- 传音花风场
[74008] = { config_id = 74008, gadget_id = 70310341, pos = { x = 5029.331, y = 540.977, z = -1823.374 }, rot = { x = 335.971, y = 0.240, z = 17.044 }, level = 20 },
[74012] = { config_id = 74012, gadget_id = 70310170, pos = { x = 5036.792, y = 541.776, z = -1820.968 }, rot = { x = 11.433, y = 246.480, z = 340.011 }, level = 1, persistent = true },
[74014] = { config_id = 74014, gadget_id = 70690001, pos = { x = 5019.498, y = 546.304, z = -1767.750 }, rot = { x = 356.317, y = 19.320, z = 0.605 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- if big_flower==1 and 花大=0
{ config_id = 1074009, name = "VARIABLE_CHANGE_74009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_74009", action = "action_EVENT_VARIABLE_CHANGE_74009", trigger_count = 0 },
-- WindTimeA
{ config_id = 1074011, name = "TIME_AXIS_PASS_74011", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_74011", action = "action_EVENT_TIME_AXIS_PASS_74011", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1074010, name = "TIME_AXIS_PASS_74010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_74010", action = "action_EVENT_TIME_AXIS_PASS_74010", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 74003, 74004, 74007, 74012 },
regions = { },
triggers = { "VARIABLE_CHANGE_74009", "TIME_AXIS_PASS_74011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 0,
monsters = { },
gadgets = { 74002, 74005, 74006, 74008, 74014 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_74009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"big_flower"为1
if ScriptLib.GetGroupVariableValue(context, "big_flower") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_74009(context, evt)
-- 创建标识为"WindTimeA",时间节点为{15}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "WindTimeA", {15}, false)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133074, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_74011(context, evt)
if "WindTimeA" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_74011(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220133074, 2)
-- 变量"big_flower"赋值为0
ScriptLib.SetGroupVariableValue(context, "big_flower", 0)
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 220133075
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "SingleTick", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 75001, gadget_id = 70310242, pos = { x = 2479.036, y = 535.154, z = -1756.137 }, rot = { x = 352.108, y = 292.663, z = 356.212 }, level = 1, interact_id = 64 },
{ config_id = 75002, gadget_id = 70380320, pos = { x = 2408.943, y = 549.652, z = -1793.602 }, rot = { x = 359.428, y = 252.203, z = 355.718 }, level = 1, route_id = 8, start_route = false },
{ config_id = 75003, gadget_id = 70310242, pos = { x = 2407.329, y = 539.975, z = -1819.993 }, rot = { x = 353.111, y = 173.516, z = 4.905 }, level = 1, interact_id = 64 },
{ config_id = 75004, gadget_id = 70380320, pos = { x = 2461.913, y = 535.452, z = -1779.689 }, rot = { x = 357.352, y = 233.543, z = 1.394 }, level = 1, route_id = 9, start_route = false },
{ config_id = 75005, gadget_id = 70380320, pos = { x = 2418.190, y = 545.186, z = -1768.099 }, rot = { x = 358.327, y = 160.717, z = 5.988 }, level = 1, route_id = 10, start_route = false }
},
triggers = {
{ config_id = 1075006, name = "GADGET_STATE_CHANGE_75006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_75006", action = "action_EVENT_GADGET_STATE_CHANGE_75006", trigger_count = 0 },
{ config_id = 1075007, name = "GADGET_STATE_CHANGE_75007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_75007", action = "action_EVENT_GADGET_STATE_CHANGE_75007", trigger_count = 0 },
{ config_id = 1075008, name = "GADGET_STATE_CHANGE_75008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_75008", action = "action_EVENT_GADGET_STATE_CHANGE_75008", trigger_count = 0 },
{ config_id = 1075009, name = "GADGET_STATE_CHANGE_75009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_75009", action = "action_EVENT_GADGET_STATE_CHANGE_75009", trigger_count = 0 },
{ config_id = 1075010, name = "GADGET_STATE_CHANGE_75010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_75010", action = "action_EVENT_GADGET_STATE_CHANGE_75010", trigger_count = 0 },
{ config_id = 1075011, name = "GADGET_STATE_CHANGE_75011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_75011", action = "action_EVENT_GADGET_STATE_CHANGE_75011", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 220133076
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 220133077
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,165 @@
-- 基础信息
local base_info = {
group_id = 220133078
}
-- DEFS_MISCS
local defs =
{
--玩法完成时 这个gadget如果为GearStop则会被设为Default
finish_gadget = 78010,
--起点格configid
starter = 78006,
--终点格configid
ender = 78026,
--矩阵 用于踩格子时判断是否相邻
matrix =
{
{ 0,78026, 0, 0, 0, 0, 0, 0, 0},
{78030,78031, 0, 0, 0, 0, 0, 0, 0},
{78029,78003, 0, 0, 0, 0, 0, 0, 0},
{ 0,78006, 0, 0, 0, 0, 0, 0, 0},
},
--每个还原格控制哪些离散格
reveal_tiles=
{
},
--离散格拼入哪个位置,拼入位置需要布设普通格,初始状态为903
reveal_match=
{
}
,
--移动格的目标位置
movable_pos =
{--[移动格子configID] = new_pos: 两位数字的矩阵坐标,x是十位,y是个位
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 78001, gadget_id = 70360350, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78002, gadget_id = 70360356, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20, state = GadgetState.Action03 },
{ config_id = 78003, gadget_id = 70360350, pos = { x = 2512.672, y = 555.921, z = -1706.102 }, rot = { x = 2.662, y = 103.477, z = 324.403 }, level = 20 },
{ config_id = 78004, gadget_id = 70360350, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78005, gadget_id = 70360352, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78006, gadget_id = 70360354, pos = { x = 2512.029, y = 554.184, z = -1708.443 }, rot = { x = 2.662, y = 103.477, z = 324.403 }, level = 20 },
{ config_id = 78007, gadget_id = 70360353, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78008, gadget_id = 70360353, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78009, gadget_id = 70360351, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20, start_route = false, is_use_point_array = true },
{ config_id = 78010, gadget_id = 70310171, pos = { x = 2524.266, y = 552.789, z = -1717.500 }, rot = { x = 0.000, y = 221.654, z = 0.000 }, level = 20, state = GadgetState.GearStop, persistent = true, interact_id = 64 },
{ config_id = 78011, gadget_id = 70360353, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78012, gadget_id = 70360350, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78013, gadget_id = 70360356, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20, state = GadgetState.Action03 },
{ config_id = 78014, gadget_id = 70360350, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78015, gadget_id = 70360350, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78016, gadget_id = 70360352, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78017, gadget_id = 70360351, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78018, gadget_id = 70360351, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78019, gadget_id = 70360353, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78020, gadget_id = 70360356, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20, state = GadgetState.Action03 },
{ config_id = 78021, gadget_id = 70360356, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20, state = GadgetState.Action03 },
{ config_id = 78022, gadget_id = 70220084, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20 },
{ config_id = 78023, gadget_id = 70360351, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20, is_use_point_array = true },
{ config_id = 78024, gadget_id = 70360356, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20, state = GadgetState.Action03 },
{ config_id = 78025, gadget_id = 70360356, pos = { x = 2529.634, y = 549.559, z = -1724.073 }, rot = { x = 0.000, y = 272.645, z = 0.000 }, level = 20, state = GadgetState.Action03 },
{ config_id = 78026, gadget_id = 70360355, pos = { x = 2513.950, y = 559.364, z = -1701.456 }, rot = { x = 2.662, y = 103.477, z = 324.403 }, level = 20 },
{ config_id = 78029, gadget_id = 70360350, pos = { x = 2509.774, y = 556.059, z = -1705.407 }, rot = { x = 2.662, y = 103.477, z = 324.403 }, level = 20 },
{ config_id = 78030, gadget_id = 70360350, pos = { x = 2510.420, y = 557.800, z = -1703.059 }, rot = { x = 2.662, y = 103.477, z = 324.403 }, level = 20 },
{ config_id = 78031, gadget_id = 70360350, pos = { x = 2513.329, y = 557.661, z = -1703.756 }, rot = { x = 2.662, y = 103.477, z = 324.403 }, level = 20 }
},
regions = {
{ config_id = 78028, shape = RegionShape.SPHERE, radius = 23, pos = { x = 2528.651, y = 552.039, z = -1743.187 } }
},
triggers = {
{ config_id = 1078027, name = "GADGET_STATE_CHANGE_78027", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_78027", action = "action_EVENT_GADGET_STATE_CHANGE_78027", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,166 @@
-- 基础信息
local base_info = {
group_id = 220133079
}
-- DEFS_MISCS
local defs =
{
--玩法完成时 这个gadget如果为GearStop则会被设为Default
finish_gadget = 79010,
--起点格configid
starter = 79006,
--终点格configid
ender = 79026,
--矩阵 用于踩格子时判断是否相邻
matrix =
{
{ 0,79005,79013,79002, 0, 0},
{ 0,79038,79036,79037,79026, 0},
{ 0, 0,79035, 0, 0, 0},
{ 0, 0,79033,79034, 0, 0},
{ 0, 0, 0,79031, 0, 0},
{79029,79030, 0, 0, 0, 0},
{79003, 0, 0, 0, 0, 0},
{79006, 0, 0, 0, 0, 0},
},
--每个还原格控制哪些离散格
reveal_tiles=
{
[79005] = {79008,79007},
},
--离散格拼入哪个位置,拼入位置需要布设普通格,初始状态为903
reveal_match=
{
[79008] = 79013,
[79007] = 79002,
}
,
--移动格的目标位置
movable_pos =
{--[移动格子configID] = new_pos: 两位数字的矩阵坐标,x是十位,y是个位
[79030] = { new_pos = 53 },
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 隐藏态
[79002] = { config_id = 79002, gadget_id = 70360356, pos = { x = 2533.471, y = 556.893, z = -1714.523 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20, state = GadgetState.Action03 },
[79003] = { config_id = 79003, gadget_id = 70360350, pos = { x = 2514.980, y = 556.462, z = -1703.035 }, rot = { x = 8.595, y = 135.789, z = 334.683 }, level = 20 },
[79005] = { config_id = 79005, gadget_id = 70360352, pos = { x = 2537.862, y = 559.875, z = -1711.657 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20 },
[79006] = { config_id = 79006, gadget_id = 70360354, pos = { x = 2512.895, y = 555.257, z = -1704.810 }, rot = { x = 8.595, y = 135.789, z = 335.833 }, level = 20 },
[79007] = { config_id = 79007, gadget_id = 70360353, pos = { x = 2532.316, y = 559.684, z = -1720.260 }, rot = { x = 27.372, y = 36.215, z = 5.532 }, level = 20 },
[79008] = { config_id = 79008, gadget_id = 70360353, pos = { x = 2536.803, y = 559.998, z = -1716.868 }, rot = { x = 64.272, y = 306.039, z = 330.827 }, level = 20 },
[79010] = { config_id = 79010, gadget_id = 70310171, pos = { x = 2524.470, y = 552.789, z = -1717.298 }, rot = { x = 2.062, y = 236.823, z = 358.408 }, level = 20, state = GadgetState.GearStop, persistent = true, interact_id = 64 },
-- 隐藏态
[79013] = { config_id = 79013, gadget_id = 70360356, pos = { x = 2535.638, y = 558.387, z = -1713.054 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20, state = GadgetState.Action03 },
-- 隐藏态
[79026] = { config_id = 79026, gadget_id = 70360355, pos = { x = 2529.434, y = 555.862, z = -1713.629 }, rot = { x = 21.807, y = 236.050, z = 5.099 }, level = 20 },
[79029] = { config_id = 79029, gadget_id = 70360350, pos = { x = 2517.023, y = 557.954, z = -1701.427 }, rot = { x = 10.097, y = 137.849, z = 323.714 }, level = 20 },
-- yidong
[79030] = { config_id = 79030, gadget_id = 70360351, pos = { x = 2518.942, y = 557.586, z = -1703.769 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20, route_id = 20, start_route = false },
[79031] = { config_id = 79031, gadget_id = 70360350, pos = { x = 2526.624, y = 557.814, z = -1704.895 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20 },
[79033] = { config_id = 79033, gadget_id = 70360350, pos = { x = 2530.543, y = 558.968, z = -1705.852 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20 },
[79034] = { config_id = 79034, gadget_id = 70360350, pos = { x = 2528.369, y = 557.491, z = -1707.273 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20 },
[79035] = { config_id = 79035, gadget_id = 70360350, pos = { x = 2532.226, y = 558.794, z = -1708.252 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20 },
[79036] = { config_id = 79036, gadget_id = 70360350, pos = { x = 2533.924, y = 558.631, z = -1710.678 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20 },
[79037] = { config_id = 79037, gadget_id = 70360350, pos = { x = 2531.747, y = 557.152, z = -1712.099 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20 },
[79038] = { config_id = 79038, gadget_id = 70360350, pos = { x = 2536.118, y = 560.121, z = -1709.245 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20 }
}
-- 区域
regions = {
-- 玩法限定区域
[79028] = { config_id = 79028, shape = RegionShape.SPHERE, radius = 23, pos = { x = 2533.137, y = 556.395, z = -1710.588 } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 79032, gadget_id = 70360350, pos = { x = 2528.783, y = 559.281, z = -1703.485 }, rot = { x = 29.632, y = 236.851, z = 5.448 }, level = 20 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 79010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 79002, 79003, 79005, 79006, 79007, 79008, 79013, 79026, 79029, 79030, 79031, 79033, 79034, 79035, 79036, 79037, 79038 },
regions = { 79028 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/DrawOneLine_Dreamland"
@@ -0,0 +1,114 @@
-- 基础信息
local base_info = {
group_id = 220133080
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 80001, monster_id = 21020501, pos = { x = 2642.555, y = 583.914, z = -1767.813 }, rot = { x = 0.000, y = 243.998, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 401 },
{ config_id = 80005, monster_id = 21011201, pos = { x = 2639.253, y = 584.051, z = -1776.382 }, rot = { x = 0.000, y = 335.915, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010 },
{ config_id = 80008, monster_id = 21010501, pos = { x = 2637.611, y = 583.929, z = -1767.172 }, rot = { x = 0.000, y = 170.699, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 32 },
{ config_id = 80014, monster_id = 21020501, pos = { x = 2642.712, y = 583.911, z = -1778.029 }, rot = { x = 0.000, y = 314.846, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 401 },
{ config_id = 80016, monster_id = 21011201, pos = { x = 2642.364, y = 584.052, z = -1773.289 }, rot = { x = 0.000, y = 287.025, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 80002, gadget_id = 70211022, pos = { x = 2654.898, y = 583.929, z = -1772.877 }, rot = { x = 0.000, y = 274.780, z = 0.000 }, level = 16, drop_tag = "战斗高级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 80004, gadget_id = 70310018, pos = { x = 2628.572, y = 583.908, z = -1792.579 }, rot = { x = 0.000, y = 30.263, z = 0.000 }, level = 1 },
{ config_id = 80006, gadget_id = 70310001, pos = { x = 2654.715, y = 583.921, z = -1755.580 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 80007, gadget_id = 70310001, pos = { x = 2649.059, y = 583.911, z = -1750.963 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 80009, gadget_id = 70300085, pos = { x = 2638.330, y = 583.873, z = -1771.674 }, rot = { x = 0.000, y = 81.321, z = 0.000 }, level = 1 },
{ config_id = 80010, gadget_id = 70310001, pos = { x = 2619.674, y = 583.909, z = -1768.085 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 80011, gadget_id = 70310001, pos = { x = 2619.702, y = 583.924, z = -1776.458 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 80012, gadget_id = 70220013, pos = { x = 2656.744, y = 583.935, z = -1775.687 }, rot = { x = 0.000, y = 281.272, z = 0.000 }, level = 1 },
{ config_id = 80013, gadget_id = 70220013, pos = { x = 2655.681, y = 583.926, z = -1777.851 }, rot = { x = 0.000, y = 331.832, z = 0.000 }, level = 1 },
{ config_id = 80015, gadget_id = 70220026, pos = { x = 2654.523, y = 583.948, z = -1775.844 }, rot = { x = 359.373, y = 304.582, z = 0.242 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1080003, name = "ANY_MONSTER_DIE_80003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_80003", action = "action_EVENT_ANY_MONSTER_DIE_80003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 80001, 80005, 80008, 80014, 80016 },
gadgets = { 80002, 80004, 80006, 80007, 80009, 80010, 80011, 80012, 80013, 80015 },
regions = { },
triggers = { "ANY_MONSTER_DIE_80003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_80003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_80003(context, evt)
-- 将configid为 80002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 80002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220133032, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,188 @@
-- 基础信息
local base_info = {
group_id = 220133083
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 83001, monster_id = 20011501, pos = { x = 4266.920, y = 568.132, z = 145.428 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 83005, monster_id = 20011301, pos = { x = 4267.346, y = 567.689, z = 153.093 }, rot = { x = 0.000, y = 178.128, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 83006, monster_id = 20011501, pos = { x = 4263.974, y = 570.298, z = 148.440 }, rot = { x = 0.000, y = 73.270, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 83007, monster_id = 20011301, pos = { x = 4270.825, y = 570.572, z = 149.060 }, rot = { x = 0.000, y = 297.210, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 83002, gadget_id = 70211012, pos = { x = 4266.638, y = 567.789, z = 148.821 }, rot = { x = 0.000, y = 0.000, z = 355.354 }, level = 16, drop_tag = "战斗中级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1083003, name = "ANY_MONSTER_DIE_83003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_83003", action = "action_EVENT_ANY_MONSTER_DIE_83003" },
{ config_id = 1083004, name = "ANY_MONSTER_DIE_83004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_83004", action = "action_EVENT_ANY_MONSTER_DIE_83004", trigger_count = 0 },
{ config_id = 1083008, name = "ANY_MONSTER_DIE_83008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_83008", action = "action_EVENT_ANY_MONSTER_DIE_83008", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "Wave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 83001 },
gadgets = { 83002 },
regions = { },
triggers = { "ANY_MONSTER_DIE_83003", "ANY_MONSTER_DIE_83004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 83005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_83008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 83006, 83007 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_83003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"Wave"为2
if ScriptLib.GetGroupVariableValue(context, "Wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_83003(context, evt)
-- 将configid为 83002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 83002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 4001, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_83004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"Wave"为0
if ScriptLib.GetGroupVariableValue(context, "Wave") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_83004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220133083, 2)
-- 针对当前group内变量名为 "Wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_83008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"Wave"为1
if ScriptLib.GetGroupVariableValue(context, "Wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_83008(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220133083, 3)
-- 将本组内变量名为 "Wave" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wave", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220133086
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 86001, gadget_id = 70310342, pos = { x = 4191.675, y = 580.462, z = 234.474 }, rot = { x = 0.000, y = 269.198, 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 = { 86001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,182 @@
-- 基础信息
local base_info = {
group_id = 220133087
}
-- DEFS_MISCS
local defs =
{
lines=
{
[87014] = 87013,
[87007] = 87020,
} ,
--玩法完成时 这个gadget如果为GearStop则会被设为Default
finish_gadget = 87008,
--起点格configid
starter = 87005,
--终点格configid
ender = 87017,
--矩阵 用于踩格子时判断是否相邻
matrix =
{
{ 0, 0, 0, 0,87031,87030,87029,87028,87027,},
{87009,87004,87002,87017,87021,87007, 0, 0,87026,},
{87003,87010, 0,87018,87015,87016, 0,87024,87025,},
{ 0, 0, 0,87014,87001,87022, 0, 0, 0,},
{ 0, 0, 0, 0,87005, 0, 0, 0, 0,},
},
--每个还原格控制哪些离散格
reveal_tiles=
{
[87004] = {87006},
[87027] = {87019,87032,87033,87034},
},
--离散格拼入哪个位置,拼入位置需要布设普通格,初始状态为903
reveal_match=
{
[87006] = 87002,
[87019] = 87028,
[87032] = 87029,
[87033] = 87030,
[87034] = 87031,
}
,
--移动格的目标位置和使用的点阵
movable_pos =
{--[移动格子configID] = new_pos: 两位数字的矩阵坐标,x是十位,y是个位
[87014] = { new_pos = 42 },
[87007] = { new_pos = 28 },
}
,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[87001] = { config_id = 87001, gadget_id = 70360350, pos = { x = 5048.784, y = 536.237, z = -1728.651 }, rot = { x = 358.890, y = 94.027, z = 347.338 }, level = 1 },
-- 隐藏态
[87002] = { config_id = 87002, gadget_id = 70360356, pos = { x = 5043.258, y = 537.463, z = -1722.461 }, rot = { x = 9.734, y = 88.659, z = 346.420 }, level = 1, state = GadgetState.Action03 },
[87003] = { config_id = 87003, gadget_id = 70360350, pos = { x = 5037.186, y = 537.028, z = -1725.281 }, rot = { x = 358.890, y = 94.027, z = 343.835 }, level = 1 },
[87004] = { config_id = 87004, gadget_id = 70360352, pos = { x = 5040.358, y = 537.803, z = -1722.596 }, rot = { x = 358.890, y = 94.027, z = 347.739 }, level = 1 },
[87005] = { config_id = 87005, gadget_id = 70360354, pos = { x = 5048.602, y = 536.120, z = -1731.719 }, rot = { x = 359.270, y = 91.246, z = 7.791 }, level = 1 },
[87006] = { config_id = 87006, gadget_id = 70360353, pos = { x = 5044.855, y = 539.339, z = -1719.932 }, rot = { x = 337.267, y = 100.866, z = 275.182 }, level = 1 },
-- 移动平台移动B
[87007] = { config_id = 87007, gadget_id = 70360351, pos = { x = 5052.212, y = 537.307, z = -1723.005 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1, route_id = 14, start_route = false },
[87008] = { config_id = 87008, gadget_id = 70310171, pos = { x = 5048.825, y = 532.303, z = -1716.088 }, rot = { x = 349.319, y = 186.799, z = 356.418 }, level = 1, state = GadgetState.GearStop, persistent = true, interact_id = 64 },
[87009] = { config_id = 87009, gadget_id = 70360350, pos = { x = 5037.373, y = 537.773, z = -1722.447 }, rot = { x = 358.890, y = 94.027, z = 344.877 }, level = 1 },
[87010] = { config_id = 87010, gadget_id = 70360350, pos = { x = 5040.177, y = 537.086, z = -1725.490 }, rot = { x = 358.890, y = 94.027, z = 343.835 }, level = 1 },
[87013] = { config_id = 87013, gadget_id = 70310349, pos = { x = 5045.353, y = 536.312, z = -1728.544 }, rot = { x = 1.091, y = 275.129, z = 0.974 }, level = 1 },
-- 移动平台移动A
[87014] = { config_id = 87014, gadget_id = 70360351, pos = { x = 5045.793, y = 536.179, z = -1728.439 }, rot = { x = 358.890, y = 94.027, z = 347.338 }, level = 1, route_id = 13, start_route = false },
[87015] = { config_id = 87015, gadget_id = 70360350, pos = { x = 5049.047, y = 536.663, z = -1725.710 }, rot = { x = 358.890, y = 94.027, z = 350.689 }, level = 1 },
[87016] = { config_id = 87016, gadget_id = 70360350, pos = { x = 5052.010, y = 536.720, z = -1725.918 }, rot = { x = 358.890, y = 94.027, z = 350.689 }, level = 1 },
[87017] = { config_id = 87017, gadget_id = 70360355, pos = { x = 5046.257, y = 537.169, z = -1722.667 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1 },
[87018] = { config_id = 87018, gadget_id = 70360350, pos = { x = 5046.077, y = 536.604, z = -1725.500 }, rot = { x = 358.890, y = 94.027, z = 350.689 }, level = 1 },
[87019] = { config_id = 87019, gadget_id = 70360353, pos = { x = 5049.822, y = 540.969, z = -1718.962 }, rot = { x = 349.309, y = 117.598, z = 336.539 }, level = 1 },
[87020] = { config_id = 87020, gadget_id = 70310349, pos = { x = 5052.286, y = 537.611, z = -1723.256 }, rot = { x = 358.890, y = 94.027, z = 359.046 }, level = 1 },
[87021] = { config_id = 87021, gadget_id = 70360350, pos = { x = 5049.223, y = 537.249, z = -1722.795 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1 },
[87022] = { config_id = 87022, gadget_id = 70360350, pos = { x = 5051.782, y = 536.295, z = -1728.860 }, rot = { x = 358.890, y = 94.027, z = 347.338 }, level = 1 },
[87024] = { config_id = 87024, gadget_id = 70360350, pos = { x = 5058.627, y = 536.671, z = -1726.340 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1 },
[87025] = { config_id = 87025, gadget_id = 70360350, pos = { x = 5061.671, y = 536.730, z = -1726.554 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1 },
[87026] = { config_id = 87026, gadget_id = 70360350, pos = { x = 5061.860, y = 537.500, z = -1723.659 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1 },
[87027] = { config_id = 87027, gadget_id = 70360352, pos = { x = 5062.046, y = 538.262, z = -1720.799 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1 },
[87028] = { config_id = 87028, gadget_id = 70360356, pos = { x = 5059.090, y = 538.200, z = -1720.606 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1, state = GadgetState.Action03 },
[87029] = { config_id = 87029, gadget_id = 70360356, pos = { x = 5055.986, y = 538.147, z = -1720.360 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1, state = GadgetState.Action03 },
[87030] = { config_id = 87030, gadget_id = 70360356, pos = { x = 5052.962, y = 538.096, z = -1720.118 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1, state = GadgetState.Action03 },
[87031] = { config_id = 87031, gadget_id = 70360356, pos = { x = 5049.896, y = 538.052, z = -1719.845 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1, state = GadgetState.Action03 },
[87032] = { config_id = 87032, gadget_id = 70360353, pos = { x = 5052.202, y = 542.905, z = -1720.252 }, rot = { x = 349.309, y = 117.598, z = 336.539 }, level = 1 },
[87033] = { config_id = 87033, gadget_id = 70360353, pos = { x = 5054.632, y = 540.690, z = -1720.260 }, rot = { x = 349.309, y = 117.598, z = 336.539 }, level = 1 },
[87034] = { config_id = 87034, gadget_id = 70360353, pos = { x = 5057.436, y = 542.160, z = -1718.852 }, rot = { x = 349.309, y = 117.598, z = 336.539 }, level = 1 }
}
-- 区域
regions = {
-- 玩法限定区域
[87023] = { config_id = 87023, shape = RegionShape.SPHERE, radius = 18, pos = { x = 5047.948, y = 536.729, z = -1725.914 } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 87011, gadget_id = 70360351, pos = { x = 5039.962, y = 536.401, z = -1728.391 }, rot = { x = 358.890, y = 94.027, z = 347.338 }, level = 1 },
{ config_id = 87012, gadget_id = 70360351, pos = { x = 5058.815, y = 537.435, z = -1723.469 }, rot = { x = 358.890, y = 94.027, z = 345.120 }, level = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 87008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 87001, 87002, 87003, 87004, 87005, 87006, 87007, 87009, 87010, 87013, 87014, 87015, 87016, 87017, 87018, 87019, 87020, 87021, 87022, 87024, 87025, 87026, 87027, 87028, 87029, 87030, 87031, 87032, 87033, 87034 },
regions = { 87023 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/DrawOneLine_Dreamland"
@@ -0,0 +1,212 @@
-- 基础信息
local base_info = {
group_id = 220133088
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 88001, gadget_id = 70290286, pos = { x = -54.050, y = 164.234, z = 492.020 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 122} },
{ config_id = 88002, gadget_id = 70290264, pos = { x = -54.050, y = 164.234, z = 492.020 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1 },
{ config_id = 88009, gadget_id = 70290502, pos = { x = -54.050, y = 164.234, z = 492.020 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 88006, shape = RegionShape.SPHERE, radius = 5, pos = { x = -54.050, y = 164.234, z = 492.020 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1088005, name = "GADGET_STATE_CHANGE_88005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_88005", action = "action_EVENT_GADGET_STATE_CHANGE_88005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1088006, name = "LEAVE_REGION_88006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_88006", action = "action_EVENT_LEAVE_REGION_88006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1088007, name = "GADGET_CREATE_88007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_88007", action = "action_EVENT_GADGET_CREATE_88007", trigger_count = 0 },
-- if queststate 换真门
{ config_id = 1088008, name = "GROUP_LOAD_88008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_88008", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1088010, name = "TIME_AXIS_PASS_88010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_88010", action = "action_EVENT_TIME_AXIS_PASS_88010", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 88003, gadget_id = 70310172, pos = { x = -54.050, y = 164.234, z = 492.020 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1088004, name = "GADGET_STATE_CHANGE_88004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_88004", action = "action_EVENT_GADGET_STATE_CHANGE_88004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 88001 },
regions = { 88006 },
triggers = { "GADGET_STATE_CHANGE_88005", "LEAVE_REGION_88006", "GADGET_CREATE_88007", "GROUP_LOAD_88008", "TIME_AXIS_PASS_88010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 88009 },
regions = { },
triggers = { "GROUP_LOAD_88008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_88005(context, evt)
-- 检测config_id为88001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 88001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_88005(context, evt)
-- 创建id为88002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 88002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_88006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133088, 88001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_88006(context, evt)
-- 将configid为 88001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 88001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133088, EntityType.GADGET, 88002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_88007(context, evt)
if 88001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_88007(context, evt)
-- 将configid为 88001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 88001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_88008(context, evt)
if ScriptLib.GetHostQuestState(context,4007010)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133088, suite = 1 })
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_88010(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_88010(context, evt)
-- 将configid为 88001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 88001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133088, EntityType.GADGET, 88002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,162 @@
-- 基础信息
local base_info = {
group_id = 220133089
}
-- DEFS_MISCS
local defs = {
--左右旋转的SelectOptionID
selectID_horizon = 54,
--上下俯仰的SelectOptionID
selectID_vertical = 55,
--定义左右旋转的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
horizon_steps = {
},
--定义上下俯仰的步长,key为传音花configIDvalue为旋转角对应的GadgetState
--GadgetState不可重复
vertical_steps = {
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 小花-固定
[89002] = { config_id = 89002, gadget_id = 70310170, pos = { x = 410.137, y = 141.944, z = 1967.414 }, rot = { x = 0.013, y = 174.940, z = 357.204 }, level = 1, persistent = true },
-- 小花-固定
[89003] = { config_id = 89003, gadget_id = 70310170, pos = { x = 411.116, y = 141.934, z = 1957.230 }, rot = { x = 347.865, y = 138.494, z = 358.451 }, level = 1, persistent = true },
-- 202一发解锁
[89004] = { config_id = 89004, gadget_id = 70310186, pos = { x = 418.530, y = 141.670, z = 1947.760 }, rot = { x = 0.000, y = 338.164, z = 0.000 }, level = 1, state = GadgetState.GearStop },
[89005] = { config_id = 89005, gadget_id = 70310171, pos = { x = 400.342, y = 142.068, z = 1959.285 }, rot = { x = 0.000, y = 350.549, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true, interact_id = 64 },
-- 小花-固定
[89006] = { config_id = 89006, gadget_id = 70310170, pos = { x = 401.599, y = 141.926, z = 1959.469 }, rot = { x = 1.596, y = 46.536, z = 4.407 }, level = 1, persistent = true },
[89011] = { config_id = 89011, gadget_id = 70950157, pos = { x = 412.996, y = 147.425, z = 1946.892 }, rot = { x = 358.077, y = 251.716, z = 87.974 }, level = 1 },
[89012] = { config_id = 89012, gadget_id = 70950157, pos = { x = 416.804, y = 152.023, z = 1948.622 }, rot = { x = 272.191, y = 319.020, z = 22.613 }, level = 1 },
[89013] = { config_id = 89013, gadget_id = 70950157, pos = { x = 424.958, y = 147.002, z = 1950.844 }, rot = { x = 11.529, y = 251.235, z = 87.933 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1089001, name = "QUEST_FINISH_89001", event = EventType.EVENT_QUEST_FINISH, source = "4006908", condition = "", action = "action_EVENT_QUEST_FINISH_89001", trigger_count = 0 },
{ config_id = 1089014, name = "ANY_GADGET_DIE_89014", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_89014", action = "action_EVENT_ANY_GADGET_DIE_89014", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 89007, gadget_id = 70310170, pos = { x = 404.905, y = 139.068, z = 1972.067 }, rot = { x = 2.436, y = 316.298, z = 354.647 }, level = 1, persistent = true },
{ config_id = 89008, gadget_id = 70310170, pos = { x = 403.094, y = 142.574, z = 1951.842 }, rot = { x = 7.062, y = 44.802, z = 358.931 }, level = 1, persistent = true },
{ config_id = 89009, gadget_id = 70310170, pos = { x = 400.202, y = 137.693, z = 2001.250 }, rot = { x = 345.994, y = 100.477, z = 0.350 }, level = 1, persistent = true },
{ config_id = 89010, gadget_id = 70310170, pos = { x = 400.526, y = 138.530, z = 1991.642 }, rot = { x = 6.600, y = 356.215, z = 5.327 }, level = 1, persistent = true }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 89002, 89003, 89004, 89005, 89006, 89011, 89012, 89013 },
regions = { },
triggers = { "QUEST_FINISH_89001", "ANY_GADGET_DIE_89014" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_89001(context, evt)
-- 将configid为 89005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 89005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_89014(context, evt)
if 89004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_89014(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133089, EntityType.GADGET, 89011 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133089, EntityType.GADGET, 89012 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133089, EntityType.GADGET, 89013 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
require "V2_8/TransferFlower"
@@ -0,0 +1,177 @@
-- 基础信息
local base_info = {
group_id = 220133090
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 90001, gadget_id = 70310469, pos = { x = 1061.927, y = -388.461, z = 2092.631 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 90002, gadget_id = 70310469, pos = { x = 1071.821, y = -388.461, z = 2092.631 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 90003, gadget_id = 70310471, pos = { x = 1066.858, y = -382.658, z = 2099.372 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 90004, gadget_id = 70310470, pos = { x = 1066.818, y = -384.052, z = 2099.379 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1090005, name = "QUEST_START_90005", event = EventType.EVENT_QUEST_START, source = "4006924", condition = "", action = "action_EVENT_QUEST_START_90005", trigger_count = 0 },
{ config_id = 1090006, name = "QUEST_FINISH_90006", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_90006", action = "action_EVENT_QUEST_FINISH_90006", trigger_count = 0 },
{ config_id = 1090007, name = "QUEST_START_90007", event = EventType.EVENT_QUEST_START, source = "4006924", condition = "condition_EVENT_QUEST_START_90007", action = "action_EVENT_QUEST_START_90007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 90001, 90002, 90004 },
regions = { },
triggers = { "QUEST_START_90005", "QUEST_FINISH_90006", "QUEST_START_90007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 90003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_START_90005(context, evt)
-- 将configid为 90004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 90004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 90001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 90001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 90002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 90002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_90006(context, evt)
--检查ID为4006924的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 4006924 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_90006(context, evt)
-- 创建id为90003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 90003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将configid为 90004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 90004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 90001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 90001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 90002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 90002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_90007(context, evt)
if 90003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_90007(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133090, EntityType.GADGET, 90003 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,154 @@
-- 基础信息
local base_info = {
group_id = 220133091
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- gadgetA
{ config_id = 91001, gadget_id = 70800249, pos = { x = 2252.827, y = 516.451, z = 456.653 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- gadgetB
{ config_id = 91010, gadget_id = 70800249, pos = { x = 2252.827, y = 516.451, z = 456.653 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 二阶段重新响起来
{ config_id = 1091002, name = "GROUP_LOAD_91002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_91002", trigger_count = 0 },
-- 保底1
{ config_id = 1091004, name = "GROUP_LOAD_91004", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_91004", action = "action_EVENT_GROUP_LOAD_91004", trigger_count = 0 },
-- 保底2
{ config_id = 1091005, name = "GROUP_LOAD_91005", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_91005", action = "action_EVENT_GROUP_LOAD_91005", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "GadgetADie", value = 0, no_refresh = true },
{ config_id = 2, name = "GadgetBDie", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
regions = {
{ config_id = 91003, shape = RegionShape.SPHERE, radius = 12, pos = { x = 219.040, y = 131.765, z = 2081.908 } }
},
triggers = {
{ config_id = 1091003, name = "ENTER_REGION_91003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_91003", action = "action_EVENT_ENTER_REGION_91003", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 【正常播BGM】,
monsters = { },
gadgets = { 91001 },
regions = { },
triggers = { "GROUP_LOAD_91002", "GROUP_LOAD_91004", "GROUP_LOAD_91005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 【静音BGM】,
monsters = { },
gadgets = { 91010 },
regions = { },
triggers = { "GROUP_LOAD_91002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_91002(context, evt)
if ScriptLib.GetHostQuestState(context,4006815) == 3 then
ScriptLib.AddExtraGroupSuite(context, 220133091, 2)
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_91004(context, evt)
-- 判断变量"GadgetADie"为1
if ScriptLib.GetGroupVariableValue(context, "GadgetADie") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_91004(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 91001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_91005(context, evt)
-- 判断变量"GadgetBDie"为1
if ScriptLib.GetGroupVariableValue(context, "GadgetBDie") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_91005(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 91010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,212 @@
-- 基础信息
local base_info = {
group_id = 220133092
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 92001, gadget_id = 70290286, pos = { x = -63.557, y = 152.375, z = 582.742 }, rot = { x = 359.368, y = 67.292, z = 354.729 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 121} },
{ config_id = 92002, gadget_id = 70290264, pos = { x = -63.557, y = 152.375, z = 582.742 }, rot = { x = 359.368, y = 67.292, z = 354.729 }, level = 1 },
{ config_id = 92009, gadget_id = 70290502, pos = { x = -63.557, y = 152.375, z = 582.742 }, rot = { x = 359.368, y = 67.292, z = 354.729 }, level = 1, persistent = true }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 92006, shape = RegionShape.SPHERE, radius = 5, pos = { x = -63.557, y = 152.375, z = 582.742 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1092005, name = "GADGET_STATE_CHANGE_92005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_92005", action = "action_EVENT_GADGET_STATE_CHANGE_92005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1092006, name = "LEAVE_REGION_92006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_92006", action = "action_EVENT_LEAVE_REGION_92006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1092007, name = "GADGET_CREATE_92007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_92007", action = "action_EVENT_GADGET_CREATE_92007", trigger_count = 0 },
-- if queststate 换真门
{ config_id = 1092008, name = "GROUP_LOAD_92008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_92008", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1092010, name = "TIME_AXIS_PASS_92010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_92010", action = "action_EVENT_TIME_AXIS_PASS_92010", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 92003, gadget_id = 70310172, pos = { x = -59.434, y = 157.338, z = 582.669 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1092004, name = "GADGET_STATE_CHANGE_92004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_92004", action = "action_EVENT_GADGET_STATE_CHANGE_92004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 92001 },
regions = { 92006 },
triggers = { "GADGET_STATE_CHANGE_92005", "LEAVE_REGION_92006", "GADGET_CREATE_92007", "GROUP_LOAD_92008", "TIME_AXIS_PASS_92010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 92009 },
regions = { },
triggers = { "GROUP_LOAD_92008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_92005(context, evt)
-- 检测config_id为92001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 92001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_92005(context, evt)
-- 创建id为92002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 92002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_92006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133092, 92001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_92006(context, evt)
-- 将configid为 92001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 92001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133092, EntityType.GADGET, 92002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_92007(context, evt)
if 92001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_92007(context, evt)
-- 将configid为 92001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 92001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_92008(context, evt)
if ScriptLib.GetHostQuestState(context,4007010)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133092, suite = 1 })
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_92010(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_92010(context, evt)
-- 将configid为 92001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 92001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133092, EntityType.GADGET, 92002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 220133093
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 93001, gadget_id = 70290286, pos = { x = 5078.110, y = 518.793, z = -1619.305 }, rot = { x = 353.347, y = 250.998, z = 357.818 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 128} },
{ config_id = 93002, gadget_id = 70290264, pos = { x = 5078.110, y = 518.793, z = -1619.305 }, rot = { x = 353.347, y = 250.998, z = 357.818 }, level = 1 }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 93006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 5078.110, y = 518.793, z = -1619.305 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1093005, name = "GADGET_STATE_CHANGE_93005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_93005", action = "action_EVENT_GADGET_STATE_CHANGE_93005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1093006, name = "LEAVE_REGION_93006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_93006", action = "action_EVENT_LEAVE_REGION_93006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1093007, name = "GADGET_CREATE_93007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_93007", action = "action_EVENT_GADGET_CREATE_93007", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1093008, name = "TIME_AXIS_PASS_93008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_93008", action = "action_EVENT_TIME_AXIS_PASS_93008", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 93003, gadget_id = 70310172, pos = { x = 5077.192, y = 519.010, z = -1619.859 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1093004, name = "GADGET_STATE_CHANGE_93004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_93004", action = "action_EVENT_GADGET_STATE_CHANGE_93004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 93001 },
regions = { 93006 },
triggers = { "GADGET_STATE_CHANGE_93005", "LEAVE_REGION_93006", "GADGET_CREATE_93007", "TIME_AXIS_PASS_93008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_93005(context, evt)
-- 检测config_id为93001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 93001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_93005(context, evt)
-- 创建id为93002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 93002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_93006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133093, 93001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_93006(context, evt)
-- 将configid为 93001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 93001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133093, EntityType.GADGET, 93002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_93007(context, evt)
if 93001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_93007(context, evt)
-- 将configid为 93001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 93001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_93008(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_93008(context, evt)
-- 将configid为 93001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 93001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133093, EntityType.GADGET, 93002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,212 @@
-- 基础信息
local base_info = {
group_id = 220133094
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 94001, gadget_id = 70290286, pos = { x = -47.738, y = 157.170, z = 696.886 }, rot = { x = 0.000, y = 148.409, z = 0.000 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 123} },
{ config_id = 94002, gadget_id = 70290264, pos = { x = -47.738, y = 157.170, z = 696.886 }, rot = { x = 0.000, y = 148.409, z = 0.000 }, level = 1 },
{ config_id = 94008, gadget_id = 70290502, pos = { x = -47.738, y = 157.170, z = 696.886 }, rot = { x = 0.000, y = 148.409, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 94006, shape = RegionShape.SPHERE, radius = 5, pos = { x = -47.738, y = 157.170, z = 696.886 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1094005, name = "GADGET_STATE_CHANGE_94005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_94005", action = "action_EVENT_GADGET_STATE_CHANGE_94005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1094006, name = "LEAVE_REGION_94006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_94006", action = "action_EVENT_LEAVE_REGION_94006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1094007, name = "GADGET_CREATE_94007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_94007", action = "action_EVENT_GADGET_CREATE_94007", trigger_count = 0 },
-- if queststate 换真门
{ config_id = 1094009, name = "GROUP_LOAD_94009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_94009", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1094010, name = "TIME_AXIS_PASS_94010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_94010", action = "action_EVENT_TIME_AXIS_PASS_94010", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 94003, gadget_id = 70310172, pos = { x = -46.403, y = 157.460, z = 693.994 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1094004, name = "GADGET_STATE_CHANGE_94004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_94004", action = "action_EVENT_GADGET_STATE_CHANGE_94004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 94001 },
regions = { 94006 },
triggers = { "GADGET_STATE_CHANGE_94005", "LEAVE_REGION_94006", "GADGET_CREATE_94007", "GROUP_LOAD_94009", "TIME_AXIS_PASS_94010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 94008 },
regions = { },
triggers = { "GROUP_LOAD_94009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_94005(context, evt)
-- 检测config_id为94001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 94001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_94005(context, evt)
-- 创建id为94002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 94002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_94006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133094, 94001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_94006(context, evt)
-- 将configid为 94001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 94001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133094, EntityType.GADGET, 94002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_94007(context, evt)
if 94001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_94007(context, evt)
-- 将configid为 94002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 94002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_94009(context, evt)
if ScriptLib.GetHostQuestState(context,4007010)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133094, suite = 1 })
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_94010(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_94010(context, evt)
-- 将configid为 94001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 94001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133094, EntityType.GADGET, 94002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 220133095
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 95001, gadget_id = 70290286, pos = { x = 5024.706, y = 539.615, z = -1827.385 }, rot = { x = 349.012, y = 55.278, z = 23.949 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 124} },
{ config_id = 95002, gadget_id = 70290264, pos = { x = 5024.706, y = 539.615, z = -1827.385 }, rot = { x = 349.012, y = 55.278, z = 23.949 }, level = 1 }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 95006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 5024.706, y = 539.615, z = -1827.385 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1095005, name = "GADGET_STATE_CHANGE_95005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_95005", action = "action_EVENT_GADGET_STATE_CHANGE_95005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1095006, name = "LEAVE_REGION_95006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_95006", action = "action_EVENT_LEAVE_REGION_95006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1095007, name = "GADGET_CREATE_95007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_95007", action = "action_EVENT_GADGET_CREATE_95007", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1095008, name = "TIME_AXIS_PASS_95008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_95008", action = "action_EVENT_TIME_AXIS_PASS_95008", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 95003, gadget_id = 70310172, pos = { x = 5027.033, y = 540.289, z = -1826.958 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1095004, name = "GADGET_STATE_CHANGE_95004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_95004", action = "action_EVENT_GADGET_STATE_CHANGE_95004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 95001 },
regions = { 95006 },
triggers = { "GADGET_STATE_CHANGE_95005", "LEAVE_REGION_95006", "GADGET_CREATE_95007", "TIME_AXIS_PASS_95008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_95005(context, evt)
-- 检测config_id为95001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 95001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_95005(context, evt)
-- 创建id为95002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 95002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_95006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133095, 95001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_95006(context, evt)
-- 将configid为 95001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 95001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133095, EntityType.GADGET, 95002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_95007(context, evt)
if 95001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_95007(context, evt)
-- 将configid为 95002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 95002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_95008(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_95008(context, evt)
-- 将configid为 95001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 95001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133095, EntityType.GADGET, 95002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,125 @@
-- 基础信息
local base_info = {
group_id = 220133096
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入虚无空间
{ config_id = 96001, shape = RegionShape.POLYGON, pos = { x = 3754.250, y = 100.000, z = -684.583 }, height = 1400.000, point_array = { { x = 1286.766, y = 938.412 }, { x = 4943.040, y = 1483.597 }, { x = 6221.733, y = -1990.906 }, { x = 1948.328, y = -2852.763 } } },
-- 进入山洞
{ config_id = 96002, shape = RegionShape.SPHERE, radius = 350, pos = { x = 11.981, y = 276.589, z = 587.509 } }
}
-- 触发器
triggers = {
-- 进入虚无空间
{ config_id = 1096001, name = "ENTER_REGION_96001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_96001", action = "action_EVENT_ENTER_REGION_96001", trigger_count = 0 },
-- 进入山洞
{ config_id = 1096002, name = "ENTER_REGION_96002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_96002", action = "action_EVENT_ENTER_REGION_96002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 96001, 96002 },
triggers = { "ENTER_REGION_96001", "ENTER_REGION_96002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_96001(context, evt)
if evt.param1 ~= 96001 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_96001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "PlayerEnterTransmitDoor") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_96002(context, evt)
if evt.param1 ~= 96002 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_96002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "PlayerBackToCave") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,212 @@
-- 基础信息
local base_info = {
group_id = 220133097
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 97001, gadget_id = 70290286, pos = { x = -55.263, y = 203.003, z = 640.513 }, rot = { x = 0.000, y = 131.006, z = 0.000 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 313} },
{ config_id = 97002, gadget_id = 70290264, pos = { x = -55.263, y = 203.003, z = 640.513 }, rot = { x = 0.000, y = 131.006, z = 0.000 }, level = 1 },
{ config_id = 97009, gadget_id = 70290502, pos = { x = -55.263, y = 203.003, z = 640.513 }, rot = { x = 0.000, y = 131.006, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 97006, shape = RegionShape.SPHERE, radius = 5, pos = { x = -55.263, y = 203.003, z = 640.513 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1097005, name = "GADGET_STATE_CHANGE_97005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_97005", action = "action_EVENT_GADGET_STATE_CHANGE_97005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1097006, name = "LEAVE_REGION_97006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_97006", action = "action_EVENT_LEAVE_REGION_97006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1097007, name = "GADGET_CREATE_97007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_97007", action = "action_EVENT_GADGET_CREATE_97007", trigger_count = 0 },
-- if queststate 换真门
{ config_id = 1097008, name = "GROUP_LOAD_97008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_97008", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1097010, name = "TIME_AXIS_PASS_97010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_97010", action = "action_EVENT_TIME_AXIS_PASS_97010", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 97003, gadget_id = 70310172, pos = { x = -55.205, y = 203.052, z = 637.037 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1097004, name = "GADGET_STATE_CHANGE_97004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_97004", action = "action_EVENT_GADGET_STATE_CHANGE_97004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 97001 },
regions = { 97006 },
triggers = { "GADGET_STATE_CHANGE_97005", "LEAVE_REGION_97006", "GADGET_CREATE_97007", "GROUP_LOAD_97008", "TIME_AXIS_PASS_97010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 97009 },
regions = { },
triggers = { "GROUP_LOAD_97008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_97005(context, evt)
-- 检测config_id为97001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 97001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_97005(context, evt)
-- 创建id为97002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 97002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_97006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133097, 97001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_97006(context, evt)
-- 将configid为 97001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 97001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133097, EntityType.GADGET, 97002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_97007(context, evt)
if 97001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_97007(context, evt)
-- 将configid为 97001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 97001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_97008(context, evt)
if ScriptLib.GetHostQuestState(context,4007010)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133097, suite = 1 })
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_97010(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_97010(context, evt)
-- 将configid为 97001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 97001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133097, EntityType.GADGET, 97002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 220133098
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 98001, gadget_id = 70290286, pos = { x = 2369.852, y = 540.246, z = -1756.513 }, rot = { x = 0.000, y = 65.383, z = 0.000 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 311} },
{ config_id = 98002, gadget_id = 70290264, pos = { x = 2369.852, y = 540.246, z = -1756.513 }, rot = { x = 0.000, y = 65.383, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 98006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2369.852, y = 540.246, z = -1756.513 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1098005, name = "GADGET_STATE_CHANGE_98005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_98005", action = "action_EVENT_GADGET_STATE_CHANGE_98005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1098006, name = "LEAVE_REGION_98006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_98006", action = "action_EVENT_LEAVE_REGION_98006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1098007, name = "GADGET_CREATE_98007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_98007", action = "action_EVENT_GADGET_CREATE_98007", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1098008, name = "TIME_AXIS_PASS_98008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_98008", action = "action_EVENT_TIME_AXIS_PASS_98008", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 98003, gadget_id = 70310172, pos = { x = 2370.536, y = 540.292, z = -1755.875 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1098004, name = "GADGET_STATE_CHANGE_98004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_98004", action = "action_EVENT_GADGET_STATE_CHANGE_98004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 98001 },
regions = { 98006 },
triggers = { "GADGET_STATE_CHANGE_98005", "LEAVE_REGION_98006", "GADGET_CREATE_98007", "TIME_AXIS_PASS_98008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_98005(context, evt)
-- 检测config_id为98001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 98001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_98005(context, evt)
-- 创建id为98002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 98002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_98006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133098, 98001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_98006(context, evt)
-- 将configid为 98001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 98001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133098, EntityType.GADGET, 98002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_98007(context, evt)
if 98001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_98007(context, evt)
-- 将configid为 98001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 98001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_98008(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_98008(context, evt)
-- 将configid为 98001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 98001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133098, EntityType.GADGET, 98002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 220133099
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 99001, gadget_id = 70290286, pos = { x = 2656.740, y = 583.987, z = -1748.140 }, rot = { x = 0.000, y = 223.648, z = 0.000 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 312} },
{ config_id = 99002, gadget_id = 70290264, pos = { x = 2656.740, y = 583.987, z = -1748.140 }, rot = { x = 0.000, y = 223.648, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 99006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2656.740, y = 583.987, z = -1748.140 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1099005, name = "GADGET_STATE_CHANGE_99005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_99005", action = "action_EVENT_GADGET_STATE_CHANGE_99005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1099006, name = "LEAVE_REGION_99006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_99006", action = "action_EVENT_LEAVE_REGION_99006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1099007, name = "GADGET_CREATE_99007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99007", action = "action_EVENT_GADGET_CREATE_99007", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1099008, name = "TIME_AXIS_PASS_99008", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_99008", action = "action_EVENT_TIME_AXIS_PASS_99008", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 99003, gadget_id = 70310172, pos = { x = 2650.170, y = 584.466, z = -1748.756 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1099004, name = "GADGET_STATE_CHANGE_99004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_99004", action = "action_EVENT_GADGET_STATE_CHANGE_99004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 99001 },
regions = { 99006 },
triggers = { "GADGET_STATE_CHANGE_99005", "LEAVE_REGION_99006", "GADGET_CREATE_99007", "TIME_AXIS_PASS_99008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_99005(context, evt)
-- 检测config_id为99001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 99001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_99005(context, evt)
-- 创建id为99002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 99002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_99006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133099, 99001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_99006(context, evt)
-- 将configid为 99001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 99001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133099, EntityType.GADGET, 99002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99007(context, evt)
if 99001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99007(context, evt)
-- 将configid为 99001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 99001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_99008(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_99008(context, evt)
-- 将configid为 99001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 99001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133099, EntityType.GADGET, 99002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,212 @@
-- 基础信息
local base_info = {
group_id = 220133100
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 交互切201
{ config_id = 100001, gadget_id = 70290286, pos = { x = -130.382, y = 183.089, z = 634.454 }, rot = { x = 8.014, y = 117.521, z = 12.700 }, level = 1, persistent = true, server_global_value_config = { ["SGV_XinyanPortal_Pic"]= 314} },
{ config_id = 100002, gadget_id = 70290264, pos = { x = -130.382, y = 183.089, z = 634.454 }, rot = { x = 8.014, y = 117.521, z = 12.700 }, level = 1 },
{ config_id = 100008, gadget_id = 70290502, pos = { x = -130.382, y = 183.089, z = 634.454 }, rot = { x = 8.014, y = 117.521, z = 12.700 }, level = 1, persistent = true }
}
-- 区域
regions = {
-- 离开区域 把门关上
{ config_id = 100006, shape = RegionShape.SPHERE, radius = 5, pos = { x = -130.382, y = 183.089, z = 634.454 } }
}
-- 触发器
triggers = {
-- 门开后 创localTrigger
{ config_id = 1100005, name = "GADGET_STATE_CHANGE_100005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_100005", action = "action_EVENT_GADGET_STATE_CHANGE_100005", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1100006, name = "LEAVE_REGION_100006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_100006", action = "action_EVENT_LEAVE_REGION_100006", trigger_count = 0 },
-- 门初始状态重置
{ config_id = 1100007, name = "GADGET_CREATE_100007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_100007", action = "action_EVENT_GADGET_CREATE_100007", trigger_count = 0 },
-- if queststate 换真门
{ config_id = 1100009, name = "GROUP_LOAD_100009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_100009", trigger_count = 0 },
-- 离开区域 把门关上
{ config_id = 1100010, name = "TIME_AXIS_PASS_100010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_100010", action = "action_EVENT_TIME_AXIS_PASS_100010", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 100003, gadget_id = 70310172, pos = { x = -128.104, y = 182.723, z = 632.864 }, rot = { x = 0.000, y = 54.714, z = 0.000 }, level = 1, isOneoff = true, interact_id = 126 }
},
triggers = {
{ config_id = 1100004, name = "GADGET_STATE_CHANGE_100004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_100004", action = "action_EVENT_GADGET_STATE_CHANGE_100004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 100001 },
regions = { 100006 },
triggers = { "GADGET_STATE_CHANGE_100005", "LEAVE_REGION_100006", "GADGET_CREATE_100007", "GROUP_LOAD_100009", "TIME_AXIS_PASS_100010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 100008 },
regions = { },
triggers = { "GROUP_LOAD_100009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_100005(context, evt)
-- 检测config_id为100001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 100001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_100005(context, evt)
-- 创建id为100002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 100002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建标识为"CloseTime",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "CloseTime", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_100006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220133100, 100001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_100006(context, evt)
-- 将configid为 100001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 100001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133100, EntityType.GADGET, 100002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_100007(context, evt)
if 100001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_100007(context, evt)
-- 将configid为 100001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 100001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_100009(context, evt)
if ScriptLib.GetHostQuestState(context,4007010)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220133100, suite = 1 })
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_100010(context, evt)
if "CloseTime" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_100010(context, evt)
-- 将configid为 100001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 100001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220133100, EntityType.GADGET, 100002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end

Some files were not shown because too many files have changed in this diff Show More