添加配置表

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 = 400.0, z = 400.0 },
size = { x = 500.0, z = 500.0 },
born_pos = { x = 520.507, y = 89.529, z = 587.793 },
born_rot = { x = 0.000, y = 185.266, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 40051 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 400.0, z = 400.0 }, max = { x = 900.0, z = 900.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,377 @@
{
"sceneId": 40051,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 534.697754,
"y": 94.5597839,
"z": 540.8242
},
"waitTime": 5.0,
"speedLevel": 1
},
{
"pos": {
"x": 531.8851,
"y": 94.97691,
"z": 543.576843
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 531.6874,
"y": 94.89545,
"z": 549.8163
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 530.789551,
"y": 94.7047043,
"z": 553.1585
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 527.1144,
"y": 93.71848,
"z": 556.0712
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 525.178,
"y": 93.91881,
"z": 559.1021
},
"waitTime": 5.0,
"speedLevel": 1
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 546.8659,
"y": 93.97206,
"z": 536.8941
},
"waitTime": 5.0,
"speedLevel": 1
},
{
"pos": {
"x": 551.047241,
"y": 93.71751,
"z": 537.0826
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 555.537048,
"y": 92.682785,
"z": 534.2363
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 555.9168,
"y": 92.14035,
"z": 530.1418
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 559.471741,
"y": 92.00773,
"z": 527.8649
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 562.457031,
"y": 92.0056152,
"z": 524.3151
},
"waitTime": 5.0,
"speedLevel": 1
}
]
},
{
"localId": 3,
"name": "Platform_003",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 452.2772,
"y": 69.4320755,
"z": 504.545319
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 462.193,
"y": 72.2464447,
"z": 498.932159
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 462.310669,
"y": 69.4320755,
"z": 517.2498
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"reachStop": true
}
]
},
{
"localId": 4,
"name": "Platform_004",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 462.306183,
"y": 69.43208,
"z": 518.9834
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 478.862976,
"y": 69.43208,
"z": 511.4187
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 481.9237,
"y": 69.43208,
"z": 489.7653
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"reachStop": true
}
]
},
{
"localId": 5,
"name": "Platform_005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 479.283966,
"y": 69.43208,
"z": 487.131226
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 460.108337,
"y": 75.4268341,
"z": 477.0625
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 449.622437,
"y": 69.43208,
"z": 490.050049
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"reachStop": true
}
]
},
{
"localId": 6,
"name": "Platform_006",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 441.5686,
"y": 69.51716,
"z": 486.5871
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 436.041718,
"y": 71.62446,
"z": 485.3684
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 429.810028,
"y": 72.77524,
"z": 480.512482
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 426.4929,
"y": 73.85211,
"z": 480.395782
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 422.67,
"y": 77.0491638,
"z": 475.52655
},
"waitTime": 0.0,
"targetVelocity": 5.0,
"reachStop": true
}
]
},
{
"localId": 7,
"name": "Platform_007",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 456.075562,
"y": 112.968307,
"z": 505.78476
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 458.5784,
"y": 140.603,
"z": 503.1029
},
"waitTime": 5.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 456.075562,
"y": 112.968307,
"z": 505.78476
},
"waitTime": 5.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 8,
"name": "Route_008",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 457.728577,
"y": 96.48556,
"z": 542.1204
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 456.4432,
"y": 96.9152145,
"z": 547.432434
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 456.800568,
"y": 97.19422,
"z": 553.170166
},
"waitTime": 5.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,14 @@
-- 所有的group
groups = {
{ id = 240051001, refresh_id = 1, pos = { x = 459.686, y = 68.552, z = 496.748 } },
{ id = 240051002, refresh_id = 1, pos = { x = 534.300, y = 94.670, z = 541.671 } },
{ id = 240051003, refresh_id = 1001, pos = { x = 565.561, y = 92.057, z = 522.126 } },
{ id = 240051004, refresh_id = 1, pos = { x = 424.310, y = 70.069, z = 478.545 } },
{ id = 240051005, refresh_id = 1001, pos = { x = 434.945, y = 102.661, z = 451.666 } },
{ id = 240051006, refresh_id = 1002, pos = { x = 463.955, y = 68.552, z = 502.047 } },
{ id = 240051007, pos = { x = 450.520, y = 69.043, z = 515.716 } },
{ id = 240051008, refresh_id = 1, pos = { x = 467.009, y = 142.569, z = 477.907 } },
{ id = 240051009, refresh_id = 1, pos = { x = 441.598, y = 116.000, z = 520.157 } },
{ id = 240051010, refresh_id = 1001, pos = { x = 458.325, y = 96.174, z = 539.037 } },
{ id = 240051011, refresh_id = 1002, pos = { x = 487.056, y = 145.264, z = 423.753 } }
}
@@ -0,0 +1,94 @@
-- 基础信息
local base_info = {
group_id = 240051001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70210101, pos = { x = 538.362, y = 95.539, z = 540.747 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 1002, gadget_id = 70210101, pos = { x = 505.288, y = 98.883, z = 523.575 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 1003, gadget_id = 70290487, pos = { x = 465.772, y = 68.553, z = 504.351 }, rot = { x = 0.000, y = 30.214, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1004, gadget_id = 70290487, pos = { x = 466.097, y = 68.553, z = 492.134 }, rot = { x = 0.000, y = 144.629, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1005, gadget_id = 70290487, pos = { x = 454.715, y = 68.553, z = 498.880 }, rot = { x = 0.000, y = 89.727, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1006, gadget_id = 70290578, pos = { x = 460.787, y = 70.001, z = 473.126 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1007, gadget_id = 70290577, pos = { x = 448.714, y = 84.685, z = 480.513 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1008, gadget_id = 70210101, pos = { x = 430.926, y = 116.202, z = 533.312 }, rot = { x = 0.000, y = 131.694, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 1009, gadget_id = 70211001, pos = { x = 494.566, y = 118.557, z = 497.189 }, rot = { x = 0.000, y = 296.401, z = 0.000 }, level = 1, drop_tag = "战斗低级须弥", isOneoff = true, persistent = true },
{ config_id = 1010, gadget_id = 70290482, pos = { x = 489.777, y = 120.561, z = 499.536 }, rot = { x = 0.000, y = 109.833, z = 0.000 }, level = 1 },
{ config_id = 1011, gadget_id = 70290577, pos = { x = 469.429, y = 98.409, z = 483.341 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1012, gadget_id = 70290578, pos = { x = 485.432, y = 96.824, z = 508.033 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1013, gadget_id = 70290578, pos = { x = 432.163, y = 87.713, z = 494.188 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70950047, pos = { x = 429.337, y = 102.249, z = 454.446 }, rot = { x = 0.000, y = 334.938, 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 = { 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 240051002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70220103, pos = { x = 470.091, y = 101.962, z = 526.121 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 2002, gadget_id = 70220103, pos = { x = 444.498, y = 125.535, z = 525.223 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 2003, gadget_id = 70220103, pos = { x = 482.230, y = 121.417, z = 496.301 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,101 @@
-- 基础信息
local base_info = {
group_id = 240051003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3002, monster_id = 26090201, pos = { x = 567.369, y = 92.216, z = 518.287 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 105 },
{ config_id = 3003, monster_id = 26090201, pos = { x = 565.602, y = 92.006, z = 525.394 }, rot = { x = 0.000, y = 102.762, z = 0.000 }, level = 1, pose_id = 105 },
{ config_id = 3004, monster_id = 26090801, pos = { x = 562.020, y = 92.052, z = 521.506 }, rot = { x = 0.000, y = 78.543, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 3006, monster_id = 26090501, pos = { x = 546.077, y = 93.984, z = 536.689 }, rot = { x = 0.000, y = 91.651, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 3007, monster_id = 26090401, pos = { x = 534.927, y = 94.477, z = 540.329 }, rot = { x = 0.000, y = 323.716, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 3008, monster_id = 26090901, pos = { x = 538.008, y = 94.629, z = 543.127 }, rot = { x = 0.000, y = 108.028, z = 0.000 }, level = 1, pose_id = 104 },
{ config_id = 3009, monster_id = 26090701, pos = { x = 542.195, y = 94.540, z = 540.047 }, rot = { x = 0.000, y = 299.526, z = 0.000 }, level = 1, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70211002, pos = { x = 570.673, y = 92.100, z = 523.423 }, rot = { x = 0.000, y = 251.186, z = 0.000 }, level = 1, drop_tag = "战斗低级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003005, name = "ANY_MONSTER_DIE_3005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3005", action = "action_EVENT_ANY_MONSTER_DIE_3005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3002, 3003, 3004, 3006, 3007, 3008, 3009 },
gadgets = { 3001 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 将configid为 3001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,116 @@
-- 基础信息
local base_info = {
group_id = 240051004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70290508, pos = { x = 421.772, y = 72.804, z = 474.034 }, rot = { x = 0.000, y = 49.088, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70290484, pos = { x = 421.772, y = 72.846, z = 474.034 }, rot = { x = 0.000, y = 49.088, z = 0.000 }, level = 1 },
{ config_id = 4003, gadget_id = 70360001, pos = { x = 421.772, y = 72.846, z = 474.034 }, rot = { x = 0.000, y = 49.088, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004004, name = "SELECT_OPTION_4004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4004", action = "action_EVENT_SELECT_OPTION_4004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002 },
regions = { },
triggers = { "SELECT_OPTION_4004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_4004(context, evt)
-- 判断是gadgetid 4003 option_id 220
if 4003 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4004(context, evt)
-- 删除指定group 240051004 ;指定config4003;物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240051004, 4003, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,155 @@
-- 基础信息
local base_info = {
group_id = 240051005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5005, monster_id = 26090801, pos = { x = 436.066, y = 102.069, z = 454.665 }, rot = { x = 0.000, y = 170.300, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 5006, monster_id = 26090801, pos = { x = 437.680, y = 103.018, z = 450.895 }, rot = { x = 0.000, y = 251.897, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 5007, monster_id = 26090401, pos = { x = 439.649, y = 102.578, z = 454.343 }, rot = { x = 0.000, y = 230.571, z = 0.000 }, level = 1, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70290508, pos = { x = 429.056, y = 103.270, z = 449.025 }, rot = { x = 0.000, y = 77.910, z = 0.000 }, level = 1 },
{ config_id = 5002, gadget_id = 70290484, pos = { x = 429.056, y = 103.342, z = 449.025 }, rot = { x = 0.000, y = 77.910, z = 0.000 }, level = 1 },
{ config_id = 5003, gadget_id = 70360001, pos = { x = 429.056, y = 103.354, z = 449.025 }, rot = { x = 0.000, y = 77.910, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } },
{ config_id = 5009, gadget_id = 70950047, pos = { x = 443.731, y = 103.214, z = 446.949 }, rot = { x = 0.000, y = 320.447, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005004, name = "SELECT_OPTION_5004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5004", action = "action_EVENT_SELECT_OPTION_5004" },
{ config_id = 1005008, name = "ANY_MONSTER_DIE_5008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5008", action = "action_EVENT_ANY_MONSTER_DIE_5008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5005, 5006, 5007 },
gadgets = { 5001, 5002, 5009 },
regions = { },
triggers = { "SELECT_OPTION_5004", "ANY_MONSTER_DIE_5008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_5004(context, evt)
-- 判断是gadgetid 5003 option_id 220
if 5003 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5004(context, evt)
-- 删除指定group 240051005 ;指定config5003;物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240051005, 5003, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 5001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5008(context, evt)
-- 将configid为 5002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=429.0559, y=103.2702, z=449.0248},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=429.0559, y=103.2702, z=449.0248}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240051005, 2)
return 0
end
@@ -0,0 +1,165 @@
-- 基础信息
local base_info = {
group_id = 240051006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6005, monster_id = 24030201, pos = { x = 467.537, y = 68.554, z = 497.655 }, rot = { x = 0.000, y = 293.655, z = 0.000 }, level = 1, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70290508, pos = { x = 462.098, y = 68.552, z = 498.894 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70290484, pos = { x = 462.098, y = 68.552, z = 498.894 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6003, gadget_id = 70360001, pos = { x = 462.098, y = 68.552, z = 498.894 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006004, name = "SELECT_OPTION_6004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6004", action = "action_EVENT_SELECT_OPTION_6004" },
{ config_id = 1006006, name = "ANY_MONSTER_DIE_6006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6006", action = "action_EVENT_ANY_MONSTER_DIE_6006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6005 },
gadgets = { 6001, 6002 },
regions = { },
triggers = { "SELECT_OPTION_6004", "ANY_MONSTER_DIE_6006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_6004(context, evt)
-- 判断是gadgetid 6003 option_id 220
if 6003 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6004(context, evt)
-- 删除指定group 240051006 ;指定config6003;物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240051006, 6003, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 6001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=448.3215, y=69.43208, z=506.8563},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=448.3215, y=69.43208, z=506.8563}
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
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240051007, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 将configid为 6002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240051006, 2)
-- 触发镜头注目,注目位置为坐标{x=462.0978, y=68.552, z=498.8942},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=462.0978, y=68.552, z=498.8942}
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
@@ -0,0 +1,248 @@
-- 基础信息
local base_info = {
group_id = 240051007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70310198, pos = { x = 449.125, y = 68.294, z = 513.011 }, rot = { x = 0.000, y = 148.152, z = 0.000 }, level = 30 },
{ config_id = 7002, gadget_id = 70310200, pos = { x = 448.322, y = 69.432, z = 506.856 }, rot = { x = 0.000, y = 298.874, z = 0.000 }, level = 30 },
-- 1号移动
{ config_id = 7003, gadget_id = 70290531, pos = { x = 449.612, y = 69.432, z = 506.162 }, rot = { x = 0.000, y = 127.472, z = 0.000 }, level = 30, route_id = 3 },
{ config_id = 7004, gadget_id = 70310198, pos = { x = 441.548, y = 68.115, z = 489.027 }, rot = { x = 0.000, y = 108.361, z = 0.000 }, level = 30 },
-- 2号移动
{ config_id = 7005, gadget_id = 70290531, pos = { x = 462.205, y = 69.432, z = 517.669 }, rot = { x = 0.000, y = 357.173, z = 0.000 }, level = 30, route_id = 4 },
-- 3号移动
{ config_id = 7006, gadget_id = 70290531, pos = { x = 481.420, y = 68.928, z = 488.414 }, rot = { x = 0.000, y = 59.020, z = 0.000 }, level = 30, route_id = 5 },
-- 4号移动
{ config_id = 7011, gadget_id = 70290531, pos = { x = 449.622, y = 69.432, z = 490.050 }, rot = { x = 0.000, y = 59.020, z = 0.000 }, level = 30, route_id = 6 },
{ config_id = 7013, gadget_id = 70310198, pos = { x = 479.143, y = 68.099, z = 485.775 }, rot = { x = 0.000, y = 90.268, z = 0.000 }, level = 30 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007007, name = "GADGET_STATE_CHANGE_7007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7007", action = "action_EVENT_GADGET_STATE_CHANGE_7007", trigger_count = 0 },
{ config_id = 1007008, name = "GADGET_STATE_CHANGE_7008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7008", action = "action_EVENT_GADGET_STATE_CHANGE_7008", trigger_count = 0 },
{ config_id = 1007009, name = "GADGET_STATE_CHANGE_7009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7009", action = "action_EVENT_GADGET_STATE_CHANGE_7009", trigger_count = 0 },
{ config_id = 1007010, name = "GADGET_STATE_CHANGE_7010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7010", action = "action_EVENT_GADGET_STATE_CHANGE_7010", trigger_count = 0 },
{ config_id = 1007012, name = "GADGET_STATE_CHANGE_7012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7012", action = "action_EVENT_GADGET_STATE_CHANGE_7012", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7004, 7013 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_7007" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 7002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_7008" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 7005 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_7009" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 7006 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_7010" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 7011 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_7012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7007(context, evt)
if 7003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7007(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240051007, 4)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 7003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7008(context, evt)
if 7002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240051007, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7009(context, evt)
if 7005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7009(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 240051007, 5)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 7005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7010(context, evt)
if 7006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7010(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 240051007, 6)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 7006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7012(context, evt)
if 7011 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7012(context, evt)
-- 改变指定group组240051004中, configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240051004, 4002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240051004, 2)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 7011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
@@ -0,0 +1,133 @@
-- 基础信息
local base_info = {
group_id = 240051008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70290506, pos = { x = 468.475, y = 143.219, z = 475.375 }, rot = { x = 0.000, y = 340.487, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70360001, pos = { x = 468.338, y = 144.068, z = 476.040 }, rot = { x = 0.000, y = 340.487, z = 0.000 }, level = 1, worktop_config = { init_options = { 769 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008003, name = "SELECT_OPTION_8003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8003", action = "action_EVENT_SELECT_OPTION_8003" },
{ config_id = 1008004, name = "GADGET_STATE_CHANGE_8004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8004", action = "action_EVENT_GADGET_STATE_CHANGE_8004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001 },
regions = { },
triggers = { "SELECT_OPTION_8003", "GADGET_STATE_CHANGE_8004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 8002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_8003(context, evt)
-- 判断是gadgetid 8002 option_id 769
if 8002 ~= evt.param1 then
return false
end
if 769 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_8003(context, evt)
-- 删除指定group 240051008 ;指定config8002;物件身上指定option769
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240051008, 8002, 769) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 8001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8004(context, evt)
if 8001 ~= evt.param2 or GadgetState.Action03 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240051008, 2)
return 0
end
@@ -0,0 +1,243 @@
-- 基础信息
local base_info = {
group_id = 240051009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70290526, pos = { x = 438.579, y = 115.533, z = 526.270 }, rot = { x = 0.000, y = 274.497, z = 0.000 }, level = 1, worktop_config = { init_options = { 769 } } },
{ config_id = 9002, gadget_id = 70350456, pos = { x = 448.259, y = 115.652, z = 513.893 }, rot = { x = 0.000, y = 313.857, z = 0.000 }, level = 1 },
{ config_id = 9003, gadget_id = 70350456, pos = { x = 462.514, y = 141.922, z = 493.090 }, rot = { x = 3.678, y = 343.490, z = 0.237 }, level = 1 },
{ config_id = 9004, gadget_id = 70290480, pos = { x = 456.076, y = 112.968, z = 505.785 }, rot = { x = 0.000, y = 309.838, z = 0.000 }, level = 1, route_id = 7, start_route = false },
{ config_id = 9007, gadget_id = 70290526, pos = { x = 486.744, y = 116.793, z = 502.736 }, rot = { x = 0.000, y = 94.499, z = 0.000 }, level = 1, worktop_config = { init_options = { 769 } } }
}
-- 区域
regions = {
{ config_id = 9006, shape = RegionShape.SPHERE, radius = 1, pos = { x = 456.254, y = 115.490, z = 506.106 } }
}
-- 触发器
triggers = {
-- 开光桥2
{ config_id = 1009005, name = "SELECT_OPTION_9005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9005", action = "action_EVENT_SELECT_OPTION_9005", trigger_count = 0 },
{ config_id = 1009006, name = "ENTER_REGION_9006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9006", action = "action_EVENT_ENTER_REGION_9006" },
-- 开光桥1
{ config_id = 1009008, name = "SELECT_OPTION_9008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9008", action = "action_EVENT_SELECT_OPTION_9008", trigger_count = 0 },
-- 光桥一显示
{ config_id = 1009009, name = "TIME_AXIS_PASS_9009", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_9009", action = "action_EVENT_TIME_AXIS_PASS_9009" },
-- 光桥二显示
{ config_id = 1009010, name = "TIME_AXIS_PASS_9010", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_9010", action = "action_EVENT_TIME_AXIS_PASS_9010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9002, 9003, 9004, 9007 },
regions = { 9006 },
triggers = { "SELECT_OPTION_9005", "ENTER_REGION_9006", "SELECT_OPTION_9008", "TIME_AXIS_PASS_9009", "TIME_AXIS_PASS_9010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_9005(context, evt)
-- 判断是gadgetid 9001 option_id 769
if 9001 ~= evt.param1 then
return false
end
if 769 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9005(context, evt)
-- 删除指定group 240051009 ;指定config9001;物件身上指定option769
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240051009, 9001, 769) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 9001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建标识为"bridge2",时间节点为{2}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "bridge2", {2}, false)
-- 触发镜头注目,注目位置为坐标local pos = {x=462.5136, y=141.9223, z=493.0901},持续时间为4秒,并且为强制注目形式,不广播其他玩家
local pos = {x=462.5136, y=141.9223, z=493.0901}
local pos_follow = {x=440.6, y=119.64, z=517.33}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 4, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
disable_protect = 1, blend_type = 1, blend_duration = 0,
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_ENTER_REGION_9006(context, evt)
if evt.param1 ~= 9006 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_9006(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 9004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9008(context, evt)
-- 判断是gadgetid 9007 option_id 769
if 9007 ~= evt.param1 then
return false
end
if 769 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9008(context, evt)
-- 删除指定group 240051009 ;指定config9007;物件身上指定option769
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240051009, 9007, 769) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 9007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建标识为"bridge1",时间节点为{2}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "bridge1", {2}, false)
-- 触发镜头注目,注目位置为坐标local pos = {x=448.259, y=115.6524, z=513.8931},持续时间为4秒,并且为强制注目形式,不广播其他玩家
local pos = {x=448.259, y=115.6524, z=513.8931}
local pos_follow = {x=475.33, y=126.49, z=504.77}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 4, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
disable_protect = 1, blend_type = 1, blend_duration = 0,
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_TIME_AXIS_PASS_9009(context, evt)
if "bridge1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_9009(context, evt)
-- 将configid为 9002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_9010(context, evt)
if "bridge2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_9010(context, evt)
-- 将configid为 9003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 240051010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10002, monster_id = 26090501, pos = { x = 457.871, y = 96.213, z = 541.722 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 10003, monster_id = 26090201, pos = { x = 455.244, y = 97.223, z = 556.572 }, rot = { x = 0.000, y = 15.379, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 },
{ config_id = 10004, monster_id = 26090201, pos = { x = 459.160, y = 97.067, z = 557.156 }, rot = { x = 0.000, y = 309.856, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 },
{ config_id = 10005, monster_id = 26090901, pos = { x = 457.285, y = 97.116, z = 555.705 }, rot = { x = 0.000, y = 322.246, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70211002, pos = { x = 456.766, y = 97.072, z = 559.648 }, rot = { x = 0.000, y = 176.482, z = 0.000 }, level = 1, drop_tag = "战斗低级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1010006, name = "ANY_MONSTER_DIE_10006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_10006", action = "action_EVENT_ANY_MONSTER_DIE_10006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 10002, 10003, 10004, 10005 },
gadgets = { 10001 },
regions = { },
triggers = { "ANY_MONSTER_DIE_10006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_10006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10006(context, evt)
-- 将configid为 10001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,102 @@
-- 基础信息
local base_info = {
group_id = 240051011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11001, monster_id = 24030201, pos = { x = 492.281, y = 145.199, z = 418.684 }, rot = { x = 0.000, y = 284.075, z = 0.000 }, level = 1, disableWander = true, isElite = true, pose_id = 102 },
{ config_id = 11002, monster_id = 24030101, pos = { x = 477.580, y = 145.064, z = 413.590 }, rot = { x = 0.000, y = 26.014, z = 0.000 }, level = 1, disableWander = true, isElite = true, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11003, gadget_id = 70211121, pos = { x = 484.631, y = 145.169, z = 420.974 }, rot = { x = 0.000, y = 340.502, z = 0.000 }, level = 1, drop_tag = "解谜高级须弥", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011004, name = "ANY_MONSTER_DIE_11004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11004", action = "action_EVENT_ANY_MONSTER_DIE_11004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 11001, 11002 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_11004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 11003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240051011, 2)
return 0
end
@@ -0,0 +1,85 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 489.4745,
"y": 144.781,
"z": 409.3327
},
"rot": {
"x": 0.0,
"y": 341.2831,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 496.200134,
"y": 145.2282,
"z": 414.6127
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 467.0409,
"y": 142.3308,
"z": 480.1498
},
"rot": {
"x": 0.0,
"y": 164.4925,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}