Warcraft III resources & community, 2003–2006 · archived

%chanc% spell - mirror immage? how or please

8 posts
#1

%chanc% spell - mirror immage? how or please

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)
#2
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
#3
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%
#4
hmm.... at least u can make a dummy with the model of the hero. Or u just give the ability Miror Image to the hero and after he casts it remove the ability. Else its impossible
#5
Get the ability code for the Wand of Illusion or w/e. Make a dummy cast it 3 times.
#6
Ah, lol. Yes that works. But then the images aren't being cast the same time, cuz u cant cast 3 spells on a unit on the exact same time, but doesnt matter that much
#7
I have a question
Can't we use Orb Ability on it?
#8
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)