|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Jul 20, 2008 11:04 pm |
Why not just use #COLOR?
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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. |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Mon Jul 21, 2008 2:12 am |
Alright, but I didn't use sub, I used color.
|
|
|
|
|
|