Does anyone know how to...

Status
Not open for further replies.
Level 5
Joined
Mar 17, 2005
Messages
135
Make a spell or item have a chance to cast a spell such as frost nova. Like i want a passive spell to have a 20% chance of casting frost nova on striking or something like that.

Please help and thanks in advance.
 
easy...itd be something like this...

Frost Nova
Events
Unit - A unit Is attacked
Conditions
(Learned Hero Skill) Equal to Frost Nova AUTO
Actions
Set Chances = (Random integer number between 1 and 5)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Chances Equal to 1
Then - Actions
Unit - Create 1 DUMMY UNIT WITH FROST NOVA for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Attacked unit)
Else - Actions
Do nothing
 
You can do that, but just for ease of implementation I suggest using the Lightning Orb or Black Arrow Bonus spells. These are under items. Now you will create the Frost Nova you want fired then go and make the spell based on Black Arrow(name is actually Item Attack Black Arrow Bonus). There are 3 fields you want to fill in
-Chance to Hit Heroes
-Chance to Hit Summoned Units
and
-Chance to Hit Units
You just fill in the percentage you want and there you go, nice fast and no triggers
 
Status
Not open for further replies.
Back
Top