HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

text command help

06-25-2003, 01:19 AM#1
lashin'Puppet
i need help, how do u make it so when you type "size + ###" will make the selected unit(s) larger?

and how do you do it so you can change the selected unit's color by say typing "tint ###,###,###"

thanks to anyone who helps
06-25-2003, 02:12 AM#2
Guest
Dude, this has already been asked 50+ times. Go look in the forums.:bangH:
06-25-2003, 08:44 AM#3
Dead-Inside
WELL.... Actually the tinting isn't really something that's been asked before...

First you need Red, Blue and Green, all single integer variables.
Then you need an integer named Transp. <-- IGNORE!! You need REALS. So sorry... You need them to be REAL.

Now, when someone types -tint XX XX XX XX they are going to tint all of their units... How do we do this you ask...

E: Player types "-tint " as a substring
A: Set Red = (Substring(6,7)
Set Blue = (Substring(9,10)
Set Green = (Substring(12,13)
Set Transp = (Substring(14,15)
Pick all units in (Units currently selected by (triggering player) and do Animation - "something" tint.

Now, umm... When you set the valvues in the Animations action (It has something like color matrix or something as descrip...) put in the interger valvues for the different colors...

Regards
Dead-Inside
06-25-2003, 09:44 PM#4
Guest
Quote:
Originally posted by Dead-Inside
WELL.... Actually the tinting isn't really something that's been asked before...

First you need Red, Blue and Green, all single integer variables.
Then you need an integer named Transp.

Now, when someone types -tint XX XX XX XX they are going to tint all of their units... How do we do this you ask...

E: Player types "-tint " as a substring
A: Set Red = (Substring(6,7)
Set Blue = (Substring(9,10)
Set Green = (Substring(12,13)
Set Transp = (Substring(14,15)
Pick all units in (Units currently selected by (triggering player) and do Animation - "something" tint.

Now, umm... When you set the valvues in the Animations action (It has something like color matrix or something as descrip...) put in the interger valvues for the different colors...

Regards
Dead-Inside


Two problems. Tinting is 3 values, and that will crash if you only use one value per each. You will have to create the same trigger three times, for it not to crash.
06-26-2003, 07:33 AM#5
Dead-Inside
Ehm... No...
1. You'll have to set an initial valvue to eatch, so even if you do not enter a valvue it wont crash (duuuh).
2. Tell the people exactly how to use it.
3. Be sure to type 0X and not X, so that it will be -tint XX ZZ YY BB and not -tint X ZZ Y B, because that would not work...

Regards
Dead-Inside