|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
How do you make text NOT evalutate... like some identifier $whateveridentifier(code) and it'll just return it, not evaluate it...
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
Basically, If I do this: $rgb($color($remove(%theme.color,))) %theme.color = 14 Now that'll return the $rgb code, but Im trying to do it in a dialog, and this is HOW it WOULD be done in a dialog (MDX) mdx SetColor $dname 1,2,3,4,13 text $rgb( $+ $rgb($color($remove(%theme.color,))) $+ ) which would be (if used //echo -a i think) mdx SetColor $dname 1,2,3,4,13 text $rgb(176,176,240) but it DOESN'T work, it tries to evaluate it and treats it as whatever $rgb actually returns I THINK is whats happening... please help :-P
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
There are a number of ways: $eval($whateveridentifier(code),0) $($whateveridentifier(code),0) <-- $() is the same as $eval() $!whateveridentifier(code) $+($,whateveridentifier(code)) $ $+ whateveridentifier(code)
Edit: $() typo.
Last edited by Collective; 10/05/04 06:25 AM.
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
Well, I'm trying to make it do this: //echo -a $ $+ r $+ g $+ b $+ ( $+ $($rgb($color($remove(%theme.color,)))),0) $+ ) (Set %theme.color to colorbox14) See i could put that in the init code, but it would try to evaluate it, I tried one of the codes above and it didnt work, so Im guessing none of them would work...
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Aug 2003
Posts: 325
Fjord artisan
|
Fjord artisan
Joined: Aug 2003
Posts: 325 |
$!identifier (makes it not be evaluated for 1 pass) $!!identifier (for two passes, !!! for three, etc)
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
mdx SetColor $dname 1,2,3,4,13 textbg $rgb(0,0,0) mdx SetColor $dname 1,2,3,4,13 text $!rgb($color($remove(%theme.color,))) ^ Still not working... ^
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
$!rgb $+ ( $+ $color($remove(%theme.color,)) $+ )
New username: hixxy
|
|
|
|
Joined: Aug 2003
Posts: 325
Fjord artisan
|
Fjord artisan
Joined: Aug 2003
Posts: 325 |
$!rgb( $color($remove(%theme.color,)) ) that should work too.
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
nope Guys, None worked... Here I'll break it down of what im trying to go Im trying to get the $rgb of: $color(%theme.color) %theme.color = COLORBOX14 So I gotta remove the colorbox and then I have $rgb($color(%theme.color) (with the removes, but w/e) and that would return something like (NUM,NUM,NUM) and then I need the "$rgb" next to it to actually make it work when I open the dialog, so any other suggestions on how I can do this?
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Try just using $color($remove(%theme.color,)) That will return something like "8355711", which is what MDX expects.
|
|
|
|
|