• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

-ar bug

Status
Not open for further replies.
Level 6
Joined
Mar 6, 2010
Messages
116
There is a bug on my -ar(all random) mode.You get the same hero every game.This is the trigger:
  • Ar
    • Events
      • Player - Player 1 (Red) types a chat message containing -ar as An exact match
    • Conditions
    • Actions
      • Unit - Create 1 (Unit-type of (Random unit from (Units in Region 026 <gen> owned by Neutral Passive))) for Player 1 (Red) at (Random point in Region 030 <gen>) facing Default building facing degrees
      • Unit - Create 1 (Unit-type of (Random unit from (Units in Region 026 <gen> owned by Neutral Passive))) for Player 2 (Blue) at (Random point in Region 030 <gen>) facing Default building facing degrees
      • Unit - Create 1 (Unit-type of (Random unit from (Units in Region 026 <gen> owned by Neutral Passive))) for Player 3 (Teal) at (Random point in Region 030 <gen>) facing Default building facing degrees
      • Unit - Create 1 (Unit-type of (Random unit from (Units in Region 026 <gen> owned by Neutral Passive))) for Player 4 (Purple) at (Random point in Region 031 <gen>) facing Default building facing degrees
      • Unit - Create 1 (Unit-type of (Random unit from (Units in Region 026 <gen> owned by Neutral Passive))) for Player 5 (Yellow) at (Random point in Region 031 <gen>) facing Default building facing degrees
      • Unit - Create 1 (Unit-type of (Random unit from (Units in Region 026 <gen> owned by Neutral Passive))) for Player 6 (Orange) at (Random point in Region 031 <gen>) facing Default building facing degrees
      • Game - Display to (All players) for 5.00 seconds the text: |c000000ccGame Mode...
      • Unit - Remove Hero Selector 0020 <gen> from the game
      • Unit - Remove Hero Selector 0021 <gen> from the game
      • Unit - Remove Hero Selector 0022 <gen> from the game
      • Unit - Remove Hero Selector 0023 <gen> from the game
      • Unit - Remove Hero Selector 0024 <gen> from the game
      • Unit - Remove Hero Selector 0025 <gen> from the game
      • Trigger - Turn off (This trigger)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Allows you to set the random seed to a pre-defined state during game play (if a constant is used) or to add some additional randomness (a variable number is used).

Setting the random seed to a constant is useful for competitive maps as it removes any variance in the random generator between sessions (which can cause controversy).
 
Status
Not open for further replies.
Top