Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Toshiki
Beginner


Joined: 20 Nov 2004
Posts: 14

PostPosted: Mon Dec 11, 2006 8:52 am   

Need help with simple trigger
 
| Power|| Boom|

How do i make this recognize just "Power" and "Boom" and none of the spaces?


|Power ||Boom |
It also appears as that on the bottom of the screen. the other is at the top
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Mon Dec 11, 2006 9:48 am   
 
How do you mean? You want a trigger that picks up the words between the lines but not the spaces?

EDIT: Okay, I read your other thread. It's not too hard, you just use wildcards (look them up in the help for #trigger).

#trig {~|(%w) ~|~|(%w) ~|} {#echo %1 %2}
Reply with quote
Toshiki
Beginner


Joined: 20 Nov 2004
Posts: 14

PostPosted: Mon Dec 11, 2006 5:18 pm   
 
I tried that, but when iuse (%w) it adds the spaces in there. Sometimes those words are #'s as well, so i tried (%1) and that adds the spaces as well. The Variable is saved as "Power " or something along those lines. For some reason my origional post didn't put the spaces behind it. Sorry
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Mon Dec 11, 2006 5:28 pm   
 
Well, if it's important that you don't have the spaces, use %trim(%1). It really shouldn't be including them, though, that's bizarre.
_________________
Rorso's syntax colouriser.

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


Joined: 20 Nov 2004
Posts: 14

PostPosted: Mon Dec 11, 2006 6:05 pm   
 
Thanks man. I kinda tinkered with it for a bit and figured out that ~|(%a)*~| works
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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