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


Joined: 18 Nov 2007
Posts: 28

PostPosted: Fri Jan 11, 2008 7:25 am   

capture questions! help please!!
 
hi,all,i need to capture the AAAA.BBBB.CCCC.DDDD.EEEE.FFFF.GGGG.HHHH.ZZZZ and stored them into 9 variables, how can i write the trigg.thanks

The mud output like this:
Code:

【Now you at the maze】

AAAA  BBBB  CCCC
   ↖   |   ↗
DDDD--EEEE--FFFF 
   ↙   |   ↘
GGGG  HHHH  ZZZZ

My current locate at the EEEE


Last edited by killunix on Fri Jan 11, 2008 12:25 pm; edited 6 times in total
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Jan 11, 2008 8:11 am   
 
In the future, please don't pad your spacing with white As, it's very confusing. If you put your sample in [code] tags, the font will be fixed-width and spacing will be preserved. I'm going to assume that your white as were just padding.

Ideally, I'd need more information on what possible characters your placeholders can contain. Assuming letters and numbers only, this should work:

#trig {----------------------------} {}
#cond {(%w)%s(%w)%s(%w)} {do whatever} {within|param=1}
#cond {(%w)--(%w)--(%w)} {do whatever} {within|param=2}
#cond {(%w)%s(%w)%s(%w)} {do whatever} {within|param=2}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
killunix
Beginner


Joined: 18 Nov 2007
Posts: 28

PostPosted: Fri Jan 11, 2008 8:56 am   
 
Mr. Fang,I have edited, and I use the way that you told, and did not succeed, could you tell me more detail? Thank you very much!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Jan 11, 2008 6:54 pm   
 
Try

#trig {(%w)%s(%w)%s(%w)} {do whatever}
#cond {(%w)--(%w)--(%w)} {do whatever} {within|param=2}
#cond {(%w)%s(%w)%s(%w)} {do whatever} {within|param=2}

Instead, though without knowing what characters will be in the sample, I don't know how useful it'll be. Some actual examples of MUD output would be useful.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
killunix
Beginner


Joined: 18 Nov 2007
Posts: 28

PostPosted: Sat Jan 12, 2008 1:09 pm   
 
Mr. fang, your methord is very good! it work now.
thanks
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