  | 
	
	
	
		hojotrolloc Beginner
 
  Joined: 08 Jun 2008 Posts: 14
 
  | 
		
		  
			
			   Posted: 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   | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		MattLofton GURU
 
  Joined: 23 Dec 2000 Posts: 4834 Location: USA
  | 
		
		  
			
			   Posted: 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 | 
			       | 
			 
		   
		 | 
	
	
		  | 
	
	
		hojotrolloc Beginner
 
  Joined: 08 Jun 2008 Posts: 14
 
  | 
		
		  
			
			   Posted: 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?
  | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		calesta Apprentice
 
  Joined: 07 Dec 2008 Posts: 102 Location: New Hampshire, USA
  | 
		
		   | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		hojotrolloc Beginner
 
  Joined: 08 Jun 2008 Posts: 14
 
  | 
		
		  
			
			   Posted: 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 | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		Vijilante SubAdmin
  
  Joined: 18 Nov 2001 Posts: 5187
 
  | 
		
		  
			
			   Posted: 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 | 
			       | 
			 
		   
		 | 
	
	
		  | 
	
	
		hojotrolloc Beginner
 
  Joined: 08 Jun 2008 Posts: 14
 
  | 
		
		  
			
			   Posted: 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
  | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		hojotrolloc Beginner
 
  Joined: 08 Jun 2008 Posts: 14
 
  | 
		
		  
			
			   Posted: 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... | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		| 
		
		 | 
	
	
		 |