• 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.

Give a random spell?

Status
Not open for further replies.
Level 12
Joined
May 22, 2015
Messages
1,051
Make an array variable for abilities. Make index 0-4 each one of your abilities. When one of those units gets trained, use the random function to get 0-4 and use that as the index. Give that ability to the unit.
 
Level 11
Joined
Jun 26, 2014
Messages
513
When you select an integer for something (like the index array or when you set an integer variable), you have several options, one of those options is "Math - Random Number"

You and the Batman are so helpfull lately. Man I got soooooooo so F*CKING mad, why isn't it just called "Random Number" Why start with math... man I am so frustrated. Thanks a lot!!!
 
Status
Not open for further replies.
Top