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
Toshiki
Beginner


Joined: 20 Nov 2004
Posts: 14

PostPosted: Mon Dec 11, 2006 9:05 am   

Need help with simple trigger
 
| Power|| Boom|
This is displayed at top of screen


|Power ||Boom |
This is displayed at bottom of screen

Please note the 2 words change frequently. How do i get zMud to ignore the spaces and put these in 2 seperate variables? I need the words without the spaces
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Dec 11, 2006 8:55 pm   
 
Code:

|    Power||     Boom|
This is displayed at top of screen


|Power    ||Boom     |


#TRIGGER (^~|%s(%x)~|~|%s(%x)~|$} {#VAR V_Word1top %1;#VAR V_Word2top %2;#ECHO Top of screen capture or start or whatever}
#TRIGGER (^~|(%x)%s~|~|(%x)%s~|$} {#VAR V_Word1bot %1;#VAR V_Word2bot %2;#ECHO Bottom of screen capture or start or whatever}

I'm assuming this is showing some sort of timed effect as the spaces decrease or similar.

Maybe pattern match with fixed with to avoid spoofing.
&nn matches exactly nn characters (fixed width 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