Access to Command History

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

Access to Command History

Post by Iremud » Fri Jan 12, 2018 6:58 pm

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: 4723
Joined: Sat Mar 14, 2009 3:13 pm

Re: Access to Command History

Post by Vadi » Sun Jan 14, 2018 1:58 pm

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 » Sun Jan 14, 2018 9:35 pm

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: 4723
Joined: Sat Mar 14, 2009 3:13 pm

Re: Access to Command History

Post by Vadi » Mon Jan 15, 2018 5:12 am

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

Who is online

Users browsing this forum: No registered users and 3 guests