HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Blur?

03-08-2007, 05:35 AM#1
Av3n
Just an simple question. u know the blur ability, how do i make one lke that. sorry if feel nub but does any1 know?

-Av3n
03-08-2007, 08:46 AM#2
StockBreak
Well, if you are referring to DotA's Warden Blur then you should do like this:

- Base your ability on DH's evasion (with lower values);
- When the hero learns the ability set its vertex colors like this

Collapse JASS:
native SetUnitVertexColor takes unit whichUnit,integer red,integer green,integer blue,integer alpha returns nothing

Where the "alpha" value (which is basically the "visibility"of a unit) should be a value lowered per level (for example 200 if the learned ability is lv. 1, 150 if the ability is lv. 2, 100 for lv. 3 and 50/or 0 for the level 4, so the unit will be almost transparent).

I hope it helps :) Cheers.
03-09-2007, 12:58 AM#3
Pyrogasm
In case StockBreak wasn't clear, Av3n, those are (whatever the name for them is) 225 colors. Thus, if you put 100 in that code, it would really be 39%.

To get what the number should be in 255 codes, write the number as a decimal (100% = 1.00), and then multiply by 255.
03-09-2007, 04:10 AM#4
Av3n
Yes i know pyro. But thxs for telling me about the percentage thingy. (I should start learion JASS though...) Ill rep u both (One: trigger, 2:how the integers work) Thx!

-Av3n
03-09-2007, 09:08 PM#5
Jacek
What the FUCK, you don't need JASS for this
03-09-2007, 11:19 PM#6
Hydrolisk
I agree. Also, WTF AVEN? I though you were non-"txt tlk"!!!

Don't reply. :P
03-10-2007, 12:02 AM#7
Av3n
can't be bopthered typiny full setencess

@Jacek: I said to stat learnin JASS

-Av3n
03-10-2007, 08:33 PM#8
Pyrogasm
Quote:
Originally Posted by Hydrolisk
I agree. Also, WTF AVEN? I though you were non-"txt tlk"!!!

Don't reply. :P
Don't spam.