I am currently working on a map that has a series of rooms, each with 2 waygates, and 1 region on each waygate.
What I want to happen is at map init or shortly after, for about a third of the rooms to be linked together.
by linked I mean, 1 waygate from 1 room connects to another waygate in a different room, then the other waygate in that room will link to another waygate in a room different from those and so on.
I can't figure out how to do this. All my attempts have lead to crashes or incomplete links.
Edit: After thinking some more, effectively the problem is how do I do this:
variable[1] = random number 1-X
variable[2] = random number 1-X except any above
variable[3] = random number 1-X except any above
and so on
up to
variable[X]
What I want to happen is at map init or shortly after, for about a third of the rooms to be linked together.
by linked I mean, 1 waygate from 1 room connects to another waygate in a different room, then the other waygate in that room will link to another waygate in a room different from those and so on.
I can't figure out how to do this. All my attempts have lead to crashes or incomplete links.
Edit: After thinking some more, effectively the problem is how do I do this:
variable[1] = random number 1-X
variable[2] = random number 1-X except any above
variable[3] = random number 1-X except any above
and so on
up to
variable[X]