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
ardwyck
Newbie


Joined: 01 Oct 2010
Posts: 3

PostPosted: Fri Oct 01, 2010 6:35 pm   

Alias
 
I have CMud but I can't either the alias's or Triggers to function. According to the help files I have entered the properties correctly. Any advice?

I keep them quite simple. here is an example:

Name: heron

forms off sts
forms def sts

If the weave is to be fo others, for example a weave up, I set it up like this:

Name: wu

weave 65 'Advanced Shield' %1

I am using CMud version 2.37.

Alias and triggers are both checked under options. I am getting flustrated.

Thank you[/b]
Reply with quote
complex
Apprentice


Joined: 12 Apr 2004
Posts: 134
Location: USA

PostPosted: Fri Oct 01, 2010 7:28 pm   
 
I can not understand exactly what you are asking, but...

An alias is a "short name" for a longer command, so lets say you want to make an alias with the name heron, then you are telling Cmud that from now on when you type heron you want something else to happen. Lets pretend you want the command heron to send "forms off sts" to the mud, then you would type the following command into your bar

Code:

#AL heron {forms off sts}


And from now on when you type heron and hit enter it will expand to the command forms off sts, which will be sent to the mud. I can tell that you want more to happen, but you need to reword your post a little for me to understand what you are trying to do.

In the case of a trigger, you need to enter the pattern that you want matched, and then what you want to happen when that pattern is matched. The pattern that will try to be matched is any output from your mud, not a command that you enter. Since I can not tell what you are trying to accomplish here I will just give you a generic example.

Lets say you want to cast the spell 'Advanced Shield' on someone when they ask you. Now I do not know exactly how this would look in your mud, but I imagine it would look something like
Code:

Complex says 'Cast Advanced shield on me'


Then to match this you would create a wild card that would match the name %w,
Code:

#TRIGGER {%1 says 'Cast Advance shield on me}{weave 65 'Advanced Shield %1}


And from now on when anyone says the exact phrase "Case Advance shield on me." it will trigger the response of
Code:

weave 65 'Advanced Shield <the name of the person who said it>

from you. If you you would like me to get more specific, then I need a better explanation of what you are trying to do.
_________________
<Clever text here>
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri Oct 01, 2010 9:32 pm   
 
Definitely going to need more information before I can help, and posted in a bit more understandable of a manner. Did you want the "heron" alias to toggle those two commands? Are we creating a weave alias or trigger, can its parameter change? (i.e. Is the number anything other than 65, the and the spell anything other than advanced shield? I assume %1 represents at least 1 variable parameter, or perhaps you want a trigger for this as Complex sugggests)
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
ardwyck
Newbie


Joined: 01 Oct 2010
Posts: 3

PostPosted: Fri Oct 01, 2010 11:07 pm   
 
I need to know what to type so Alias's and triggers will work. I tried using the same method as I used in ZMud but it doesn't work. Basically that's it.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri Oct 01, 2010 11:23 pm   
 
You mean from the command line? The package editor is preferable.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Oct 04, 2010 1:03 pm   
 
The command line for creating aliases and triggers should be essentially identical in Cmud as in Zmud. If you are having trouble, please give us the exact text that you are typing in the command line.
Reply with quote
ardwyck
Newbie


Joined: 01 Oct 2010
Posts: 3

PostPosted: Tue Oct 05, 2010 7:21 pm   
 
got them to work. the enable box's keep getting unchecked for some reason.
Reply with quote
Teibidh
Beginner


Joined: 09 Nov 2002
Posts: 14

PostPosted: Thu Oct 07, 2010 10:34 am   
 
In the package editor there are options for Enable on Connect and Disable on Connect, make sure the Disable one isn't checked.
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