Randoming integers but dont want them to be the same

YourFace

<span style="color:#9C9C9C;"><strong>Runner Up - T
Reaction score
91
I have the following trigger
Code:
Untitled Trigger 001
    Events
        Map initialization
    Conditions
    Actions
        Set Random_Int[1] = (Random integer number between 1 and 12)
        Set Random_Int[2] = (Random integer number between 1 and 12)
        Unit - Create 24 Militia for (Player(Random_Int[1])) at (Center of Rect 000 <gen>) facing Default building facing (270.0) degrees
        Unit - Create 24 Militia for (Player(Random_Int[2])) at (Center of Rect 001 <gen>) facing Default building facing (270.0) degrees
I dont want random int 1 to be player 2 and random int 2 to be player 2
so how do I modify this so that player 2 doesnt get 48 militia units
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Use 1 and 2 :p ?
Uhm, use an If/Then/Else to check the number of the second one.
If it's equal to the first one, random again.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top