How do you generate Tables of integers in UE4 Blueprints

I’m not experienced so my wording my not be as precise or correct as it should, but I’m doing my best.

How would I generate a table in UE4? with my experience in Lua, I could make a set, and then have each member of the set be another set and generate a little 2D table. When it comes to variables, I have sets, arrays, and maps, none of which I’ve been able to put variables into, only integers.

I may just be going about my project wrong, my goal is to generate a maze, the way I did that with Lua script was to make a table with numbers, then tell the program to draw it. I’m trying to make a table of numbers, that would look something like

1 1 1 1 1

1 0 0 0 1

1 0 1 0 1

1 0 0 0 1

1 1 1 1 1

to make a room with a wall in the center for example, zero being floor, 1 being wall. then I would run this table through a couple forloops to tell the game to build it with meshes.
If this doesn’t make any sense please tell me and I’ll try to re-explain. I’ve tried googling my question many ways to no avail and I’m fairly sure I’m just saying it wrong.

Thanks for any help.

it sounds like your in need of a 2D array. if you know c++ then your all set and can use them, if your looking to do this in blueprint then thats another story as 2d arrays arent available in blueprint. there are ways to essentially fake a 2d array in blueprint but i dont know enough about them to really help there.

If you feel like you don’t need anything “proper” then you could hack it in. The picture is something I made for a game of snake.

Grid Coordinates array is of type struct with two integers in it, one for X, one for Y. Array index will be the ID of a grid tile. Grid spacing is the distance between each grid tile. In the game mode begin play, it goes in row by row to add the coordinates to the array.

If you need more variables, it’s always possible to add more information in the struct.

Thank you for the replies, this could be a good opportunity to motivate myself to learn some C++. I just have to think about the scope of what I want.