|
Dravon Beginner
Joined: 05 Jan 2002 Posts: 29 Location: USA
|
Posted: Sat Sep 07, 2002 5:53 pm
highlighting names |
Hi there I was wondering if there is a way to take alist of names like in note pad and be able to get them to highlight with colors without makeing a trigger for everyone? thanks
Gary |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Sep 07, 2002 6:56 pm |
quote:
Hi there I was wondering if there is a way to take alist of names like in note pad and be able to get them to highlight with colors without makeing a trigger for everyone? thanks
Gary
Dunno how big your list is, so I'm not sure how fast/slow any #read or similar command would run on that file. If you can get the list into a variable beforehand or even to eliminate the file, you can simply use this trigger assuming they'll all be the same color:
#trigger {{@names}} {#cw red}
li'l shmoe of Dragon's Gate MUD |
|
|
|
Dravon Beginner
Joined: 05 Jan 2002 Posts: 29 Location: USA
|
Posted: Sat Sep 07, 2002 7:23 pm |
speed isnt an issue what im doing is makeing a list of names at the bottem is a small sample of what I want to cpy and past from. It will be a huge list. Any time I see that name in game I want it see it in red. but without putting them all in a trigger. I can make a trigger for each one but I want to be able to just copy and paste the names into a big trigger so that when it sees the names it will make them a certain color.
Im sure youll recognize a few names matt
Kyntavis Onyx
Rone Rinkin
Gary
Gary |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Sep 07, 2002 8:03 pm |
Read all of the names from the file into a variable and then use the trigger Matt provided:
#ALIAS importNames {#FILE 1 fileName;#VAR names "";#LOOP 1,%filesize(1) {#VAR names %additem(%read(1), @names)};#CLOSE 1}
Kjata |
|
|
|
|
|