LUA V2 new function save.Slotisfree()

Started by gramps

gramps Lv 1

Suggest a new LUA V2 function approximately like this:

Function: boolean save.Slotisfree(integer slot)
Description: true if there is presently nothing saved to the Quicksave slot. (Range 1 to 100)

By the way, since save.Quickload()is a void function, if you feed it a slot with no previous save in it there doesn't seem to be a way for the LUA V2 recipe to learn this and print out the "Nothing in slot #" message you get in the game using Ctrl-1, etc. Of course you can print() a warning if the score doesn't change. I don't know if this is a bug or if it's worth worrying about.

By the way ^2 … would it be too difficult to start up a Feedback topic "Game:Recipes" ?

Timo van der Laan Lv 1

Because all saves are now also present as files so are available I suppose in a second recipe, I would suggest you take a look at my DRW, the position stack module. Easy to change it so it will give back the position when you do PushPosition.