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
Delphi03
Novice


Joined: 20 Aug 2004
Posts: 37
Location: Illinois

PostPosted: Sat Feb 12, 2011 6:39 pm   

[Solved] Trigger Question
 
Is it possible to have a trigger "call" a macro in response to matching its pattern?

I did some looking through the site/forums as well as the help and didn't see any way explicitly called out other than seeing that #T+ and #T- should/could be able to call something of the "type" "macro", but I wasn't able to get it to work.


Last edited by Delphi03 on Sat Feb 12, 2011 9:25 pm; edited 1 time in total
Reply with quote
hogarius
Adept


Joined: 29 Jan 2003
Posts: 221
Location: islands.genesismuds.org

PostPosted: Sat Feb 12, 2011 8:42 pm   
 
If the script for the macro is always the same, just copy the script for the macro into the script for the trigger.
Reply with quote
Delphi03
Novice


Joined: 20 Aug 2004
Posts: 37
Location: Illinois

PostPosted: Sat Feb 12, 2011 8:56 pm   
 
The script can change from character to character.

Additionally, there are times I do not want automation and other times when I would prefer it.

I'm just looking for a way to avoid having to make changes to two separate locations while also providing a quick keybinding when I need to run it manually.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Sat Feb 12, 2011 9:06 pm   
 
Make an alias. Have both the macro and the trigger call the alias. Define the alias within each character's session.
Reply with quote
Delphi03
Novice


Joined: 20 Aug 2004
Posts: 37
Location: Illinois

PostPosted: Sat Feb 12, 2011 9:25 pm   
 
That works like a charm.

Thank you.
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