• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Roll The Bones ability from WoW

Status
Not open for further replies.
Level 6
Joined
Aug 31, 2018
Messages
167
Hello everyone, i am wondering if its possible to make this ability work and how? Can we just put a trigger that picks a random number between 1 and 10 everytime we click/use the ability and then for each specific number to gain different buff?
 
Events:
A unit starts the effect of an ability
Conditions:
Ability being cast equal to Roll The Bones
Actions:
Create a Dummy unit
Set Variable Roll = A random number between 1 and 3
If Roll = 1 then Add Ability 1 to Dummy -> Order Dummy to cast Ability 1 on Triggering Unit
If Roll = 2 then Add Ability 2 to Dummy -> Order Dummy to cast Ability 2 on Triggering Unit
If Roll = 3 then Add Ability 3 to Dummy -> Order Dummy to cast Ability 3 on Triggering Unit
 
Events:
A unit starts the effect of an ability
Conditions:
Ability being cast equal to Roll The Bones
Actions:
Set Variable Roll = A random number between 1 and 3
Create a Dummy unit
If Roll = 1 then Add Ability 1 to Dummy -> Order Dummy to cast Ability 1 on Triggering Unit
If Roll = 2 then Add Ability 2 to Dummy -> Order Dummy to cast Ability 2 on Triggering Unit
If Roll = 3 then Add Ability 3 to Dummy -> Order Dummy to cast Ability 3 on Triggering Unit
Thank you sir! ;3
 
Status
Not open for further replies.
Back
Top