• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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