• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Solved] Hidden Evasion icon.

Status
Not open for further replies.

SpasMaster

Hosted Project: SC
Level 23
Joined
Jan 29, 2010
Messages
1,969
Hello everyone!

I am making an ability that should boost damage and grant evasion for 10 seconds. For the ability I am using Roar as base, to achieve the bonus damage effect. I am using triggers (below) to add/remove an evasion ability which is classified as "Item Ability - True".


[trigger=""]Swiftness
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Swiftness
Actions
Set Swiftness_Caster = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type |c001e53c9Razor Sting|r) Equal to True
Then - Actions
Set Swiftness_Ability = Swiftness Evasion (100%)
Else - Actions
Set Swiftness_Ability = Swiftness Evasion (50%)
Unit - Add Swiftness_Ability to (Triggering unit)
Trigger - Turn on Swiftness 2 <gen>
Trigger - Turn off (This trigger)
[/trigger]



[trigger=""]Swiftness 2
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Swiftness_Caster has buff Swiftness ) Equal to True
Then - Actions
Else - Actions
Unit - Remove Swiftness_Ability from Swiftness_Caster
Trigger - Turn on Swiftness <gen>
Trigger - Turn off (This trigger)

[/trigger]


The poblem is that this Item Ability evasion shows itself in the hero command card, which is something I do not want. Ideas?
 
Last edited:
Status
Not open for further replies.
Top