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!
Hi , it's me again. I want to make an Aura which will give friendly Heroes a percent to cast again their last casted spell. If this is not possible to do as a GUI Trigger, please inform me ASAP.
Thats actually not to hard...
basically all you have to do is set a number to random which is equal to the percentage of chance your aura has
Events
Unit - A unit Starts the effect of an ability
Conditions
((Triggering Unit) has buff [TheAuraBuff]) Equal to true
Actions
Set abi = (Ability being cast)
Set chance = ([COLOR="Green"]Random integer number between 1 and 2[/COLOR])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
chance Equal to 1
Then - Actions
Unit - Reset ability cooldowns for (Triggering Unit)
Wait 0.50 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
abi = [a certian spell that the unit has]
Then - Actions
Unit - Order (Triggering Unit) to [COLOR="Red"]Orc Far Seer - Chain Lightning[/COLOR] (Triggering Unit)
Else - Actions
Do Nothing
Else - Actions
Do Nothing
Mmmkay now to explain a bit "Percentage of Chance" The random integer is dependant on the chance of the abilty being cast
Ex: 50% chance of double cast, then set random int between 1 and 2
Ex2: 25% chance of double cast, then set random int between 1 and 4
---------------------------------------------------- "Order String and Targeting" Now we use the cast far seer because the abilty you made might be based off the ability or have the same order string..
Now if we have something different like if you based your ability of shockwave then you would use:
Unit - Order (Triggering Unit) to [COLOR="Red"]Orc Tauren Chieftain - Shockwave[/COLOR] (Target point of ability being cast)
You would use that because shockwave has a different order string and requires a target point instead, so you wouldnt use, order unit target...
--------- But now if you were using a spell based off thunder clap then:
Unit - Order (Triggering Unit) to [COLOR="Red"]Human Mountain King - Thunder Clap[/COLOR]
You'd use no target this time because thunder clap doesnt require a target
Mmkay hopefully you get it, sorry if you alreaady knew all the stuff about order string and targeting and stuff... i just wanted to make sure you get everything =]
Umm im not too sure what you mean, but if you mean like itll work for 3 different spells then just copy and paste this part for every spell you want it to work for:
If - Conditions
abi = [a certian spell that the unit has]
Then - Actions
Unit - Order (Triggering Unit) to Orc Far Seer - Chain Lightning (Triggering Unit)
Else - Actions
Do Nothing
that way in the end it should look something like this
Events
Unit - A unit Starts the effect of an ability
Conditions
((Triggering Unit) has buff [TheAuraBuff]) Equal to true
Actions
Set abi = (Ability being cast)
Set chance = (Random integer number between 1 and 2)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
chance Equal to 1
Then - Actions
Unit - Reset ability cooldowns for (Triggering Unit)
Wait 0.50 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
abi = [a certian spell that the unit has]
Then - Actions
Unit - Order (Triggering Unit) to Orc Far Seer - Chain Lightning (Triggering Unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
abi = [a certian spell that the unit has(diff spell)]
Then - Actions
Unit - Order (Triggering Unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Else - Actions
Do Nothing
Else - Actions
Do Nothing
Just copy and paste, change up then it should work =]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.