Randomizing waygates

Red Beard

Part-Time helper.... Full Time Lurker
Reaction score
38
I know how to setup a normal waygate.

But my question is, could i setup the waygates so that each time the map is played the waygate destinations are different.
 

xPheRe

New Member
Reaction score
43
At Map Initialization:
- Create a random region.
It could be achieved with "Set Region = Rect centered at (Random point in (Playable map)) with size (16, 16)"
- Set the waygate destination with the "Set Way Gate Destination" action
 

Red Beard

Part-Time helper.... Full Time Lurker
Reaction score
38
mmmmm

need the regions to linkup with different waygates, but i get your drift, maybe i can work something
 

Pyromancer

New Member
Reaction score
16
or make all the regions you want the way gate to beable to acses, then create a variable with a random value, and use the trigger:

Code:
Events: A unit enters region Waygate<gen>
Conditions:
Actions: If all conditions are true do then actions else do else actions:
                   If Conditions: way_warp equal to 1
                   Then Actions: set waygate 0001 destination to region 1<gen>
                   Else Actions: If all conditions are true do then actions else do else actions:
                             If Conditions: way_warp equal to 2
                             Then Actions: set waygate 0001 destination to region 2<gen>
and so on....
         Set way_warp equal to random interger

hope i helped,
Pyromancer
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top