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
Malaphus
Novice


Joined: 11 Aug 2003
Posts: 34
Location: USA

PostPosted: Fri Aug 15, 2003 4:13 am   

Detecting certain color strings in trigger pattern
 
I'm trying to make my own mapper trigger (since the automapper doesnt work too well with my MUD). I want this trigger to fire whenever I enter a new room. I want the pattern to detect cyan colored text after my prompt but what I'm trying doesn't seem to be working... Here is the pattern I'm trying to use:

^(%d)H (%d)M (%d)V > %ansi(cyan)(%*)$

This looks like it should work but it isnt... When I enter a new room I see this:

1334H 177M 363V > A Frozen Lake

The room name is colored regular cyan (not bright or anything)...

Why isnt my trigger firing?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Aug 15, 2003 7:38 am   
 
%a = match any number of alphanumeric characters (a-z,0-9)
Since %ansi(cyan) is in your pattern, it's

any number of alphanumeric characters (a-z,0-9), followed by "nsicyan", with cyan saved to the %1-%99 parameters.

You can't use functions in the pattern.
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