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
511
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