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

%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)
 
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
 
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%
 
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.
Back
Top