 |
ardwyck Newbie
Joined: 01 Oct 2010 Posts: 3
|
Posted: 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] |
|
|
 |
complex Apprentice
Joined: 12 Apr 2004 Posts: 134 Location: USA
|
Posted: 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> |
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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)
|
|
|
 |
ardwyck Newbie
Joined: 01 Oct 2010 Posts: 3
|
Posted: 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.
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Fri Oct 01, 2010 11:23 pm |
You mean from the command line? The package editor is preferable.
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
 |
ardwyck Newbie
Joined: 01 Oct 2010 Posts: 3
|
Posted: Tue Oct 05, 2010 7:21 pm |
got them to work. the enable box's keep getting unchecked for some reason.
|
|
|
 |
Teibidh Beginner
Joined: 09 Nov 2002 Posts: 14
|
Posted: 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.
|
|
|
 |
|
|