HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Chance on Hit?

05-07-2005, 08:13 PM#1
Limb_Smasher
I was wondering how you would create a caster to cast an ability on a chance to hit kind of thing. like 50% chance to cast chain lighting on the attacked unit.
05-07-2005, 08:41 PM#2
Guest
for a standard ability like that u could just use the slow orb of slow ability (i think its an item ability) and change the effect ability to cast the picked spell but for spells that cant be cast with the orb of slow ability use a trigger that fires when the unit attacks. Then have the trigger pick a random integer (lets say we want a 50% chance) between 1 and 2 and then if its less than 2 create a dummy to cast the spell else do nothing. hope it helps
05-07-2005, 09:09 PM#3
ChipmunkMofia
Quote:
Originally Posted by Unholy-Sniper
for a standard ability like that u could just use the slow orb of slow ability (i think its an item ability) and change the effect ability to cast the picked spell but for spells that cant be cast with the orb of slow ability use a trigger that fires when the unit attacks. Then have the trigger pick a random integer (lets say we want a 50% chance) between 1 and 2 and then if its less than 2 create a dummy to cast the spell else do nothing. hope it helps

...or you can change the orb of lighting ability...that works too..

i did it for you, just open the map. Hope this helps!
05-11-2005, 12:46 AM#4
Limb_Smasher
i tried that, and it doesnt seem to work.
05-11-2005, 12:31 PM#5
Elven Ronin
I remember someone else who had issues getting an auto chain lightning thing to work. It would only work when the unit with the ability was specifically ordered to attack, not when it automatically aquired. Try searching for it and see if they ever figured it out.
05-11-2005, 05:05 PM#6
Vexorian
http://www.wc3campaigns.com/showthread.php?t=74524