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
acaykath
Wanderer


Joined: 03 Aug 2005
Posts: 84

PostPosted: Mon Jun 29, 2009 12:38 pm   

How to 'trigger' off command sent
 
Okay, there is currently a crash bug in the mud I play associated with the clan setting not having a proper default. I would like to make a trigger or something that will essentially trigger off what I type, but aliases do not like wildcards, especially in the beginning. Is there a good way to do this:

Code:

(command sent)
({north|east|south|west|up|down}) dig %d

(Actions)
%1
clan noclan


Is there an easy way to do this? or do I have to make six different aliases?
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Mon Jun 29, 2009 2:23 pm   
 
I can't tell what you are doing in that, but you need to make a trigger then change the type to Command Input. It will then trigger off what you enter on the command line.

So for example a regex command input trigger would be like:
Code:
^(north|south|east|west|up|down) dig \d+$


Value:
Code:
clan noclan



You don't need to put the %1 it still sends the command unless you put #noinput in the value or unless you want to do something with %1 other than just send it.

So when you type north dig 1 it will send north dig 1 and also send clan no clan.
Reply with quote
acaykath
Wanderer


Joined: 03 Aug 2005
Posts: 84

PostPosted: Tue Jun 30, 2009 1:32 am   
 
Oh, It works, (when I have parsing on) thanks.
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