添加配置表

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 = -2325.0, z = -1646.1 },
size = { x = 5799.9, z = 5191.3 },
born_pos = { x = 343.290, y = -27.850, z = 472.918 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
die_y = -35,
city_id = 1,
vision_anchor = { x = -2325.0, z = -1646.1 }
}
-- 所有的区块
blocks = { 20036 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -2325.0, z = -1646.1 }, max = { x = 3474.9, z = 3545.2 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,281 @@
{
"sceneId": 20036,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 350.3093
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 350.512177
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 350.3093
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 327.9254,
"y": -17.53729,
"z": 352.833527
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 327.9254,
"y": -17.53729,
"z": 331.680969
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 3,
"name": "Route_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 358.1967,
"y": -17.8024845,
"z": 338.3786
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 358.1967,
"y": -17.8024845,
"z": 356.126343
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 5,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 350.512177
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 350.3093
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 6,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 350.512177
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 350.3093
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 7,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 350.512177
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 350.3093
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 352.2369,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 336.3017
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.0715,
"y": -19.6962128,
"z": 350.512177
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
}
]
}
@@ -0,0 +1,8 @@
-- 所有的group
groups = {
{ id = 220036001, pos = { x = 342.550, y = -28.891, z = 431.773 } },
{ id = 220036002, refresh_id = 1, pos = { x = 342.781, y = -19.277, z = 344.560 } },
{ id = 220036003, refresh_id = 1, pos = { x = 343.485, y = -12.741, z = 263.290 } },
{ id = 220036004, refresh_id = 1, pos = { x = 345.026, y = -12.741, z = 263.749 } },
{ id = 220036005, refresh_id = 1, pos = { x = 344.397, y = -12.741, z = 263.023 } }
}
@@ -0,0 +1,27 @@
dummy_points = {
["Q19045Bennett1"] = { pos = { x = 343.252, y = -28.965, z = 432.644 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19045Bennett2"] = { pos = { x = 342.765, y = -19.277, z = 355.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19045Bennett3"] = { pos = { x = 337.434, y = -19.277, z = 345.671 }, rot = { x = 0.000, y = 184.490, z = 0.000 } },
["Q19045Bennett301"] = { pos = { x = 337.445, y = -19.276, z = 345.680 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19045Bennett4"] = { pos = { x = 345.273, y = -11.354, z = 282.642 }, rot = { x = 0.000, y = 2.505, z = 0.000 } },
["Q19045Bennett4Turn"] = { pos = { x = 345.243, y = -11.354, z = 282.679 }, rot = { x = 0.000, y = 269.726, z = 0.000 } },
["Q19045Bennett5"] = { pos = { x = 360.529, y = -11.354, z = 268.146 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19045Bennett6"] = { pos = { x = 343.263, y = -11.353, z = 284.410 }, rot = { x = 0.000, y = 2.270, z = 0.000 } },
["Q19045Bennett7"] = { pos = { x = 343.307, y = -11.431, z = 244.739 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19045Bennett8"] = { pos = { x = 343.192, y = -11.353, z = 284.574 }, rot = { x = 0.000, y = 184.768, z = 0.000 } },
["Q19045BennettLeft"] = { pos = { x = 349.231, y = -19.277, z = 345.130 }, rot = { x = 0.000, y = 357.898, z = 0.000 } },
["Q19045Player"] = { pos = { x = 337.520, y = -19.277, z = 348.002 }, rot = { x = 0.000, y = 180.056, z = 0.000 } },
["Q19045Player1"] = { pos = { x = 343.201, y = -28.965, z = 435.216 }, rot = { x = 0.000, y = 181.900, z = 0.000 } },
["Q19045Player2"] = { pos = { x = 342.750, y = -18.837, z = 358.758 }, rot = { x = 0.000, y = 179.251, z = 0.000 } },
["Q19045Player4"] = { pos = { x = 345.289, y = -11.354, z = 284.930 }, rot = { x = 0.000, y = 179.436, z = 0.000 } },
["Q19045Player5"] = { pos = { x = 347.585, y = -12.741, z = 267.663 }, rot = { x = 0.000, y = 176.741, z = 0.000 } },
["Q19045Player6"] = { pos = { x = 343.341, y = -11.353, z = 289.432 }, rot = { x = 0.000, y = 182.888, z = 0.000 } },
["Q19045Player7"] = { pos = { x = 343.349, y = -12.342, z = 247.470 }, rot = { x = 0.000, y = 184.859, z = 0.000 } },
["Q19045Route101"] = { pos = { x = 343.158, y = -28.984, z = 419.406 }, rot = { x = 0.000, y = 180.925, z = 0.000 } },
["Q19045Route102"] = { pos = { x = 342.942, y = -27.984, z = 399.355 }, rot = { x = 0.000, y = 180.925, z = 0.000 } },
["Q19045Route103"] = { pos = { x = 343.104, y = -18.854, z = 372.416 }, rot = { x = 0.000, y = 181.849, z = 0.000 } },
["Q19045Route201"] = { pos = { x = 339.245, y = -19.277, z = 343.969 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19045Route202"] = { pos = { x = 342.855, y = -18.372, z = 326.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19045Route203"] = { pos = { x = 343.111, y = -11.354, z = 293.670 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19045Target1"] = { pos = { x = 349.160, y = -17.441, z = 343.305 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,237 @@
-- 基础信息
local base_info = {
group_id = 220036001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70210102, pos = { x = 326.525, y = -11.354, z = 264.002 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, persistent = true },
{ config_id = 1002, gadget_id = 70210102, pos = { x = 359.509, y = -11.353, z = 253.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, persistent = true },
{ config_id = 1003, gadget_id = 70210102, pos = { x = 359.491, y = -11.353, z = 273.494 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001004, name = "GADGET_STATE_CHANGE_1004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1004", action = "action_EVENT_GADGET_STATE_CHANGE_1004" },
{ config_id = 1001005, name = "VARIABLE_CHANGE_1005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1005", action = "action_EVENT_VARIABLE_CHANGE_1005" },
{ config_id = 1001006, name = "VARIABLE_CHANGE_1006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1006", action = "action_EVENT_VARIABLE_CHANGE_1006" },
{ config_id = 1001007, name = "VARIABLE_CHANGE_1007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1007", action = "action_EVENT_VARIABLE_CHANGE_1007" },
{ config_id = 1001008, name = "GADGET_STATE_CHANGE_1008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1008", action = "action_EVENT_GADGET_STATE_CHANGE_1008" },
{ config_id = 1001009, name = "GADGET_STATE_CHANGE_1009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1009", action = "action_EVENT_GADGET_STATE_CHANGE_1009" }
}
-- 变量
variables = {
{ config_id = 1, name = "interact_count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_1004", "VARIABLE_CHANGE_1005", "VARIABLE_CHANGE_1006", "VARIABLE_CHANGE_1007", "GADGET_STATE_CHANGE_1008", "GADGET_STATE_CHANGE_1009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1004(context, evt)
if 1001 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1004(context, evt)
-- 针对当前group内变量名为 "interact_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "interact_count", 1, 220036001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"interact_count"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "interact_count", 220036001) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1005(context, evt)
-- 调用提示id为 200360101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200360101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200360011") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"interact_count"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "interact_count", 220036001) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1006(context, evt)
-- 调用提示id为 200360102 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200360102) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200360011") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"interact_count"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "interact_count", 220036001) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1007(context, evt)
-- 调用提示id为 200360103 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200360103) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200360011") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1008(context, evt)
if 1002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1008(context, evt)
-- 针对当前group内变量名为 "interact_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "interact_count", 1, 220036001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1009(context, evt)
if 1003 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1009(context, evt)
-- 针对当前group内变量名为 "interact_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "interact_count", 1, 220036001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,324 @@
-- 基础信息
local base_info = {
group_id = 220036002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360021, pos = { x = 352.237, y = -19.696, z = 350.309 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1, start_route = false },
{ config_id = 2002, gadget_id = 70360002, pos = { x = 337.321, y = -19.277, z = 343.627 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70360002, pos = { x = 349.084, y = -19.276, z = 343.580 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70350003, pos = { x = 352.907, y = -18.364, z = 322.498 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70350003, pos = { x = 333.233, y = -18.307, z = 322.527 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70350003, pos = { x = 343.280, y = -18.353, z = 322.507 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2009, gadget_id = 70350003, pos = { x = 353.314, y = -18.844, z = 368.332 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2010, gadget_id = 70350003, pos = { x = 333.256, y = -18.841, z = 368.293 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2011, gadget_id = 70350003, pos = { x = 343.280, y = -18.837, z = 368.334 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2012, gadget_id = 70360021, pos = { x = 327.925, y = -17.537, z = 352.834 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, route_id = 2, start_route = false },
{ config_id = 2013, gadget_id = 70360021, pos = { x = 358.197, y = -17.802, z = 338.379 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, route_id = 3, start_route = false },
{ config_id = 2015, gadget_id = 70360021, pos = { x = 352.237, y = -19.696, z = 336.302 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5, start_route = false },
{ config_id = 2016, gadget_id = 70360021, pos = { x = 335.072, y = -19.696, z = 336.302 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6, start_route = false },
{ config_id = 2017, gadget_id = 70360021, pos = { x = 335.072, y = -19.696, z = 350.512 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7, start_route = false },
{ config_id = 2019, gadget_id = 70900202, pos = { x = 349.084, y = -17.778, z = 343.580 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2018, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 10.000 }, pos = { x = 343.174, y = -27.954, z = 409.581 } }
}
-- 触发器
triggers = {
{ config_id = 1002007, name = "QUEST_START_2007", event = EventType.EVENT_QUEST_START, source = "1904505", condition = "", action = "action_EVENT_QUEST_START_2007", trigger_count = 0 },
{ config_id = 1002008, name = "SELECT_OPTION_2008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2008", action = "action_EVENT_SELECT_OPTION_2008" },
{ config_id = 1002014, name = "QUEST_FINISH_2014", event = EventType.EVENT_QUEST_FINISH, source = "1904519", condition = "", action = "action_EVENT_QUEST_FINISH_2014", trigger_count = 0 },
{ config_id = 1002018, name = "ENTER_REGION_2018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2018", action = "action_EVENT_ENTER_REGION_2018" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010, 2011, 2012, 2013, 2015, 2016, 2017 },
regions = { 2018 },
triggers = { "QUEST_START_2007", "SELECT_OPTION_2008", "QUEST_FINISH_2014", "ENTER_REGION_2018" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2019 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_START_2007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220036002, 2003, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220036002, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2008(context, evt)
-- 判断是gadgetid 2003 option_id 24
if 2003 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2008(context, evt)
-- 删除指定group 220036002 ;指定config2003;物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220036002, 2003, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 2002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 2001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200360011") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将configid为 2015 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2015, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2016 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2016, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2017 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2017, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 2015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 2016) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 2017) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220036002, EntityType.GADGET, 2019 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_2014(context, evt)
-- 将configid为 2013 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2013, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 2012) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 2013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2018(context, evt)
if evt.param1 ~= 2018 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_2018(context, evt)
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2015 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2016 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2016, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2017 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2017, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 2001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 2015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 2016) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 2017) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
@@ -0,0 +1,455 @@
-- 基础信息
local base_info = {
group_id = 220036003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70210116, pos = { x = 343.384, y = -11.535, z = 243.210 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, state = GadgetState.ChestLocked },
{ config_id = 3002, gadget_id = 70350002, pos = { x = 343.330, y = -11.186, z = 240.280 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70310011, pos = { x = 343.238, y = -13.023, z = 269.341 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3004, gadget_id = 70310011, pos = { x = 338.257, y = -13.023, z = 259.397 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3005, gadget_id = 70310011, pos = { x = 344.702, y = -13.023, z = 266.539 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3008, gadget_id = 70360002, pos = { x = 348.281, y = -12.741, z = 258.040 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 3009, gadget_id = 70360002, pos = { x = 343.269, y = -12.741, z = 268.147 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 3010, gadget_id = 70360002, pos = { x = 338.294, y = -12.741, z = 258.067 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 3014, gadget_id = 70310011, pos = { x = 348.202, y = -13.023, z = 259.363 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3015, gadget_id = 70310011, pos = { x = 341.849, y = -13.023, z = 266.509 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3016, gadget_id = 70310011, pos = { x = 339.767, y = -13.023, z = 256.554 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3017, gadget_id = 70360002, pos = { x = 343.341, y = -11.354, z = 282.630 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 3018, gadget_id = 70710345, pos = { x = 343.290, y = -12.740, z = 262.970 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3027, gadget_id = 70710291, pos = { x = 343.419, y = -11.354, z = 285.925 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003006, name = "SELECT_OPTION_3006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3006", action = "action_EVENT_SELECT_OPTION_3006", trigger_count = 0 },
{ config_id = 1003007, name = "SELECT_OPTION_3007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3007", action = "action_EVENT_SELECT_OPTION_3007", trigger_count = 0 },
{ config_id = 1003011, name = "QUEST_START_3011", event = EventType.EVENT_QUEST_START, source = "1904511", condition = "", action = "action_EVENT_QUEST_START_3011", trigger_count = 0 },
{ config_id = 1003012, name = "SELECT_OPTION_3012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3012", action = "action_EVENT_SELECT_OPTION_3012", trigger_count = 0 },
{ config_id = 1003013, name = "TIMER_EVENT_3013", event = EventType.EVENT_TIMER_EVENT, source = "unlock_option", condition = "condition_EVENT_TIMER_EVENT_3013", action = "action_EVENT_TIMER_EVENT_3013", trigger_count = 0 },
{ config_id = 1003019, name = "GADGET_STATE_CHANGE_3019", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3019", action = "action_EVENT_GADGET_STATE_CHANGE_3019", trigger_count = 0 },
{ config_id = 1003020, name = "GADGET_STATE_CHANGE_3020", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3020", action = "action_EVENT_GADGET_STATE_CHANGE_3020", trigger_count = 0 },
{ config_id = 1003021, name = "QUEST_FINISH_3021", event = EventType.EVENT_QUEST_FINISH, source = "1904515", condition = "", action = "action_EVENT_QUEST_FINISH_3021", trigger_count = 0 },
{ config_id = 1003022, name = "VARIABLE_CHANGE_3022", event = EventType.EVENT_VARIABLE_CHANGE, source = "puzzle_flag", condition = "condition_EVENT_VARIABLE_CHANGE_3022", action = "action_EVENT_VARIABLE_CHANGE_3022" },
{ config_id = 1003023, name = "TIMER_EVENT_3023", event = EventType.EVENT_TIMER_EVENT, source = "fail_delay", condition = "", action = "action_EVENT_TIMER_EVENT_3023" },
{ config_id = 1003024, name = "QUEST_START_3024", event = EventType.EVENT_QUEST_START, source = "1904515", condition = "", action = "action_EVENT_QUEST_START_3024", trigger_count = 0 },
{ config_id = 1003026, name = "GADGET_STATE_CHANGE_3026", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3026", action = "action_EVENT_GADGET_STATE_CHANGE_3026" }
}
-- 变量
variables = {
{ config_id = 1, name = "puzzle_count", value = 0, no_refresh = false },
{ config_id = 2, name = "puzzle_flag", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004, 3005, 3008, 3009, 3010, 3014, 3015, 3016, 3017, 3018 },
regions = { },
triggers = { "SELECT_OPTION_3006", "SELECT_OPTION_3007", "QUEST_START_3011", "SELECT_OPTION_3012", "TIMER_EVENT_3013", "GADGET_STATE_CHANGE_3019", "GADGET_STATE_CHANGE_3020", "QUEST_FINISH_3021", "VARIABLE_CHANGE_3022", "TIMER_EVENT_3023", "QUEST_START_3024", "GADGET_STATE_CHANGE_3026" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_3006(context, evt)
if 3009 ~= evt.param1 then
return false
end
-- 判断变量"puzzle_count"为0
if ScriptLib.GetGroupVariableValue(context, "puzzle_count") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3006(context, evt)
-- 删除指定group 220036003 ;指定config3009;物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3009, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 3009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "puzzle_count" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "puzzle_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3007(context, evt)
if 3008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3007(context, evt)
local count = ScriptLib.GetGroupVariableValue(context, "puzzle_count")
local pos = { x = 343, y = -11, z = 285 }
if count == 1 then
ScriptLib.SetGroupVariableValue(context, "puzzle_count", 2)
ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3008, 24)
ScriptLib.SetGadgetStateByConfigId(context, 3008, GadgetState.GearStart)
else
ScriptLib.SetGroupVariableValue(context, "puzzle_count", 0)
ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3008, 24)
ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3009, 24)
ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3010, 24)
ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.Default)
ScriptLib.SetGadgetStateByConfigId(context, 3008, GadgetState.Default)
ScriptLib.SetGadgetStateByConfigId(context, 3010, GadgetState.Default)
ScriptLib.CreateGroupTimerEvent(context, 220036003, "unlock_option", 3)
ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0 })
ScriptLib.CreateGadget(context, { config_id = 3027 })
ScriptLib.AddQuestProgress(context, "22003600302")
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_3011(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220036003, 3008, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220036003, 3009, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220036003, 3010, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 3008 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3009 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3010 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3017 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3017, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3012(context, evt)
if 3010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3012(context, evt)
local count = ScriptLib.GetGroupVariableValue(context, "puzzle_count")
local pos = { x = 343, y = -11, z = 285 }
if count == 2 then
ScriptLib.SetGroupVariableValue(context, "puzzle_count", 3)
ScriptLib.SetGroupVariableValue(context, "puzzle_flag", 1)
ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3010, 24)
ScriptLib.SetGadgetStateByConfigId(context, 3010, GadgetState.GearStart)
ScriptLib.AddQuestProgress(context, "22003600301")
else
ScriptLib.SetGroupVariableValue(context, "puzzle_count", 0)
ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3008, 24)
ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3009, 24)
ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3010, 24)
ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.Default)
ScriptLib.SetGadgetStateByConfigId(context, 3008, GadgetState.Default)
ScriptLib.SetGadgetStateByConfigId(context, 3010, GadgetState.Default)
ScriptLib.CreateGroupTimerEvent(context, 220036003, "unlock_option", 3)
ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0 })
ScriptLib.CreateGadget(context, { config_id = 3027 })
ScriptLib.AddQuestProgress(context, "22003600302")
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_3013(context, evt)
-- 判断变量"puzzle_flag"为0
if ScriptLib.GetGroupVariableValue(context, "puzzle_flag") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3013(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220036003, 3008, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220036003, 3009, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220036003, 3010, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3019(context, evt)
if 3013 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3019(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200360012") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3020(context, evt)
if 3018 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3020(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200360013") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_3021(context, evt)
-- 延迟5秒后,向groupId为:220036003的对象,请求一次调用,并将string参数:"fail_delay" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220036003, "fail_delay", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3022(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"puzzle_flag"为1
if ScriptLib.GetGroupVariableValue(context, "puzzle_flag") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3022(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
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200360031") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3023(context, evt)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_3024(context, evt)
-- 将本组内变量名为 "puzzle_flag" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "puzzle_flag", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 删除指定group 220036003 ;指定config3008;物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3008, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 220036003 ;指定config3009;物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3009, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 220036003 ;指定config3010;物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220036003, 3010, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 3008 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3008, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3009 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3010 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3010, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3017 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3017, 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_3026(context, evt)
if 3001 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3026(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200360032") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,96 @@
-- 基础信息
local base_info = {
group_id = 220036004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70220065, pos = { x = 360.720, y = -11.353, z = 254.059 }, rot = { x = 0.000, y = 324.436, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70220065, pos = { x = 361.258, y = -11.354, z = 251.565 }, rot = { x = 0.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4003, gadget_id = 70220066, pos = { x = 359.221, y = -11.353, z = 252.048 }, rot = { x = 355.150, y = 279.128, z = 0.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70220066, pos = { x = 359.154, y = -11.015, z = 250.876 }, rot = { x = 270.000, y = 242.580, z = 0.000 }, level = 1 },
{ config_id = 4005, gadget_id = 70220067, pos = { x = 360.360, y = -11.354, z = 274.642 }, rot = { x = 6.211, y = 332.580, z = 4.005 }, level = 1 },
{ config_id = 4006, gadget_id = 70220067, pos = { x = 358.963, y = -11.353, z = 272.187 }, rot = { x = 6.904, y = 278.751, z = 357.369 }, level = 1 },
{ config_id = 4007, gadget_id = 70220065, pos = { x = 360.754, y = -11.354, z = 272.973 }, rot = { x = 6.904, y = 278.751, z = 357.369 }, level = 1 },
{ config_id = 4008, gadget_id = 70220025, pos = { x = 360.355, y = -11.306, z = 275.225 }, rot = { x = 90.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4009, gadget_id = 70220025, pos = { x = 360.958, y = -11.306, z = 271.519 }, rot = { x = 90.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4010, gadget_id = 70220015, pos = { x = 360.848, y = -11.386, z = 250.177 }, rot = { x = 270.000, y = 287.008, z = 0.000 }, level = 1 },
{ config_id = 4011, gadget_id = 70220025, pos = { x = 361.537, y = -11.306, z = 253.281 }, rot = { x = 90.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4012, gadget_id = 70220025, pos = { x = 325.581, y = -11.306, z = 261.611 }, rot = { x = 90.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4013, gadget_id = 70220025, pos = { x = 326.499, y = -11.306, z = 264.168 }, rot = { x = 90.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4014, gadget_id = 70220066, pos = { x = 324.714, y = -11.354, z = 262.593 }, rot = { x = 0.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4015, gadget_id = 70220066, pos = { x = 325.621, y = -11.232, z = 263.235 }, rot = { x = 0.000, y = 239.799, z = 0.000 }, level = 1 },
{ config_id = 4016, gadget_id = 70220066, pos = { x = 325.238, y = -10.854, z = 261.705 }, rot = { x = 270.000, y = 226.461, z = 0.000 }, level = 1 },
{ config_id = 4017, gadget_id = 70220025, pos = { x = 325.827, y = -11.306, z = 266.472 }, rot = { x = 90.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4018, gadget_id = 70220065, pos = { x = 325.222, y = -11.354, z = 264.996 }, rot = { x = 0.000, y = 289.885, z = 0.000 }, level = 1 },
{ config_id = 4019, gadget_id = 70220016, pos = { x = 360.828, y = -11.354, z = 286.067 }, rot = { x = 270.000, y = 287.008, z = 0.000 }, level = 1 },
{ config_id = 4020, gadget_id = 70220025, pos = { x = 360.477, y = -11.257, z = 286.188 }, rot = { x = 90.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4021, gadget_id = 70220025, pos = { x = 358.348, y = -11.280, z = 285.888 }, rot = { x = 90.000, y = 290.798, z = 0.000 }, level = 1 },
{ config_id = 4022, gadget_id = 70220015, pos = { x = 359.344, y = -11.203, z = 286.203 }, rot = { x = 270.000, y = 29.374, z = 0.000 }, level = 1 },
{ config_id = 4023, gadget_id = 70220066, pos = { x = 360.251, y = -11.353, z = 285.163 }, rot = { x = 0.000, y = 239.799, z = 0.000 }, level = 1 },
{ config_id = 4024, gadget_id = 70220025, pos = { x = 325.320, y = -11.242, z = 283.401 }, rot = { x = 90.000, y = 20.389, z = 0.000 }, level = 1 },
{ config_id = 4025, gadget_id = 70220025, pos = { x = 325.163, y = -11.242, z = 281.005 }, rot = { x = 90.000, y = 20.389, 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 = { 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009, 4010, 4011, 4012, 4013, 4014, 4015, 4016, 4017, 4018, 4019, 4020, 4021, 4022, 4023, 4024, 4025 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,115 @@
-- 基础信息
local base_info = {
group_id = 220036005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70900205, pos = { x = 350.072, y = -15.242, z = 256.798 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5003, gadget_id = 70900205, pos = { x = 350.072, y = -15.242, z = 256.798 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "GADGET_CREATE_5002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5002", action = "action_EVENT_GADGET_CREATE_5002" },
{ config_id = 1005004, name = "TIMER_EVENT_5004", event = EventType.EVENT_TIMER_EVENT, source = "fail_delay", condition = "", action = "action_EVENT_TIMER_EVENT_5004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { "GADGET_CREATE_5002", "TIMER_EVENT_5004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_5002(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5002(context, evt)
-- 延迟5秒后,向groupId为:220036005的对象,请求一次调用,并将string参数:"fail_delay" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220036005, "fail_delay", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5004(context, evt)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
@@ -0,0 +1,138 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 342.9451,
"y": 0.282732,
"z": 337.0941
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 50.0
},
"stringParam": "",
"tranPos": {
"x": 343.2825,
"y": -19.27683,
"z": 355.0052
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 343.1275,
"y": -11.50748,
"z": 237.6658
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.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
},
"2": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rot": {
"x": 0.0,
"y": 177.8533,
"z": 0.0
},
"size": {
"x": 30.0,
"y": 20.0,
"z": 5.0
},
"tranPos": {
"x": 343.282471,
"y": -19.2768326,
"z": 355.005249
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}