One way wormhole?

One way or random wormholes

I think one could make some very tactically interesting maps with wormholes that only allowed travel in one direction or had several possible destinations that it choses randomly each time.

Obviously this would only be used in Galaxy Forge maps to prevent the computer from generating maps that are blatently unfair or even an unconnected graph (no possible way to reach an enemy.)  Getting them to randomly gererate in an acceptable way is probably more trouble than it's worth.

I have been trying to make a mod to do this without success. Are there more experienced modders who could point me in the right direction? (Or tell me it's imposible. :NOTSURE: )

I have also thought about creating a special type of wormhole that is one way and doesn't require special research, but I think I can handle the second part myself.

Thank you for any technical advice, or comments on the idea.

3,233 views 2 replies
Reply #1 Top
Looks like I just needed to do some more research.

quote by Sky-Knight:
Code
  1. connection
  2. planetIndexA 0
  3. planetIndexB 4
  4. spawnProbability 1.000000
  5. type "Wormhole"


This code would create a wormhole connection between planet 1 and 5. Now, one of these planets must actually be a wormhole for this to work. If you make one side of your wormhole another planet type you have just created a one way wormhole. This one way concept works on the interstellar holes as well.
End of quote


Looks like all I needed was to edit the .galaxy file. Now I can make some of those crazy maps I've been thinking about. (Still no luck on random dest though.)
Reply #2 Top
I know you only wanted one-way wormholes for galaxy forge maps only but is there really a way to make them one-way on randomly generated maps? And if so, how can I go about doing that?

I like the idea tbh >_>