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


Joined: 04 Jan 2003
Posts: 12
Location: Sweden

PostPosted: Sat Jan 04, 2003 4:01 pm   

Colors
 
Hi i wounder if there is anyway to get the
%trigger or %line function to return the Whole Ansi colors as well as it is for me i only get the Pure text of the line with those. /Zodran @ Final Realms
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Jan 04, 2003 8:58 pm   
 
Enable the ANSI Trigger option for the trigger.

Kjata
Reply with quote
Trind
Beginner


Joined: 04 Jan 2003
Posts: 12
Location: Sweden

PostPosted: Sun Jan 05, 2003 12:31 am   
 
Yeah but that don't help the
%line and %trigger is in non ansi-format
Reply with quote
Trind
Beginner


Joined: 04 Jan 2003
Posts: 12
Location: Sweden

PostPosted: Sun Jan 05, 2003 12:33 am   
 
This is how the trigger looks like if you wanna know.
#TRIGGER {(%*) ~[(*)~]%*.%*} {#if (({%1} =~ ~[Alliance~]) OR ({%1} =~ Bulletin)) {} {#var ishere {None};#var dir {%2};#var atRoom { : %1 [%2]}};#if ({%1} =~ "There * obvious exit") {#var atRoom {%line2}}} "" {notrig|color}


and i want the %line2 to be in ansi :)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jan 05, 2003 3:25 pm   
 
Sorry, only %trigger gets saved with the colors. You could try capturing the previous line in the same tirgger too by using this pattern:
(%*)$(%*) ~[(*)~]%*.%*

Now you have the previous line in %1.

Kjata
Reply with quote
Trind
Beginner


Joined: 04 Jan 2003
Posts: 12
Location: Sweden

PostPosted: Sun Jan 05, 2003 5:54 pm   
 
Ah That Rocked @$$ :) thanks alot
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