|
killunix Beginner
Joined: 18 Nov 2007 Posts: 28
|
Posted: 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 |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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} |
|
|
|
killunix Beginner
Joined: 18 Nov 2007 Posts: 28
|
Posted: 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!
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
killunix Beginner
Joined: 18 Nov 2007 Posts: 28
|
Posted: Sat Jan 12, 2008 1:09 pm |
Mr. fang, your methord is very good! it work now.
thanks |
|
|
|
|
|