添加配置表

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

View File

@@ -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.286, y = -18.854, z = 364.239 },
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 = { 20035 }
-- 所有的区块范围坐标
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" }

View File

@@ -0,0 +1,281 @@
{
"sceneId": 20035,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 363.166748,
"y": -10.90348,
"z": 256.2272
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 363.166748,
"y": -10.90348,
"z": 247.948624
},
"waitTime": 1.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 2,
"name": "Route_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 323.551971,
"y": -10.90295,
"z": 270.1778
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 323.551971,
"y": -10.90295,
"z": 278.009552
},
"waitTime": 1.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 3,
"name": "Route_003",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 350.59967,
"y": -13.1359253,
"z": 270.3128
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 350.59967,
"y": -13.1359253,
"z": 255.592239
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 345.933746,
"y": -13.1359253,
"z": 255.592239
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 345.9565,
"y": -13.1359253,
"z": 270.34436
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 350.59967,
"y": -13.1359253,
"z": 270.3128
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 4,
"name": "Route_003",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 335.9677,
"y": -13.1359253,
"z": 270.3128
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.9677,
"y": -13.1359253,
"z": 255.592239
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 340.551636,
"y": -13.1359253,
"z": 255.592239
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 340.5744,
"y": -13.1359253,
"z": 270.34436
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.9677,
"y": -13.1359253,
"z": 270.3128
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 5,
"name": "Route_003",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 335.9677,
"y": -13.1359253,
"z": 265.3354
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 350.59967,
"y": -13.1359253,
"z": 265.3354
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 350.59967,
"y": -13.1359253,
"z": 270.3128
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.9677,
"y": -13.1359253,
"z": 270.3128
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.9677,
"y": -13.1359253,
"z": 265.3354
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 6,
"name": "Route_003",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 335.9677,
"y": -13.1359253,
"z": 255.712143
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 350.59967,
"y": -13.1359253,
"z": 255.7121
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 350.59967,
"y": -13.1359253,
"z": 260.657227
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.9677,
"y": -13.1359253,
"z": 260.6572
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 335.9677,
"y": -13.1359253,
"z": 255.712143
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
}
]
}

View File

@@ -0,0 +1,8 @@
-- 所有的group
groups = {
{ id = 220035001, pos = { x = 342.615, y = -28.891, z = 431.642 } },
{ id = 220035002, refresh_id = 1, pos = { x = 343.322, y = -19.277, z = 344.098 } },
{ id = 220035003, refresh_id = 1, pos = { x = 343.305, y = -12.741, z = 263.086 } },
{ id = 220035004, refresh_id = 1, pos = { x = 342.490, y = -19.277, z = 343.165 } },
{ id = 220035005, refresh_id = 1, pos = { x = 343.716, y = -12.741, z = 263.473 } }
}

View File

