|  | 
	
	
		| gmueller Apprentice
 
 
 Joined: 06 Apr 2004
 Posts: 173
 
 
 | 
			
			  |  Posted: Thu May 13, 2004 4:36 am 
 brackets not showing up
 
 |  
				| ok when someone casts darkness on a room descriptions sometimes look like: Shunai Bridge. (road).
 Occasional drops of rain fall to the ground from a sky grey with pregnant clouds.
 Unholy darkness obscures your vision. H:2260 M:2260 [eb]
 
 but the prompt is not on a new line
 
 I'm using:
 #TRIGGER {(*. %e[0m)(*H:%d *M:%d *~[*]%e[0m)} {#PSUB {%1<%cr>%2}} and manually convert it to trigger on prompt and contains ansi color codes
 
 but now the last line displays like:
 
 Unholy darkness obscures your vision.
 H:2260 M:2260 eb      <---needs brackets
 
 
 It dropped the brackets around the [eb]
 how do I fix this!
 Thanks
 |  | 
	
	  |  | 
	
		|  | 
	
		| nexela Wizard
 
  
 Joined: 15 Jan 2002
 Posts: 1644
 Location: USA
 
 | 
			
			  |  Posted: Thu May 13, 2004 4:47 pm 
 |  
				| Untested try quoting the %2 with "" // "%2" 
 |  | 
	
	  |  | 
	
		|  | 
	
		| LightBulb MASTER
 
 
 Joined: 28 Nov 2000
 Posts: 4817
 Location: USA
 
 | 
			
			  |  Posted: Thu May 13, 2004 7:49 pm 
 |  
				| #TRIGGER {(*. %e[0m)(*H:%d *M:%d *)~[(*]%e[0m)} {#PSUB {%1<%cr>%2"["%3}} Untested. Similar #SUB trigger, without ANSI codes, works.
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |