Access to Command History
Access to Command History
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
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
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
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.