添加配置表

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,27 @@
-- 地图配置
scene_config = {
begin_pos = { x = 0.0, z = -2500.0 },
size = { x = 2048.0, z = 2048.0 },
born_pos = { x = 498.000, y = 609.000, z = -1650.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
born_point_list = {
{ pos = { x = 498.612, y = 609.303, z = -1654.398 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
},
die_y = -50,
city_id = 1,
vision_anchor = { x = 0.0, z = -3000.0 }
}
-- 所有的区块
blocks = { 50079 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 0.0, z = -2500.0 }, max = { x = 2048.0, z = -452.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,11 @@
-- 所有的group
groups = {
{ id = 250079002, pos = { x = 403.178, y = 613.271, z = -1639.436 } },
{ id = 250079003, refresh_id = 1, pos = { x = 395.178, y = 665.480, z = -1656.016 } },
{ id = 250079004, refresh_id = 1, pos = { x = 483.211, y = 605.584, z = -1606.049 } },
{ id = 250079005, refresh_id = 1, pos = { x = 477.163, y = 605.650, z = -1599.813 } },
{ id = 250079006, refresh_id = 1, pos = { x = 679.981, y = 623.929, z = -1590.336 } },
{ id = 250079007, refresh_id = 1, pos = { x = 692.402, y = 609.706, z = -1492.494 } },
{ id = 250079008, refresh_id = 1, pos = { x = 500.060, y = 613.614, z = -1600.057 } },
{ id = 250079009, refresh_id = 1, pos = { x = 485.786, y = 612.363, z = -1574.119 } }
}
@@ -0,0 +1,4 @@
dummy_points = {
["Q7901201_guide"] = { pos = { x = 607.407, y = 618.983, z = -1543.204 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q7901201test"] = { pos = { x = -66.152, y = -7.089, z = -58.996 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 250079002
}
-- DEFS_MISCS
local defs = {
gear_info =
{ --connect: 每个物件各个旋转档位可连接的对象 0表示无可连接
[1] = { config_id=2001 , connect = {2002,2006,2004}, point_array_id = 1 },
[2] = { config_id=2002 , connect = {2001,2004,2006,2003}, point_array_id = 2 },
[3] = { config_id= 2003 , connect = {2002,2005,2006}, point_array_id = 3},
[4] = { config_id=2004 , connect = {2001,2005, 2006,2002}, point_array_id = 4},
[5] = { config_id= 2005 , connect = {2004,2003,2006}, point_array_id = 5 },
[6] = { config_id=2006 , connect = {2003,2002,2004,2005}, point_array_id = 6 }
},
--几种解
solutions =
{
--[解法x] = {gear_info[1]切到它的第x档, gear_info[2]切到它的第y档...}
[1] = { connection = {2,3,1,4,1,3}, ends = {}},
[2] = { connection = {2,2,1,3,1,2}, ends = {}}
},
turn_option = 31,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70310178, pos = { x = 393.493, y = 613.406, z = -1646.063 }, rot = { x = 0.000, y = 16.763, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2002, gadget_id = 70310178, pos = { x = 400.151, y = 613.406, z = -1648.659 }, rot = { x = 0.000, y = 50.332, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2003, gadget_id = 70310178, pos = { x = 404.841, y = 613.659, z = -1651.684 }, rot = { x = 0.000, y = 4.856, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2004, gadget_id = 70310178, pos = { x = 395.315, y = 613.406, z = -1639.104 }, rot = { x = 0.000, y = 150.979, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2005, gadget_id = 70310178, pos = { x = 395.252, y = 613.406, z = -1633.375 }, rot = { x = 0.000, y = 122.521, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2006, gadget_id = 70310178, pos = { x = 407.028, y = 613.406, z = -1639.153 }, rot = { x = 359.148, y = 266.341, z = 0.567 }, level = 1, is_use_point_array = true },
{ config_id = 2011, gadget_id = 70211111, pos = { x = 388.959, y = 613.406, z = -1648.354 }, rot = { x = 0.000, y = 240.732, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 满足解法条件生成宝箱
{ config_id = 1002012, name = "VARIABLE_CHANGE_2012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2012", action = "action_EVENT_VARIABLE_CHANGE_2012", 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, 2005, 2006 },
regions = { },
triggers = { "VARIABLE_CHANGE_2012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2012(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"solution"为1
if ScriptLib.GetGroupVariableValue(context, "solution") >= 1 then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250079002, 2)
return 0
end
require "V2_8/ConstellationMachine"
@@ -0,0 +1,109 @@
-- 基础信息
local base_info = {
group_id = 250079003
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[3001] = 3006,
[3002] = 3006,
[3003] = 3002,
[3004] = 3002,
[3005] = 3004,
[3006] = 3004,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[3001] = { config_id = 3001, gadget_id = 70310179, pos = { x = 386.569, y = 665.000, z = -1650.253 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1 },
[3002] = { config_id = 3002, gadget_id = 70310179, pos = { x = 392.735, y = 665.000, z = -1651.243 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1 },
[3003] = { config_id = 3003, gadget_id = 70310179, pos = { x = 398.209, y = 665.000, z = -1653.881 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1 },
[3004] = { config_id = 3004, gadget_id = 70310179, pos = { x = 389.379, y = 665.000, z = -1645.080 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1 },
[3005] = { config_id = 3005, gadget_id = 70310179, pos = { x = 389.758, y = 665.000, z = -1640.410 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1 },
[3006] = { config_id = 3006, gadget_id = 70310179, pos = { x = 404.260, y = 665.000, z = -1640.533 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004, 3005, 3006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,143 @@
-- 基础信息
local base_info = {
group_id = 250079004
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[4001] = 4002,
[4002] = 4003,
[4003] = 4001,
[4004] = 4002,
[4005] = 4004,
[4006] = 4005,
},
--形态2
[2] =
{
[4001] = 4003,
[4002] = 4004,
[4003] = 4004,
[4004] = 4006,
[4005] = 4001,
[4006] = 4001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[4001] = { config_id = 4001, gadget_id = 70310179, pos = { x = 471.014, y = 643.701, z = -1610.373 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4002] = { config_id = 4002, gadget_id = 70310179, pos = { x = 470.098, y = 641.464, z = -1608.871 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4003] = { config_id = 4003, gadget_id = 70310179, pos = { x = 469.475, y = 643.521, z = -1607.454 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4004] = { config_id = 4004, gadget_id = 70310179, pos = { x = 471.118, y = 638.483, z = -1610.350 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4005] = { config_id = 4005, gadget_id = 70310179, pos = { x = 469.934, y = 636.900, z = -1608.435 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4006] = { config_id = 4006, gadget_id = 70310179, pos = { x = 468.139, y = 636.904, z = -1605.849 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4007] = { config_id = 4007, gadget_id = 70360002, pos = { x = 489.670, y = 612.303, z = -1600.035 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { is_persistent = true, init_options = { 35 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004009, name = "SELECT_OPTION_4009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4009", action = "action_EVENT_SELECT_OPTION_4009", trigger_count = 0 }
}
-- 变量
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 = { "SELECT_OPTION_4009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_4009(context, evt)
-- 判断是gadgetid 4007 option_id 35
if 4007 ~= evt.param1 then
return false
end
if 35 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4009(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 杀死Group内所有gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250079005, kill_policy = GroupKillPolicy.GROUP_KILL_GADGET }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_gadget_by_group")
return -1
end
return 0
end
require "V2_8/ConstellationPattern"
@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 250079005
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[5001] = 5003,
[5002] = 5004,
[5003] = 5004,
[5004] = 5006,
[5005] = 5001,
[5006] = 5001,
},
--形态2
[2] =
{
[5001] = 5003,
[5002] = 5004,
[5003] = 5004,
[5004] = 5006,
[5005] = 5001,
[5006] = 5001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[5001] = { config_id = 5001, gadget_id = 70310179, pos = { x = 470.087, y = 620.564, z = -1607.486 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[5002] = { config_id = 5002, gadget_id = 70310179, pos = { x = 469.920, y = 620.552, z = -1606.123 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[5003] = { config_id = 5003, gadget_id = 70310179, pos = { x = 470.176, y = 619.448, z = -1606.713 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[5004] = { config_id = 5004, gadget_id = 70310179, pos = { x = 471.305, y = 617.937, z = -1607.522 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[5005] = { config_id = 5005, gadget_id = 70310179, pos = { x = 470.312, y = 616.770, z = -1606.954 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[5006] = { config_id = 5006, gadget_id = 70310179, pos = { x = 469.488, y = 616.836, z = -1605.427 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[5007] = { config_id = 5007, gadget_id = 70310075, pos = { x = 470.006, y = 612.940, z = -1606.616 }, rot = { x = 0.000, y = 60.588, 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 = { 5001, 5002, 5003, 5004, 5005, 5006, 5007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,144 @@
-- 基础信息
local base_info = {
group_id = 250079006
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[6001] = 6002,
[6002] = 6003,
[6003] = 0,
[6004] = 6001,
[6005] = 0,
[6006] = 0,
[6007] = 0,
[6008] = 0
},
--形态2
[2] =
{
[6001] = 6002,
[6002] = 6003,
[6003] = 0,
[6004] = 6001,
[6005] = 6007,
[6006] = 6005,
[6007] = 0,
[6008] = 6006
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[6001] = { config_id = 6001, gadget_id = 70310179, pos = { x = 680.784, y = 624.767, z = -1590.317 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[6002] = { config_id = 6002, gadget_id = 70310179, pos = { x = 678.860, y = 623.421, z = -1590.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[6003] = { config_id = 6003, gadget_id = 70310179, pos = { x = 678.701, y = 620.094, z = -1590.198 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[6004] = { config_id = 6004, gadget_id = 70310179, pos = { x = 680.248, y = 620.179, z = -1590.330 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[6005] = { config_id = 6005, gadget_id = 70310179, pos = { x = 682.608, y = 619.827, z = -1586.141 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[6006] = { config_id = 6006, gadget_id = 70310179, pos = { x = 680.108, y = 619.617, z = -1586.778 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[6007] = { config_id = 6007, gadget_id = 70310179, pos = { x = 680.248, y = 620.179, z = -1590.330 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[6008] = { config_id = 6008, gadget_id = 70310179, pos = { x = 678.701, y = 620.094, z = -1590.198 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[6009] = { config_id = 6009, gadget_id = 70220021, pos = { x = 646.427, y = 618.679, z = -1605.460 }, rot = { x = 0.000, y = 117.504, z = 0.000 }, level = 1 },
[6010] = { config_id = 6010, gadget_id = 70380306, pos = { x = 657.997, y = 619.547, z = -1584.845 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006011, name = "ANY_GADGET_DIE_6011", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_6011", action = "action_EVENT_ANY_GADGET_DIE_6011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6003, 6004, 6005, 6006, 6007, 6008, 6009 },
regions = { },
triggers = { "ANY_GADGET_DIE_6011" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_6011(context, evt)
if 6009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_6011(context, evt)
-- 创建id为6010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 6010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/ConstellationPattern"
@@ -0,0 +1,166 @@
-- 基础信息
local base_info = {
group_id = 250079007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70211111, pos = { x = 692.316, y = 610.576, z = -1493.119 }, rot = { x = 0.000, y = 44.977, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1 },
{ config_id = 7002, gadget_id = 70380306, pos = { x = 692.818, y = 609.833, z = -1494.076 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7003, gadget_id = 70211111, pos = { x = 698.685, y = 609.919, z = -1495.359 }, rot = { x = 0.000, y = 307.988, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1 },
{ config_id = 7004, gadget_id = 70211111, pos = { x = 688.932, y = 609.919, z = -1497.725 }, rot = { x = 0.000, y = 37.675, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1 },
{ config_id = 7005, gadget_id = 70211111, pos = { x = 687.489, y = 609.919, z = -1485.976 }, rot = { x = 0.000, y = 133.926, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007006, name = "GROUP_LOAD_7006", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_7006", trigger_count = 0 },
{ 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 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002 },
regions = { },
triggers = { "GROUP_LOAD_7006", "GADGET_STATE_CHANGE_7007", "GADGET_STATE_CHANGE_7008", "GADGET_STATE_CHANGE_7009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 7004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 7005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_7006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250079007, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7007(context, evt)
if 7003 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7007(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250079007, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7008(context, evt)
if 7004 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7008(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250079007, 4)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7009(context, evt)
if 7005 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7009(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250079007, 2)
return 0
end
@@ -0,0 +1,112 @@
-- 基础信息
local base_info = {
group_id = 250079008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70310243, pos = { x = 500.017, y = 613.516, z = -1598.634 }, rot = { x = 0.000, y = 177.456, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008002, name = "GROUP_LOAD_8002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_8002", trigger_count = 0 },
{ config_id = 1008003, name = "VARIABLE_CHANGE_8003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8003", action = "action_EVENT_VARIABLE_CHANGE_8003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001 },
regions = { },
triggers = { "GROUP_LOAD_8002", "VARIABLE_CHANGE_8003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_8002(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000104, 250079008, 8001)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101770
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101770 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8003(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "pattern", 2, 250079004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250079005, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
return 0
end
require "V2_8/HandleGivingResult"
@@ -0,0 +1,102 @@
-- 基础信息
local base_info = {
group_id = 250079009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70360002, pos = { x = 485.786, y = 612.363, z = -1574.119 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 创建操作台选项
{ config_id = 1009002, name = "GADGET_CREATE_9002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9002", action = "action_EVENT_GADGET_CREATE_9002" },
-- 点击操作台选项
{ config_id = 1009003, name = "SELECT_OPTION_9003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_9003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001 },
regions = { },
triggers = { "GADGET_CREATE_9002", "SELECT_OPTION_9003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_9002(context, evt)
if 9001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250079009, 9001, {4005}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9003(context, evt)
ScriptLib.EnterPersistentDungeon(context,evt.param2,0,{pos={x=0,y=0,z=0},rot={x=0,y=0,z=0}})
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": 499.9856,
"y": 612.2707,
"z": -1569.239
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": -1.330757,
"y": -7.232945,
"z": 93.71742
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 501.3899,
"y": 608.5013,
"z": -1669.855
},
"rot": {
"x": 0.0,
"y": 0.1602,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 501.3899,
"y": 608.5013,
"z": -1669.855
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}
@@ -0,0 +1,515 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 393.493,
"y": 613.4058,
"z": -1646.06323
},
"rotation": {
"x": 0.0,
"y": 109.654533,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 393.493,
"y": 613.4058,
"z": -1646.06323
},
"rotation": {
"x": 0.0,
"y": 63.6768379,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 393.493,
"y": 613.4058,
"z": -1646.06323
},
"rotation": {
"x": 0.0,
"y": 63.6768379,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 2,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 400.151123,
"y": 613.4058,
"z": -1648.65857
},
"rotation": {
"x": 0.0,
"y": 297.7637,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 400.1511,
"y": 613.4058,
"z": -1648.659
},
"rotation": {
"x": 0.0,
"y": 335.2956,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 400.1511,
"y": 613.4058,
"z": -1648.659
},
"rotation": {
"x": 0.0,
"y": 50.33165,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 400.1511,
"y": 613.4058,
"z": -1648.659
},
"rotation": {
"x": 0.0,
"y": 129.469955,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 3,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 404.8405,
"y": 613.6589,
"z": -1651.684
},
"rotation": {
"x": 0.0,
"y": 300.370239,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 404.8405,
"y": 613.6589,
"z": -1651.684
},
"rotation": {
"x": 0.0,
"y": 332.8254,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 404.8405,
"y": 613.6589,
"z": -1651.684
},
"rotation": {
"x": 0.0,
"y": 4.855497,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 4,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 395.3149,
"y": 613.4058,
"z": -1639.104
},
"rotation": {
"x": 0.0,
"y": 198.603317,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 395.3149,
"y": 613.4058,
"z": -1639.104
},
"rotation": {
"x": 0.0,
"y": 352.804382,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 395.3149,
"y": 613.4058,
"z": -1639.104
},
"rotation": {
"x": 0.0,
"y": 86.34392,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 395.3149,
"y": 613.4058,
"z": -1639.104
},
"rotation": {
"x": 0.0,
"y": 150.978455,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 5,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 395.2523,
"y": 613.4058,
"z": -1633.375
},
"rotation": {
"x": 0.0,
"y": 176.255646,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 395.2523,
"y": 613.4058,
"z": -1633.375
},
"rotation": {
"x": 0.0,
"y": 153.9381,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 395.2523,
"y": 613.4058,
"z": -1633.375
},
"rotation": {
"x": 0.0,
"y": 122.520943,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 6,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 407.0278,
"y": 613.4058,
"z": -1639.153
},
"rotation": {
"x": 0.4063897,
"y": 186.563919,
"z": 0.9384679
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 407.0278,
"y": 613.4058,
"z": -1639.153
},
"rotation": {
"x": 359.977448,
"y": 211.240387,
"z": 1.02242565
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 407.0278,
"y": 613.4058,
"z": -1639.153
},
"rotation": {
"x": 359.1484,
"y": 266.3413,
"z": 0.566476643
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 407.0278,
"y": 613.4058,
"z": -1639.153
},
"rotation": {
"x": 359.0536,
"y": 277.689819,
"z": 0.387835
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]