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


Joined: 02 Apr 2004
Posts: 5
Location: Australia

PostPosted: Fri Apr 02, 2004 11:51 pm   

command history
 
How do you make it so commands that are less than 3 characters long are added to the command history?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Apr 03, 2004 12:10 am   
 
This can not be adjusted, and there is no direct script control of what the history contains. So there really is no way to do that, but I could be wrong.
Reply with quote
Feed_Error
Newbie


Joined: 02 Apr 2004
Posts: 5
Location: Australia

PostPosted: Sat Apr 03, 2004 12:25 am   
 
hmmm sucks, such a basic option.
wanted to use !! as a macro to do last command.
hate having last command in command line.
Reply with quote
Hibio
Beginner


Joined: 19 Mar 2004
Posts: 22

PostPosted: Sat Apr 03, 2004 12:51 am   
 
You can always try to log your own commands then do the recall there, instead of using the buildin function...
Reply with quote
Feed_Error
Newbie


Joined: 02 Apr 2004
Posts: 5
Location: Australia

PostPosted: Sat Apr 03, 2004 1:27 am   
 
Perfect

#VAR lastCommand {}
#ONINPUT {(%*)} {#var lastCommand %1}
#KEY DEC {@lastCommand}

This is the kind of thing i did so that the decimal key on the keypad sent the last command i typed to the mud.
Thanks Hibio and Vijilante.
Reply with quote
Feed_Error
Newbie


Joined: 02 Apr 2004
Posts: 5
Location: Australia

PostPosted: Sun Apr 04, 2004 7:31 pm   
 
Turns out this is not so perfect.
Everything gets checked on oninout including macros (only want typed stuff to be on recall). also when you do command1;command2 only command2 gets added.

Pretty much want the !! functionality buy with everything typed into the input bar not just things >2 chars. Any more ideas?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Apr 04, 2004 10:28 pm   
 
Try using %lastinput or %lastin2 with you trigger. Other Predefined Variables that may be of use are %lastcom, %lastcom2, %lastcom3, and %action. I am quite certain that all of these are affected by trigger, alias, macro, etc processing so best I can say is play around with it until it works consistently. %lastinput is likely to be the best bet.
Reply with quote
Feed_Error
Newbie


Joined: 02 Apr 2004
Posts: 5
Location: Australia

PostPosted: Mon Apr 05, 2004 12:04 am   
 
Nope these dont work.
%lastinput:
The trigger becomes the last input

%lastin2:
only works once then the trigger becomes the last input

Could not get %lastcom to work.

Also found a bug with !!. It puts the last input into the input bar even if you have clear input selected.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Apr 05, 2004 2:42 am   
 
quote:
How do you make it so commands that are less than 3 characters long are added to the command history?

Give them 3-character aliases.
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