Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Wed Mar 01, 2006 6:18 pm   
 
Thanks Matt!

Works perfectly now!

Tygerhart
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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