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
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Mon Sep 27, 2010 4:48 am   

What's the best name highlighter?
 
I'm using Zmud 4.62 and basically have no idea when it comes to scripts and such. I have messed with trigger a bit but they're really basic. But what I really need is the script that enables players from different clans names to be highlighted. I'm sure you all know a lot on this subject Rolling Eyes
just wondering where I could find a decent clan name highlighter script cause I searched high and low and couldn't find one
So any link to the forum or topic it's hidden in would be nice
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Mon Sep 27, 2010 5:44 am   
 
the command you want is #CW for names and strings, #CO for the whole line

colors accepted are:
0-15 --- Basic ansi colors
#RRGGBB --- hexidecimal colors
red, green, ect --- the words listed in '#HELP %colorname' will all work, i suggest using the colourwheel in the package library

you will want to make your triggers like so:

#TR {string or name} {#CW cadetblue}
#TR {{@stringListofGreenItems}} {#CW 10}
#TR {announcement!} {#CO #FF3399}
_________________
Discord: Shalimarwildcat
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Mon Sep 27, 2010 6:11 am   
 
ok that doesnt seem too complicated, since im a complete newb about these things can you gimme slight detailed examples on what i need to input and I can go from there. I play the DSL MUD and to give an example to help me out here lets say I wanna see someones lightblue name when theyre in the Knighthood clan.
so would it be like
#TR {PERSON} {#CW BLUE}
#TR {{@Knighthood}} {#CW 10}
#TR {announcement!} {#CO 'blue color'}

how do you make triggers more than one line? sorry as I said complete newb on this stuff
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Tue Sep 28, 2010 5:47 am   
 
well if you know all the names for the clan members, just make the variable and input all the values and the second example would work best in that example
_________________
Discord: Shalimarwildcat
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 7:13 am   
 
ok, so what your saying is in the variable tab I use only the second command givin, so it would be like.
#TR {{@James}} {#CW 10}
as simple as that? so when any occurence of the text James is on screen its autmatically turned to the 10th color which is blue?
so all i would have to do is make like 50 variables and input the names just like that and experiment with the 1-15 colors to get the one I want right?
do I have to put the #TR and the double {'s? what do they mean?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Tue Sep 28, 2010 7:26 am   
 
10 is actual a green color... to find the ansi color to number reference look in preferences on the foreground color tab
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Tue Sep 28, 2010 7:31 am   
 
if you are only triggering on a single name, instead of a list of names, use the first example. (pattern-wise that is, the three forms of sending the color are equal in all ways)

the second set of {} is to force the variable to expand so the trigger can use all the values, its not needed for single string triggers
_________________
Discord: Shalimarwildcat
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 7:36 am   
 
