|
Eowyn Apprentice
Joined: 19 Jan 2001 Posts: 117 Location: Norway
|
Posted: 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 :) |
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: Mon Dec 03, 2001 11:22 pm |
wow...that "case" thingy...thats cool.
*cheers lightbulb*
Caled |
|
|
|
Eowyn Apprentice
Joined: 19 Jan 2001 Posts: 117 Location: Norway
|
Posted: 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? |
|
|
|
Eowyn Apprentice
Joined: 19 Jan 2001 Posts: 117 Location: Norway
|
Posted: 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}}
) |
|
|
|
|
|