• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

-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,239
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