• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

-refresh???

Status
Not open for further replies.
Level 4
Joined
Apr 13, 2006
Messages
83
I gave my Character called Predator an ability that would add transparency to it called optical camouflage, but when it dies it comes without the transparency again, Ive seen this happens oftenly to mortred in DOTA, they fix it with a message on the chat box that says -refresh it gives her the transparency of the ability level she had. I think Blur is the name of the ability for MOrtred.

How do I make a trigger that solves this problem...?
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
allright, just add a line to the end of you revive trigger that says

Code:
Unit-Set Unit Vertex Coloring to 100%, 100%, 100%,  Num*Level of Your Ability for Triggering Unit

if the unit does not have the ability, it will not refresh him ^.^

the only reason IceFrog didnt do this is because he probably knows less triggering than anyone here.
 
Level 17
Joined
Jan 21, 2007
Messages
2,014
what about puting it in the revival trigger?

Ok... i'll just see if i've got this right. It's like the fade/blur (or whatevr its called) ability in DotA, a permanent fade bonus? if that's the case, just do like this when revived:

If/Then/else
If - (think its integer^^) - (Dying Unit) has (Fade)
integer - level of (fade) for (Dying Unit) is equal to 5

then make unit transparency trigger fo that level and work yourself down to level 1 with If/then/else triggers starting on each else. If u wonder why i started with lvl 5 its because i found that sometimes the WE will reckognize an abilty as lvl 1 even if its 2 because the unit had it before. U don't have to check if the ability is level 1 with a condition since it is the last level, and no othher level will activate he effect. anyway it works better for me. hope i could help:wink:
 
Status
Not open for further replies.
Top