|
Trind Beginner
Joined: 04 Jan 2003 Posts: 12 Location: Sweden
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Jan 04, 2003 8:58 pm |
Enable the ANSI Trigger option for the trigger.
Kjata |
|
|
|
Trind Beginner
Joined: 04 Jan 2003 Posts: 12 Location: Sweden
|
Posted: Sun Jan 05, 2003 12:31 am |
Yeah but that don't help the
%line and %trigger is in non ansi-format |
|
|
|
Trind Beginner
Joined: 04 Jan 2003 Posts: 12 Location: Sweden
|
Posted: 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 :) |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
Trind Beginner
Joined: 04 Jan 2003 Posts: 12 Location: Sweden
|
Posted: Sun Jan 05, 2003 5:54 pm |
Ah That Rocked @$$ :) thanks alot
|
|
|
|
|
|