Access to Command History

Post Reply
Iremud
Posts: 2
Joined: Fri Jan 12, 2018 6:55 pm

Access to Command History

Post 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?

User avatar
Vadi
Posts: 4844
Joined: Sat Mar 14, 2009 3:13 pm

Re: Access to Command History

Post by Vadi »

The command variable stores the last sent command, but the history isn't accessible to Lua. What's the need?

Iremud
Posts: 2
Joined: Fri Jan 12, 2018 6:55 pm

Re: Access to Command History

Post 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

User avatar
Vadi
Posts: 4844
Joined: Sat Mar 14, 2009 3:13 pm

Re: Access to Command History

Post 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.

Post Reply