wait now your losing me.
so now I should do what I said except with the first option. so.
#TR {James} {#CR 10}
or maybe .. {#CR green}
so like that?
now im lost on the second option though, your saying if I input ALL of the members names it would work in one variable command and not having to make 50 of them? how would I seperate the names?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Tue Sep 28, 2010 7:54 am   
 
You have the correct syntax to color James different for anyone else. Either of those #CR statements would work.

#VAR knighthood {Tom|Joe|Billy|etc}
would allow you to use the @knighthood variable for color, as per my earlier demonstration
_________________
Discord: Shalimarwildcat
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 8:06 am   
 
I take it #TR is triggers and #VAR is variables, but I dont have to input the #VAR in the variable menu do I?
when I click on the variable tab and it brings up the window I can just click new and do what you said without it

Knighthood {name1|name2|name3|...name 50} {#CR 10}
just like that or should I put @Knighthood
I am testing these things out but i dont think theyre working. in the variable window there are three areas
Variable
Value
Default
How am I to input the commands within those windows
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 8:18 am   
 
wait you mean just type that in the main winow dont you
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 8:26 am   
 
i typed them in the main window and it made new variables but im not getting any color change. I used mine and other players names that I see often and it made no change. what could I be missing?
#VAR Knighthood {Name|Name} {#CR 10}
I did it just like that to see if I get anything but I didnt. do you think something is de-activated somewhere?\
DoI have to make a syntax for the colors in the color menu, I see where each color is represented by a number now.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Tue Sep 28, 2010 8:31 am   
 
Hold up, you are trying to attach a trigger value to a variable definition. That just isn't going to work.

Yes these commands are designed to go strait into the command line

#VAR Knighthood {Tom|Dick|Harry}
#TR {{@knighthood}} {#CR 10}

two settings using this method
_________________
Discord: Shalimarwildcat
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 8:37 am   
 
oooooohhhhhh So I have to input BOTH of them for it to work, ok let me experiment a bit more.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Tue Sep 28, 2010 8:43 am   
 
well the trigger is referencing that variable... you can make the variable bigger and bigger via the settings editor and it'll work for all those names as well without having to change the trigger or make new triggers

I tend to use this technique as well, to color large groups of people at a time.
_________________
Discord: Shalimarwildcat
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 8:48 am   
 
eh still not working, things seem to be right. In my triggers window there are a bunch of names that have their inividual trigers and for the action it says #CR 4, and in the variable window it has a single Bloodlust, uner that in the Value option there is name|name|name|name, but when I look around or type Where to see those around me. it does this.
Name

Name

Name
then it give me three of my status prompts with HP and all, like something is trying to be input as a command.
plus the names are not supposed to be seperated like that when you type Where.
I feel like I'm almost getting it but somethings not right.
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 8:50 am   
 
ok the Trigger had the action of #CR 4, so it was like when it saw our names it typed in #CR 4 for each time it saw our names listed from the variables, I removed the #CR 4 from triggers to Variables but still no color change.
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 9:09 am   
 
I GOT IT. i got it i got it.
Thanks for sticking with me through my constant ignorance Laughing
although im going to have to go with the single name trigger form cause when I input the names through the variable command they dont change colors at all.
so in the end im using this #TR {name} {#CR 4}
for some reason names won change color when I use this..
#TR {Bloodlust} {#CR 4}
#VAR Bloodlust {name|name|name}
with the trigger+variable there is no change, with the single name triggers it works perfectly
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 9:26 am   
 
ok its all fixed now. i looked in the help file to see if anything could resolve my delimma on this.
your commands are perfect it wa just CW instead of CR. now everything is dandy

LOL i dunno where I got CR from CW anyway Laughing


Last edited by ItsThatGuy on Tue Sep 28, 2010 5:50 pm; edited 1 time in total
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 9:38 am   
 
although variables for individuals of a whole clan still dont work, imma copy my previous to justify this.

#TR Bloodlust {#CW 4}
#VAR Bloodlust {name|name|name}

any givin name within the bloodlust variable now does NOT change color. yet,

#TR name {#CW 4}
Will change the individuals color.

so there is something I am missing with variables apparently and any info you could enlighten me with to get this to work could help save me tons of trigger space
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Tue Sep 28, 2010 4:01 pm   
 
#TR {{@Bloodlust}} {#CW 4}
_________________
Taz :)
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 5:41 pm   
 
nah it still didn't work, I see what it did though.
It took all the names I put in the variable and put them in the trigger to simply make the trigger look like the variable I made.
So knowing this I can simply not worry about the variable and put all the names in one trigger. my problem now is the | doesnt seem to seperate names or anything. so none of the names are colored now perhaps it is searching for something that says
name|name|name in order to change its color as a whole and not seperately. could there be a reason my | character is not seperating names or should I try other character?
Reply with quote
ItsThatGuy
Beginner


Joined: 27 Sep 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 6:08 pm   
 
ok dont worry i got it completely now, when i entered the command through the window it didnt add the {} in the actuall trigger window, when i added them to the trigger window it fixed everything. its all good now thanks a lot. time to work on hundreds of names now woooo
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