Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
foldar
Novice


Joined: 21 May 2020
Posts: 32
Location: The Netherlands

PostPosted: Mon Sep 13, 2021 9:23 pm   

Trigger on coloured lines
 
This trigger is supposed to trigger only if not only the text, but also the colour matches.

I set the option line color of the trigger to red text with a black background, but now the trigger doesnt work anymore.
Trigger type is pattern, is that ok for color triggers?
Did I do something wrong? Or did I find a bug?

https://media.discordapp.net/attachments/512718685786603520/887089684784771132/unknown.png?width=793&height=325

(If you can access that)
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: Tue Sep 14, 2021 3:18 am   
 
I would suggest a different method for making a colored trigger.
Uncheck the line color, then check ansi color instead.
Then I want you to highlight the line from the main window and repaste it into the pattern. (Just from 'DISARMS' on, you don't need the %1 in there at all.)
It should have some ansi color tags now.

Test to see if it fires.
_________________
Discord: Shalimarwildcat
Reply with quote
foldar
Novice


Joined: 21 May 2020
Posts: 32
Location: The Netherlands

PostPosted: Tue Sep 14, 2021 12:53 pm   
 
With the ANSI-code it works.

%e[1;31m%1 DISARMS your spirit of justice!

get justice;wear justice

It must have the %1 in, because the ansi code is all at the start of the line.

Looks like the line colour, is some not working functionality. Maybe it was that it was not only red, but also bold.

Thanks

Discord: Foldar#0389
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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