Dakho
()[o__o]()
- Reaction score
- 75
How would one go about making a passive spell that has a chance to do something (like critical strike) but through triggers?
Unit is attacked
Level of Custom Crit for attacking unit > 0
Random integer between 1 and 100 less than or equal to #
Cause attacking unit to damage attacked unit dealing X damage of attack type Y and damage type Z
A Unit Attacks
Events
Unit - A unit Is attacked
Conditions
(Level of Passive Entangle for (Attacking unit)) Greater than 0
Actions
Set tempInteger = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempInteger Less than or equal to ((Level of Passive Entangle for (Attacking unit)) x 5)
Then - Actions
Unit - Create 1 Caster for (Owner of (Attacking unit)) at (Position of (Attacked unit)) facing Default building facing degrees
Unit - Add Entangling Roots (Neutral Hostile 1) to (Last created unit)
Hero - Order (Last created unit) to use (Last created item) on (Attacked unit)
Else - Actions