|
i8890321 Newbie
Joined: 28 Aug 2008 Posts: 3
|
Posted: Sat Sep 06, 2008 8:24 pm
questions about alias |
here's the situation:
my input on command line "ph man",the alias send "punch man" to mud and turn off a trigger named "test" (that is #T- test)
when i input command line "ph woman",the alias send "punch woman" to mud and turn off a trigger named "test" (that is #T- test)
notice that the target is not fixed , can be any name the above cases are man and woman
sorry, i am not familiar to the alias on zmud, can anyone do that for me? |
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: Sat Sep 06, 2008 8:52 pm |
Code: |
#alias ph {punch %1}
|
Where %1 corresponds to what you type after "ph".
Such like your examples.
Hopefully thats what you're after. |
|
_________________ The Proud new owner of CMud.
--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
-------------------------------- |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Sep 06, 2008 11:37 pm |
%1 is sufficient if all targets will only have one word. If there's more than one word, %1 will only send the first one and the result will probably be an error from the game. Use %-1 to fix, as %-1 holds everything from the first word all the way to the last word sent to the alias.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|