@@ -0,0 +1,21 @@
dummy_points = {
["Q19044Bennett1"] = { pos = { x = 343.800, y = -19.276, z = 354.130 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Bennett2"] = { pos = { x = 343.280, y = -19.277, z = 346.052 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Bennett3"] = { pos = { x = 343.197, y = -12.741, z = 264.585 }, rot = { x = 0.000, y = 178.797, z = 0.000 } },
["Q19044Bennett4"] = { pos = { x = 345.200, y = -12.622, z = 247.741 }, rot = { x = 0.000, y = 188.618, z = 0.000 } },
["Q19044Bennett5"] = { pos = { x = 345.600, y = -11.462, z = 243.966 }, rot = { x = 0.000, y = 269.086, z = 0.000 } },
["Q19044NpcBorn"] = { pos = { x = 343.395, y = -11.462, z = 241.996 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Player"] = { pos = { x = 343.398, y = -19.276, z = 349.487 }, rot = { x = 0.000, y = 177.703, z = 0.000 } },
["Q19044Player1"] = { pos = { x = 343.774, y = -19.276, z = 357.490 }, rot = { x = 0.000, y = 181.865, z = 0.000 } },
["Q19044Player2"] = { pos = { x = 341.568, y = -11.347, z = 245.179 }, rot = { x = 0.000, y = 150.084, z = 0.000 } },
["Q19044Player3"] = { pos = { x = 343.240, y = -12.741, z = 262.179 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Readable1"] = { pos = { x = 343.371, y = -19.277, z = 343.653 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Readable2"] = { pos = { x = 343.362, y = -18.188, z = 367.937 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Readable3"] = { pos = { x = 343.321, y = -10.549, z = 240.910 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Route101"] = { pos = { x = 345.810, y = -19.277, z = 343.701 }, rot = { x = 0.000, y = 187.455, z = 0.000 } },
["Q19044Route102"] = { pos = { x = 343.305, y = -19.277, z = 332.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Route103"] = { pos = { x = 343.038, y = -18.372, z = 319.284 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Route104"] = { pos = { x = 342.715, y = -13.505, z = 299.490 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q19044Route105"] = { pos = { x = 343.063, y = -11.353, z = 285.754 }, rot = { x = 0.000, y = 179.964, z = 0.000 } },
["Q19044Route201"] = { pos = { x = 346.683, y = -12.741, z = 270.383 }, rot = { x = 0.000, y = 175.334, z = 0.000 } }
}

View File

@@ -0,0 +1,108 @@
-- 基础信息
local base_info = {
group_id = 220035001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 1001, shape = RegionShape.SPHERE, radius = 5, pos = { x = 343.499, y = -11.354, z = 285.154 } }
}
-- 触发器
triggers = {
{ config_id = 1001001, name = "ENTER_REGION_1001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1001", action = "action_EVENT_ENTER_REGION_1001" },
{ config_id = 1001013, name = "QUEST_START_1013", event = EventType.EVENT_QUEST_START, source = "1904406", condition = "", action = "action_EVENT_QUEST_START_1013" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 1001 },
triggers = { "ENTER_REGION_1001", "QUEST_START_1013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1001(context, evt)
if evt.param1 ~= 1001 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_1001(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200350011") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_1013(context, evt)
-- 将configid为 1003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,174 @@
-- 基础信息
local base_info = {
group_id = 220035002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360002, pos = { x = 343.280, y = -19.277, z = 343.713 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70350003, pos = { x = 333.185, y = -18.806, z = 368.287 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2003, gadget_id = 70350003, pos = { x = 353.269, y = -18.862, z = 368.408 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2004, gadget_id = 70350003, pos = { x = 343.476, y = -18.871, z = 368.384 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2007, gadget_id = 70350003, pos = { x = 353.178, y = -18.374, z = 322.544 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2008, gadget_id = 70350003, pos = { x = 343.298, y = -18.386, z = 322.596 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2009, gadget_id = 70350003, pos = { x = 333.306, y = -18.377, z = 322.544 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002005, name = "QUEST_START_2005", event = EventType.EVENT_QUEST_START, source = "1904404", condition = "", action = "action_EVENT_QUEST_START_2005", trigger_count = 0 },
{ config_id = 1002010, name = "QUEST_FINISH_2010", event = EventType.EVENT_QUEST_FINISH, source = "1904415", condition = "", action = "action_EVENT_QUEST_FINISH_2010", trigger_count = 0 },
{ config_id = 1002011, name = "QUEST_FINISH_2011", event = EventType.EVENT_QUEST_FINISH, source = "1904416", condition = "", action = "action_EVENT_QUEST_FINISH_2011", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2004, 2007, 2008, 2009 },
regions = { },
triggers = { "QUEST_START_2005", "QUEST_FINISH_2010", "QUEST_FINISH_2011" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_START_2005(context, evt)
-- 将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为 2007 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2008 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2009 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_2010(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为 2007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_2011(context, evt)
-- 将configid为 2002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,501 @@
-- 基础信息
local base_info = {
group_id = 220035003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3002, gadget_id = 70900202, pos = { x = 343.352, y = -11.242, z = 269.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70360002, pos = { x = 349.700, y = -12.741, z = 262.948 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70350002, pos = { x = 343.272, y = -11.167, z = 240.410 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3005, gadget_id = 70360002, pos = { x = 336.845, y = -12.741, z = 263.032 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70360021, pos = { x = 323.552, y = -10.903, z = 270.178 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, route_id = 2, start_route = false },
{ config_id = 3007, gadget_id = 70360021, pos = { x = 363.167, y = -10.903, z = 256.227 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, route_id = 1, start_route = false },
{ config_id = 3008, gadget_id = 70900202, pos = { x = 336.845, y = -11.242, z = 263.032 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3009, gadget_id = 70900202, pos = { x = 343.296, y = -11.242, z = 257.995 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3012, gadget_id = 70360002, pos = { x = 343.352, y = -12.741, z = 269.414 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70360002, pos = { x = 343.296, y = -12.741, z = 257.995 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3014, gadget_id = 70900202, pos = { x = 349.700, y = -11.242, z = 262.948 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3016, gadget_id = 70360021, pos = { x = 350.600, y = -13.136, z = 270.313 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3, start_route = false },
{ config_id = 3017, gadget_id = 70360021, pos = { x = 335.968, y = -13.136, z = 270.313 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4, start_route = false },
{ config_id = 3018, gadget_id = 70360021, pos = { x = 335.968, y = -13.136, z = 255.712 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6, start_route = false },
{ config_id = 3019, gadget_id = 70360021, pos = { x = 335.968, y = -13.136, z = 265.335 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5, start_route = false }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003001, name = "QUEST_START_3001", event = EventType.EVENT_QUEST_START, source = "1904410", condition = "", action = "action_EVENT_QUEST_START_3001" },
{ config_id = 1003010, name = "SELECT_OPTION_3010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3010", action = "action_EVENT_SELECT_OPTION_3010" },
{ config_id = 1003011, name = "SELECT_OPTION_3011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3011", action = "action_EVENT_SELECT_OPTION_3011" },
{ config_id = 1003015, name = "VARIABLE_CHANGE_3015", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3015", action = "action_EVENT_VARIABLE_CHANGE_3015" },
{ config_id = 1003020, name = "SELECT_OPTION_3020", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3020", action = "action_EVENT_SELECT_OPTION_3020" },
{ config_id = 1003021, name = "SELECT_OPTION_3021", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3021", action = "action_EVENT_SELECT_OPTION_3021" },
{ config_id = 1003022, name = "VARIABLE_CHANGE_3022", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3022", action = "action_EVENT_VARIABLE_CHANGE_3022" },
{ config_id = 1003023, name = "VARIABLE_CHANGE_3023", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3023", action = "action_EVENT_VARIABLE_CHANGE_3023" },
{ config_id = 1003024, name = "VARIABLE_CHANGE_3024", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3024", action = "action_EVENT_VARIABLE_CHANGE_3024" }
}
-- 变量
variables = {
{ config_id = 1, name = "reminder_count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3003, 3004, 3005, 3006, 3007, 3012, 3013, 3016, 3017, 3018, 3019 },
regions = { },
triggers = { "QUEST_START_3001", "SELECT_OPTION_3010", "SELECT_OPTION_3011", "VARIABLE_CHANGE_3015", "SELECT_OPTION_3020", "SELECT_OPTION_3021", "VARIABLE_CHANGE_3022", "VARIABLE_CHANGE_3023", "VARIABLE_CHANGE_3024" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3002, 3008, 3009, 3014 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_START_3001(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220035003, 3003, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220035003, 3005, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220035003, 3013, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220035003, 3012, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220035003, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3010(context, evt)
-- 判断是gadgetid 3003 option_id 24
if 3003 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3010(context, evt)
-- 删除指定group 220035003 指定config3003物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220035003, 3003, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 3003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 3007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 将configid为 3007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 3016) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 将configid为 3016 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3016, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200350031") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220035003, EntityType.GADGET, 3014 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 针对当前group内变量名为 "reminder_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "reminder_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3011(context, evt)
-- 判断是gadgetid 3005 option_id 24
if 3005 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3011(context, evt)
-- 删除指定group 220035003 指定config3005物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220035003, 3005, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 3005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 3006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 将configid为 3006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 3017) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 将configid为 3017 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3017, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200350031") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220035003, EntityType.GADGET, 3008 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 针对当前group内变量名为 "reminder_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "reminder_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3015(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"reminder_count"为1
if ScriptLib.GetGroupVariableValue(context, "reminder_count") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3015(context, evt)
-- 调用提示id为 200350101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200350101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3020(context, evt)
-- 判断是gadgetid 3013 option_id 24
if 3013 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3020(context, evt)
-- 删除指定group 220035003 指定config3013物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220035003, 3013, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 3013 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3013, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3018 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3018, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 3018) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200350031") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220035003, EntityType.GADGET, 3009 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 针对当前group内变量名为 "reminder_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "reminder_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3021(context, evt)
-- 判断是gadgetid 3012 option_id 24
if 3012 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3021(context, evt)
-- 删除指定group 220035003 指定config3012物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220035003, 3012, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 3012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3019 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3019, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 3019) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200350031") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220035003, EntityType.GADGET, 3002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 针对当前group内变量名为 "reminder_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "reminder_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3022(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"reminder_count"为2
if ScriptLib.GetGroupVariableValue(context, "reminder_count") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3022(context, evt)
-- 调用提示id为 200350102 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200350102) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3023(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"reminder_count"为3
if ScriptLib.GetGroupVariableValue(context, "reminder_count") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3023(context, evt)
-- 调用提示id为 200350103 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200350103) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3024(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"reminder_count"为4
if ScriptLib.GetGroupVariableValue(context, "reminder_count") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3024(context, evt)
-- 调用提示id为 200350104 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200350104) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 220035004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70220067, pos = { x = 356.291, y = -18.854, z = 355.901 }, rot = { x = 0.000, y = 315.113, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70220067, pos = { x = 355.945, y = -18.854, z = 354.318 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4003, gadget_id = 70220067, pos = { x = 355.212, y = -18.853, z = 356.733 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70220025, pos = { x = 330.186, y = -19.277, z = 341.621 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4005, gadget_id = 70220025, pos = { x = 331.410, y = -19.276, z = 339.845 }, rot = { x = 90.000, y = 280.203, z = 0.000 }, level = 1 },
{ config_id = 4006, gadget_id = 70220067, pos = { x = 329.776, y = -19.276, z = 339.957 }, rot = { x = 0.000, y = 335.710, z = 0.000 }, level = 1 },
{ config_id = 4007, gadget_id = 70220067, pos = { x = 329.799, y = -19.277, z = 341.778 }, rot = { x = 0.000, y = 315.113, 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 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,115 @@
-- 基础信息
local base_info = {
group_id = 220035005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70900205, pos = { x = 346.957, y = -15.210, z = 260.571 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5002, gadget_id = 70900205, pos = { x = 346.957, y = -15.210, z = 260.571 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005003, name = "GADGET_CREATE_5003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5003", action = "action_EVENT_GADGET_CREATE_5003" },
{ 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 = { 5002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { "GADGET_CREATE_5003", "TIMER_EVENT_5004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_5003(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5003(context, evt)
-- 延迟5秒后,向groupId为220035005的对象,请求一次调用,并将string参数"fail_delay" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220035005, "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

View File

@@ -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": 343.341,
"y": 0.385479,
"z": 341.6823
},
"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.2794,
"y": -19.27632,
"z": 356.4978
},
"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.2305,
"y": -11.51283,
"z": 237.7446
},
"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": 343.2794,
"y": -19.27632,
"z": 356.4978
},
"rot": {
"x": 0.0,
"y": 180.3466,
"z": 0.0
},
"size": {
"x": 30.0,
"y": 20.0,
"z": 5.0
},
"tranPos": {
"x": 343.2794,
"y": -19.2763176,
"z": 356.4978
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}