|
Tygerhart Novice
Joined: 04 Oct 2001 Posts: 43 Location: Canada
|
Posted: Tue Feb 28, 2006 9:32 pm
Alias/Button Help please. |
I'm hoping someone can help me here. Here's the situation...
On my MUD we have space flight. When one gets into a ship and starts it up, it starts a shell command and you control your ship that way. Now in order to use commands outside of the ship command shell (replying to a tell for instance), you'd have to type !reply This is just a test. where the normal command outside of the shell would be reply This is just a test. Now I have a button that toggles between commands I can use in the shell and outside of the shell and I created this alias...
Name: Reply
Value:
#if @SpaceBut=1 {~!reply}
#if @SpaceBut=0 {~reply}
Problem is that it works but I can't actually reply to anyone. In otherwords if the button is toggled on and I type this;
!reply This is a test.
it sends this;
!reply without the This is a test.
or if it's toggled off and I type this;
reply This is a test.
it sends this;
reply without the This is a test.
I'm stumped as how to fix this. Any help would be greatly appreciated.
Thanks bunches,
Tygerhart |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Feb 28, 2006 10:46 pm |
try using %-1 in your reply commands. I'm stumped as to why ZMud isn't sending the unused arguments like it should be, but I know %-1 will work.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Tygerhart Novice
Joined: 04 Oct 2001 Posts: 43 Location: Canada
|
Posted: Wed Mar 01, 2006 6:18 pm |
Thanks Matt!
Works perfectly now!
Tygerhart |
|
|
|
|
|