Page 1 of 1

Access to Command History

Posted: Fri Jan 12, 2018 6:58 pm
by Iremud
I am curious I can't find a reference to it anywhere but mudlet has a command history that can be accessed by using the up arrow is there a way to access that history programatically? So you can parse through it?

Re: Access to Command History

Posted: Sun Jan 14, 2018 1:58 pm
by Vadi
The command variable stores the last sent command, but the history isn't accessible to Lua. What's the need?

Re: Access to Command History

Posted: Sun Jan 14, 2018 9:35 pm
by Iremud
Lots of things can cause actions to fail so being able to go back in your command history to check commands and determine what failed and resend it automatically

Re: Access to Command History

Posted: Mon Jan 15, 2018 5:12 am
by Vadi
Not all commands mean something will get sent to the game - some might just be aliases. This way would be quite error prone. I'd recommend tracking the system commands you send instead individually, that's what I do in my system and it is pretty foulproof.