coloring group names in group list

Scripts and support for your favorite MUD client.
alendar
Sojourner
Posts: 259
Joined: Mon Jan 20, 2003 6:01 am
Location: Southern Illinois

coloring group names in group list

Postby alendar » Sat Nov 04, 2006 3:24 am

zmud


%s(%d)~/(%d)%smove%s(%d)~/(%d)%shit%s~-%s(%w)

is pattern... this works

#if (%4 < %3) {#cw rev,blue,bold} {} *colors those that need vits

this works also...

what i cant get to work...

i want to be able to only color those on my vit list

so i need a nested if statement and i have no clue on how to go about it...

like if %4 < %3 and %5 = @vitlist color line
else nothing

thanks in advance
************************************
Alendar -= The Black Ash of the Phoenix =-
************************************
http://www.giantitp.com/comics/oots0612.html
http://www.giantitp.com/cgi-bin/GiantIT ... ipt?SK=244
Hador group-says 'Inames I think you are the only person on the mud who shouldn't talk about Cofen sucking'
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Sat Nov 04, 2006 10:00 am

You can use the %ismember function:

Code: Select all

%ismember(Bob,{Ann|Bob|Carl|Doris})


or in your case

Code: Select all

%ismember(%5,@vitList) > 0
alendar
Sojourner
Posts: 259
Joined: Mon Jan 20, 2003 6:01 am
Location: Southern Illinois

Postby alendar » Sat Nov 04, 2006 4:52 pm

i think i got it working....


thanks diso
************************************
Alendar -= The Black Ash of the Phoenix =-
************************************
http://www.giantitp.com/comics/oots0612.html
http://www.giantitp.com/cgi-bin/GiantIT ... ipt?SK=244
Hador group-says 'Inames I think you are the only person on the mud who shouldn't talk about Cofen sucking'

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 4 guests