Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Eowyn
Apprentice


Joined: 19 Jan 2001
Posts: 117
Location: Norway

PostPosted: Sat Dec 01, 2001 1:10 am   

Making triggers case sensivite ++
 
In my mud, I color peoples names according to what clan they're in, since I'm awful at remembering names. I use the following alias to add new ppl to a color:

#al addClanmember {#trigger {%1} {#cw 9} "Clan"}

The thing I want to do is to make the trigger case sensitive without going into the Clan class and fixing it / i.e. in the alias. Also - I want to add a space behind every name I add - this way odd names don't show up in colors in room descs. etc.
I can add the spaces manually afterwards, but these adjustments aren't saved when I export my settings, which makes it kind of annoying. Also - is there any way to export settings _with_ the spaces?

Thanx :)
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Sat Dec 01, 2001 4:46 am   
 
The way you are colouring names is rather unwieldy. Try this instead...

#AL addclanmember {#ADDITEM clanmembers %proper(%1)}
#TRIGGER {{@clanmembers}} {#CW 9}

TO add the space thing:
#TRIGGER { {@clanmembers}} {#CW 9}

This way is much nicer because there is 1 alias, 1 trigger, and 1 variable. Rather than a trigger for every name. Also, if you wish to take a name off the list...
#AL delclanmember {#DELITEM clanmembers %1}

Caled
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Dec 03, 2001 9:12 pm   
 
Using your method:
#al addClanmember {#trigger {%1 } {#cw 9} "Clan" "case"}

Using Caled's method:
#AL addclanmember {#ADDITEM clanmembers %proper(%1)}
#TRIGGER {{@clanmembers} } {#CW 9} {} {case}

LightBulb
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Mon Dec 03, 2001 11:22 pm   
 
wow...that "case" thingy...thats cool.
*cheers lightbulb*

Caled
Reply with quote
Eowyn
Apprentice


Joined: 19 Jan 2001
Posts: 117
Location: Norway

PostPosted: Fri Dec 14, 2001 3:24 am   
 
I get a problem with the list thing.
If I copy the #al and #tr just as above into the command field,
then type addclanmember Test1
Test1 will have the right color.
Then I type addclanmember Test2.
Now both Test1 and Test2 get no color. Any idea why?
Reply with quote
Eowyn
Apprentice


Joined: 19 Jan 2001
Posts: 117
Location: Norway

PostPosted: Fri Dec 14, 2001 2:22 pm   
 
Nm - needed to put a space behind Test1 and Test2 when more than one object in the list. Then they'll show up in color. (You need this space behind no matter the spaces you put in
#TRIGGER {{@clanmembers}}
)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net