HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Invisible Evasion

05-20-2007, 12:58 PM#1
DarthRevansith
people who play dota will know what i´m talking about, i want like phanton assasin evasion, that makes her invisible, but it is not working.... see what i´ve got until now :

Trigger:
gods evasion
Collapse Events
Time - Every 0.01 seconds of game time
Conditions
Collapse Actions
Set godsevasion = (Level of God´s Protection for Tha´mo (skin1) 0001 <gen>)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
godsevasion Equal to 0
Collapse Then - Actions
Animation - Change Tha´mo (skin1) 0001 <gen>'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
godsevasion Equal to 1
Collapse Then - Actions
Animation - Change Tha´mo (skin1) 0001 <gen>'s vertex coloring to (100.00%, 100.00%, 100.00%) with 5.00% transparency
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
godsevasion Equal to 2
Collapse Then - Actions
Animation - Change Tha´mo (skin1) 0001 <gen>'s vertex coloring to (100.00%, 100.00%, 100.00%) with 10.00% transparency
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
godsevasion Equal to 3
Collapse Then - Actions
Animation - Change Tha´mo (skin1) 0001 <gen>'s vertex coloring to (100.00%, 100.00%, 100.00%) with 15.00% transparency
Collapse Else - Actions
Do nothing
05-20-2007, 01:14 PM#2
blu_da_noob
15% transparency isn't much, so it might not be noticable. Try higher values (50+%) to see if it's working.

And doing that every 0.01 is definitely not necessary.
05-20-2007, 01:15 PM#3
Toink
Try using the 'Unit Learns A Skill' Event, then check what the level of the ability is, then apply the correct alpha transparency.
05-20-2007, 01:26 PM#4
DarthRevansith
Quote:
Originally Posted by blu_da_noob
15% transparency isn't much, so it might not be noticable. Try higher values (50+%) to see if it's working.

And doing that every 0.01 is definitely not necessary.

wow, it works very fine....and yes, i could make it when the unit learned an ability, but it would bug with tome of retraining, and my trigger works perfecly with book of retraining thanks, now it it 0-30-50-70% and ill check it every second
05-20-2007, 01:39 PM#5
Toink
Tell me how it would bug with tome of retraining? I mean, I did told you to check the level of the ability before applying the transparency.

Trigger:
Invisible Evasion
Collapse Events
Unit - A unit Learns a skill
Collapse Conditions
(Learned Hero Skill) Equal to Your Skill
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Your Ability for Learning Unit Equal to 1
Collapse Then - Actions
(Your Actions Here)
Else - Actions

Just rinse and repeat for levels 2 and so on.
05-20-2007, 01:43 PM#6
Thunder_Eye
Do you even know what Tome of Retraining does? :P
05-20-2007, 01:49 PM#7
Anitarf
Yeah, Toink, the problem is actualy easily solvable but your post doesn't really show the correct solution.

Simply have another trigger run when a unit uses an item and if it's tome of retraining, reset the transparency.
05-20-2007, 01:50 PM#8
Toink
Ah, I totally forgot!
05-20-2007, 03:21 PM#9
Captain Griffen
And it resets upon death/revival.