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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Insurection
Newbie


Joined: 06 Jan 2014
Posts: 2

PostPosted: Fri Feb 17, 2017 6:33 pm   

Triggers not working correctly.
 
For some reason I can't get triggers to work correctly.

In the past I would use * and %1.

For example:

The trail to your prey leads *.

my execute command would be: %1
(this should move me in the direction of my prey)

Cmud does see the pattern and tries to execute, but sends nothing. All of my triggers that don't pass any words or digits work.
I haven't played with triggers in a few years but I remember this working. Did some syntax change? Any help is appreciated.
Reply with quote
mikeC130
Apprentice


Joined: 03 Jul 2006
Posts: 110

PostPosted: Fri Feb 17, 2017 7:55 pm   
 
In order to capture the text in the trigger, you need to surround it with parentheses.

The trail to your prey leads (*).
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Feb 18, 2017 12:12 am   
 
Also you should use a command of #SEND {%1} rather than just %1.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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