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
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Sun Jul 20, 2008 10:52 pm   

A simple blink question
 
Right now I'm doing...

Code:

#regex Sanctuary {^(The white aura around your body fades.)$} {%ansi(blink, white) %1} {General Triggers}


But all it does is send the line to the mud. I'd much rather just have the blink affect the current line like color does. I know it's possible with sub (Though not sure how), but that seems like a lot of work for cmud to do when there must be a simpler option.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jul 20, 2008 11:04 pm   
 
Why not just use #COLOR?
_________________
EDIT: I didn't like my old signature
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Jul 20, 2008 11:08 pm   
 
Well, subbing it is easy. Just make sure "Trigger on Trigger" is not checked, or it might throw it into a continual loop.

Code:
<trigger priority="15070" trigontrig="false" id="1507">
  <pattern>^(The white aura around your body fades.)$</pattern>
  <value>#SUB {%ansi(white,blink) %1}</value>
</trigger>


Take what you want from there - it works on my system, and it's about as easy as it can be.

Charneus
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Sun Jul 20, 2008 11:08 pm   
 
Does that let me make it blink? I thought it was strictly for color.

Edit:
Yup, thanks. I missed it when I read it the first time around.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Mon Jul 21, 2008 1:17 am   
 
why did it fire on this:


Tugrath OOC: 'blink'

? It made it all white but didn't blink it. But there's no other reason the line should have been all white.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jul 21, 2008 1:30 am   
 
Did you erroneously make a trigger that fires on "blink" ? Sometimes that happens when you screw up a SUB. It'll start making triggers. Check through your triggers and make sure "blink" isn't one of them.

Charneus
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Mon Jul 21, 2008 2:12 am   
 
Alright, but I didn't use sub, I used color. Very Happy
_________________
Listen to my Guitar - If you like it, listen to more
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