playMaker

Author Topic: Save, Load, and Delete all global variables at once  (Read 246 times)

misterjuly

  • Sr. Member
  • ****
  • Posts: 343
Save, Load, and Delete all global variables at once
« on: May 08, 2024, 07:40:03 PM »
Hello,

I would like to be able to Save, Load, and Delete all global variables at once (respectively) with the push of a button. I know using non-globals is better, but I'm too far gone too change. I do have easy save, so if that would make it easier that is an option. Thanks!


stigma

  • Full Member
  • ***
  • Posts: 193
Re: Save, Load, and Delete all global variables at once
« Reply #1 on: May 09, 2024, 11:53:53 AM »
do you want to delete the variables, or set them to zero?

misterjuly

  • Sr. Member
  • ****
  • Posts: 343
Re: Save, Load, and Delete all global variables at once
« Reply #2 on: May 09, 2024, 12:06:13 PM »
I would like to set them back to their initial values, as if you just deleting a save file and are starting a new game.

stigma

  • Full Member
  • ***
  • Posts: 193
Re: Save, Load, and Delete all global variables at once
« Reply #3 on: May 10, 2024, 03:30:33 AM »
Either you destroy your file with Delete Data Pool, or you reset your variables one by one.