Random Spell Help

Status
Not open for further replies.

repx

R

repx

ok, thanks in advance for the help

but i am seriously lost on how to do a spell like this, i want to make a spell that when used it gives you a random spell (this is going to be the special for a hero, and in the end it gives you random spells each time) what i want is for it to give one of the spells i choose at random each time the spell is used and then it goes back to random after the cooldown is over.

would anyone know how to do that?
 
Ehhh i tried that... but it didnt exactly work, the tome of retraining doesnt really do what im trying to get the spell to do
 
(you need a global integer variable named int)

Events
Unit - A Unit Starts the Effect of an Ability
Conditions
Ability Being Cast Equal to XXX
Actions
Set int = Random Number between 0 and (number of skills)
Remove (rand1) from triggering unit
remove (rand2) from triggering unit
etc, etc
If int = 0 then
Add (rand1) to Triggering Unit
Else
If int = 1 then
Add (rand2) to Triggering Unit
etc, etc
 
Status
Not open for further replies.
Back
Top