Thanks Chris, which Save script can I edit/adapt to add a 'delete save' function to my Save LIst? Adding to the options of 'save. load, import'? Thanks
Thanks Chris, which Save script can I edit/adapt to add a 'delete save' function to my Save List? Adding to the options of 'save. load, import'? It would be great for the player to have the option to delete a save easily from the pre saved.
Use a SavesList element set to "Load", uncheck Load when click on?, and assign an ActionList when click that has an Integer parameter that you can then auto-set to the clicked Save slot. You can then use this parameter in the above Action to delete the clicked save.
Hi Chris, would this element be in the original Save menu? Alongside the save savelist? Plus, could you deep dive into the below more for me?
'an Integer parameter that you can then auto-set to the clicked Save slot. You can then use this parameter in the above Action to delete the clicked save.'
So, ideally the saves list has a delete saves button, which when pressed changes 'new save' text on the save list to 'delete save', then they can click and it will delete the save. See screenshots:
This way is nice, a delete button is dark until you click on a filled save, then the delete button becomes lit up to use, you click delete and the save deletes becoming empty slot again.
If you uncheck Load when click on? / Save when click on? in your SavesList element, AC will no longer process the clicked slot. It will, however, run the assigned ActionList and set the Integer parameter to the clicked slot value.
See this tutorial for guidance on how the clicked slot index can be sent to a parameter.
Inside the ActionList, you can use the Save: Save or load Action to manually load/save a file, or the Save: Manage saves Action to delete a file. You can use a Global Boolean variable named e.g. "In Delete Mode" to determine which to run, with this variable's value toggled by clicking the Delete button.
Also, is there any way to have a saves list respond to a chaneg cursor when over option?
Comments
The Save: Manage saves Action has an option to delete a save file.
Thanks Chris, which Save script can I edit/adapt to add a 'delete save' function to my Save LIst? Adding to the options of 'save. load, import'? Thanks
Thanks Chris, which Save script can I edit/adapt to add a 'delete save' function to my Save List? Adding to the options of 'save. load, import'? It would be great for the player to have the option to delete a save easily from the pre saved.
You don't need to edit any script.
Use a SavesList element set to "Load", uncheck Load when click on?, and assign an ActionList when click that has an Integer parameter that you can then auto-set to the clicked Save slot. You can then use this parameter in the above Action to delete the clicked save.
Hi Chris, would this element be in the original Save menu? Alongside the save savelist? Plus, could you deep dive into the below more for me?
'an Integer parameter that you can then auto-set to the clicked Save slot. You can then use this parameter in the above Action to delete the clicked save.'
It depends on how exactly you want it to work. Do you have a mockup / screenshot to show where/how you allow the player to delete saves?
So, ideally the saves list has a delete saves button, which when pressed changes 'new save' text on the save list to 'delete save', then they can click and it will delete the save. See screenshots:
https://www.dropbox.com/scl/fi/w2oyvykxmjvxbsek1kppk/Delete-Saves.png?rlkey=vqzuhovfq0u6j47jxsh6kvywd&st=2v5ytjlz&dl=0
This way is nice, a delete button is dark until you click on a filled save, then the delete button becomes lit up to use, you click delete and the save deletes becoming empty slot again.
https://www.dropbox.com/scl/fi/icxpir6j2iibpjfaq83t8/Delete-Saves1.png?rlkey=e5m4h84l7yupuynioshqxmxcx&st=bx0ci4bq&dl=0
Also, is there any way to have a saves list respond to a chaneg cursor when over option?
If you uncheck Load when click on? / Save when click on? in your SavesList element, AC will no longer process the clicked slot. It will, however, run the assigned ActionList and set the Integer parameter to the clicked slot value.
See this tutorial for guidance on how the clicked slot index can be sent to a parameter.
Inside the ActionList, you can use the Save: Save or load Action to manually load/save a file, or the Save: Manage saves Action to delete a file. You can use a Global Boolean variable named e.g. "In Delete Mode" to determine which to run, with this variable's value toggled by clicking the Delete button.
Not currently.
Hi Chris, do I have this right? It all seems to work, but sometimes I need to click another save button to delete the save? See video here:
https://www.dropbox.com/scl/fi/buapt7dqdlllx46rdhrtu/DeleteSaves.mov?rlkey=pg2nuqx1l4nyn1553irkcf44j&st=c6288841&dl=0
Does this way of doing delete saves seem a good way to you? THANKS
Your clicked parameter is not being stored as the slot index, but the slot ID, which are not always the same.
Change the Save: Manage saves Action's Save to delete to Set Save ID.