(Trigger at bottom of post)
Ok i havn ability based of searing arrows, it does no damage. I have the trigger below thats suppose to takeaway 5/8/11%mana from the target and convert it to health for the caster. Each attack has a 10/15/20% chance for this to happen, but my trigger does seem to work, any suggestions?
Ok i havn ability based of searing arrows, it does no damage. I have the trigger below thats suppose to takeaway 5/8/11%mana from the target and convert it to health for the caster. Each attack has a 10/15/20% chance for this to happen, but my trigger does seem to work, any suggestions?
-
Dark Conversion
-
Events
- Unit - A unit Is issued an order targeting an object
-
Conditions
- (Issued order) Equal to (Order(flamingarrows))
-
Actions
- Set Dice = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Dark Conversion for (Ordered unit)) Equal to 1
- Dice Less than or equal to 10
-
Then - Actions
- Unit - Set life of (Ordered unit) to ((Life of (Ordered unit)) + ((Mana of (Target unit of issued order)) x 0.05))
- Set L = (Position of (Target unit of issued order))
- Special Effect - Create a special effect at L using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
- Custom script: call RemoveLocation(udg_L)
- Set L = (Position of (Ordered unit))
- Special Effect - Create a special effect at L using Abilities\Spells\Human\Feedback\ArcaneTowerAttack.mdl
- Custom script: call RemoveLocation(udg_L)
- Unit - Set mana of (Target unit of issued order) to ((Mana of (Target unit of issued order)) - ((Mana of (Target unit of issued order)) x 0.05))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Dark Conversion for (Ordered unit)) Equal to 2
- Dice Less than or equal to 20
-
Then - Actions
- Unit - Set life of (Ordered unit) to ((Life of (Ordered unit)) + ((Mana of (Target unit of issued order)) x 0.08))
- Set L = (Position of (Target unit of issued order))
- Special Effect - Create a special effect at L using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
- Custom script: call RemoveLocation(udg_L)
- Set L = (Position of (Ordered unit))
- Special Effect - Create a special effect at L using Abilities\Spells\Human\Feedback\ArcaneTowerAttack.mdl
- Custom script: call RemoveLocation(udg_L)
- Unit - Set mana of (Target unit of issued order) to ((Mana of (Target unit of issued order)) - ((Mana of (Target unit of issued order)) x 0.08))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Dark Conversion for (Ordered unit)) Equal to 3
- Dice Less than or equal to 20
-
Then - Actions
- Unit - Set life of (Ordered unit) to ((Life of (Ordered unit)) + ((Mana of (Target unit of issued order)) x 0.11))
- Set L = (Position of (Target unit of issued order))
- Special Effect - Create a special effect at L using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
- Custom script: call RemoveLocation(udg_L)
- Set L = (Position of (Ordered unit))
- Special Effect - Create a special effect at L using Abilities\Spells\Human\Feedback\ArcaneTowerAttack.mdl
- Custom script: call RemoveLocation(udg_L)
- Unit - Set mana of (Target unit of issued order) to ((Mana of (Target unit of issued order)) - ((Mana of (Target unit of issued order)) x 0.11))
- Game - Display to (All players) the text: (String(((Mana of (Target unit of ability being cast)) x 0.11)))
- Else - Actions
-
If - Conditions
-
Events