• 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.

%chanc% spell - mirror immage? how or please

Status
Not open for further replies.
Level 3
Joined
Sep 12, 2005
Messages
19
Hey, ive seen in dota spells that have a % chance to cast a spell on attack. Im wondering howcould i make it that there is a certain percent chance to cast mirro immage on attack. (not make an image but to do the whole motion thing and make 3 extras)
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
Events: Unit is attacked
Conditions: Attacking unit has 'ability' or 'buff' or another custom value. etc
Actions: If,Then,Else Multiple Functions
If: (Integer Comparison) Math Random Number between 1 and 100 = less then or equal to 25 (25 procent)
Then: make a dummy that casts a spell for example
Else: Do Nothing
 
Level 3
Joined
Sep 12, 2005
Messages
19
Hmm, I get all that but um, =\, if the dummy uses a spell like mirror immage wouldnt i just make a couple dummies we cant see for a few secs? Or is it simply impossible to use a spell like that on %chance%
 
Level 4
Joined
Sep 18, 2005
Messages
68
If I understood that he wants it like DotA has it, to where it takes and makes a copy of the hero itself, not his target, then no, you cannot use an orb. A trigger that has a percent chance checking when he attacks and uses the spell string, or whatever it's called, on the item illusion spell should work. If you want multiple, you may need multiple dummies or something, unless you go around that by like setting castbacks and resetting cooldowns. Not sure if that would work even then.

(If I'm wrong, sry, but I haven't looked at a bunch of triggering stuff in WE lately)
 
Status
Not open for further replies.
Top