HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[|cffffcc00Level %d|r] stuffs ...

12-27-2002, 12:16 PM#1
Guest
Where could i find some stuff to understand and create texts with these kind of ... things :
[|cffffcc00Level %d|r]

It seems that the code cfff... is a color code that is applied between 2 |, but what is the %d and r ?

<AHhb,Data11>

First code the ability or creature code and the second the variable ?
That seems correct.

Is there other kinky things ?
How to make a return to line ?

Thanks.
12-27-2002, 12:38 PM#2
MartinezTG
|cffXXXXXX<TEXT>|r
Where <TEXT> is the text you want and XXXXXX is the color in RRGGBB (red, green, blue)

If you want to make a return to line then you write a |n

The %d -> right now i have no idea but it seems to be the ability's next available level's number (or something like that).

The |r indicates the end of the color text.

Martinez
12-27-2002, 12:55 PM#3
Guest
Thanks.
especially for the |n ;) !!
12-27-2002, 01:29 PM#4
Electromancer
for the color code it goes from 0-f. So that would be 0123456789abcdef that you can use.
12-27-2002, 10:34 PM#5
FurbyI)estroyer
http://www.cyberbits.com/Backgrnd/hexcolr2.htm
12-27-2002, 11:24 PM#6
BoZo
the %d is from C (the programming language) i dont really remember what it means, so long time ago i tried to learn C, but i think it shows the value of the variable, in this case the lvl of the hero.
12-27-2002, 11:47 PM#7
Mr.123
If it does follow the conventions of the C language, then %d means the value to be printed at that spot is an integer, whether it be a literal or a variable.

Don't know how it's used in JASS. I'm sure someone will spend a few minutes and try to figure it out?