How do I randomize my map/room sequence?

kuhnen
I want to do a sequence of rooms, and whenever I start a new game, all exits will lead to a random room from a "pool" of pre-made rooms. I found what I believe to be a similar solution here: viewtopic.php?f=10&t=3832&hilit=random+randomize&start=15#p25752

The problem is that that solution is to create a 3D "cube" of rooms with depth, and not only North, South, East, West, etc...

I want do make it so that every room has 3 possible exits (east, southeast and northeast, for example) and whenever I select one of these exists, I'm taken to a random room from my pool of rooms. It's ok if the map is completely generated before I leave the first room. If possible I would also like to check if I'm repeating a room, so the same room does not repeat.

I've been struggling with this problem for hours, tried a bunch of different things by myself, including moving the player to a random room when I activate an exist, which works for a few selections but then I get a big error out of the blue.

I would appreciate if anyone could help.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums