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


Joined: 08 Jun 2008
Posts: 14

PostPosted: Sat Jan 03, 2009 11:15 pm   

Coloring the Prompt
 
So ive made triggers to color the hp, mvs, and such but I can not get the last part to work

\/Indicates night
o HP:Healthy MV:Full >
* HP:Healthy MV:Full >
/\Indicates day

now i have HP: MV: taken care of so i dont want to effect them just *, o, & >

any help is appreciated Smile
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jan 04, 2009 1:59 am   
 
#PCOL or #SUBSTITUTE.

I assume you want different colors for those, but if not you could perhaps try a #COLOR trigger but given the way ZMud processes triggers that's no guarantee this trigger will fire in the correct order.
_________________
EDIT: I didn't like my old signature
Reply with quote
hojotrolloc
Beginner


Joined: 08 Jun 2008
Posts: 14

PostPosted: Sun Jan 04, 2009 3:13 am   
 
I need to color the first thing and the last thing in the prompt(same color) and nothing between or after... Im not to good at this... point me to a #PCOL help file?
Reply with quote
calesta
Apprentice


Joined: 07 Dec 2008
Posts: 102
Location: New Hampshire, USA

PostPosted: Sun Jan 04, 2009 3:49 am   
 
Here is the zMUD Reference Manual. Here is the #PCOL command.
Reply with quote
hojotrolloc
Beginner


Joined: 08 Jun 2008
Posts: 14

PostPosted: Sun Jan 04, 2009 8:13 am   
 
Meh all I can Manage to do is color the whole line... could someone maybe give me a basic example for me to fool around with?

o HP:Healthy MV:Full >
* HP:Healthy MV:Full >

Just the bold parts...frameing the prompt in one color durring the day and another durring the night (but not changeing HP:Whatever MV:Whatever and anything that might come in the same line after > ).

My trigger crafting skills are... sad
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Jan 04, 2009 1:04 pm   
 
#TRIGGER "PromptColor" {({^o|~*})*(>)} {#PCOL {%if(%1=o,%ansi(white),%ansi(gray))} %x1;#PCOL {%if(%1=o,%ansi(white),%ansi(gray))} %x2} "" {prompt|nocr}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
hojotrolloc
Beginner


Joined: 08 Jun 2008
Posts: 14

PostPosted: Sun Jan 04, 2009 7:34 pm   
 
ty for the example :) what its doing is skipping the o/* and coloring o HP:Healthy MV:Full > and the colors wont change from o to * its just steady gray... other than that its perfect. I'll keep fidlin with it and maybe ill get lucky
Reply with quote
hojotrolloc
Beginner


Joined: 08 Jun 2008
Posts: 14

PostPosted: Sun Jan 04, 2009 11:23 pm   
 
zmud keep changeing it after i put it in...

#TRIGGER "PromptColor" {({^o|~*})*(>)} {
#PCOL {} %x1
#PCOL {} %x2
} "" {nocr|prompt}



and i have not been able to color the first character on the line without getting the whole line...
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