HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Tutorial: Making colored variable(Player Names, Integer to Strings) text

11-16-2003, 02:46 AM#1
theJ89
This video I have linked to will show you how to make this:

Oops! Player's hero just got killed and will be revived in 10 seconds.

Into this basically:

Oops! Player's hero just got killed and will be revived in 10 seconds.

In other words, It lets you change stuff you can't put into a color program (such as the functions that find player names) to color, like the above example showed.

What you need:

A video player (to play the video below)
A color program
World Edit
Warcraft 3 (The expansion is NOT required.)

Download the video: 1.5 mb big.
HINT: Run in fullscreen mode if your player has it.
11-16-2003, 06:58 PM#2
Chirus_Fire
You could just use the bracket text...i think in editor its something like "|c00000000Text|r"
Experiment with the zero's, like "|c12345678Text|r" and you might get a totally new color.
"|c11222333Text|r" "|c9900999Text|r"
It only works in certain places, though. Like the Loading Screen and tooltips. As far as i know, it doesnt work for unit names.
11-16-2003, 07:45 PM#3
theJ89
I know that Cirus Fire, but this is for VARYING TEXT not premade text.
11-16-2003, 08:28 PM#4
weaaddar
This is why jass wins always...
Its so much easier to set it and forget it. You don't even need to close the bracket really. (Example: see dialog test 3.8 colored variables oh my!)

An aside: the video quality breaks like crazy. You can't even see whats going onb ecause of the huge amounts of artifacting.
11-16-2003, 08:30 PM#5
theJ89
And also, the numbers are hex code, messing with that may cause your game to crash or text to show up incorrectly.

|cRRGGBBAA |r
R=Red
G=Green
B=Blue
A=Alpha (transparency factor)
11-16-2003, 08:32 PM#6
weaaddar
I just thought of a rather simple way. Just set them to string variable the color code.
So if you want red text you'd use your red variable.
11-16-2003, 09:04 PM#7
theJ89
Yes you are right there but not everyone knows jass.

The video is big enough as it is, any bigger and it would take forever.

Quote:
Originally posted by weaaddar
I just thought of a rather simple way. Just set them to string variable the color code.
So if you want red text you'd use your red variable.
Hey! I used that idea before in an rp I made, so when a player types, his matching color is retrieved from a string array.

Well, anyway, im posting a smaller and CLEANER video soon.

Approxim. Size: 1.54 Mb

Ok, just follow the same link, the bigger file was replaced with the 1.54 mb one.
11-16-2003, 10:45 PM#8
weaaddar
Worse video by far.
This one is blurrier and half of the left side is cut off. Can't you just explain how to do it like.

Create a string array variable named Color
Define each color you will use in the array entries (use a color generating program).

Use the String Concat feature and Concat Color[x] (Where X is where you defined your color of choice) as the first entry of your string and then your final entry of your string will end with |r.
Obviously thats a crappy toturial but you get the jist..
11-17-2003, 09:00 PM#9
theJ89
**** then, ill just delete it >:|
11-29-2003, 03:43 AM#10
theJ89
Well noone seems to be using it, some mod just delete it
12-01-2003, 11:21 PM#11
Xinlitik
I do color of variables by doing this: conacenerate strings (I know I spelled it wrong.. damn long word :) ) that say:

Beginning of color code +
unt name of triggering unit (or whatever..) +
|r +
has been killed, and will revive in +
beginnng of color code +
level fo triggering unit x 3 +
|r +
seconds.

That's a revive message heh.
01-03-2004, 12:47 PM#12
theJ89
I do that too :)

But I made the tutorial because it makes me sick to see so many battle.net maps with uncolored text. It's disgusting! It's like cleaning half of your dishes and expecting the wind to clean the rest :|
01-04-2004, 07:46 AM#13
Xinlitik
Oh, sorry. I didnt watch the video hehe. Didnt feel like downloading a file. Watching it now..