What I’m searching for is a script to save and load properties from a file (but than in a dynamically way).
The file could look like this:
[TABLE=“class: outer_border, width: 500”]
health = 10
coins = 670
music = True
soundFX = False
pizza = -69
What I want the script to do is this:
If I want to get the value ‘pizza’ the script will search in the file until he finds ‘pizza = …’ and then get the value what is behind the ‘=’
So that means it doesn’t matter on which line of the file ‘pizza = -69’ is written.
What I also want the script to do is this:
If I want to save the value ‘soundFX’ to ‘True’ the script will search until he finds ‘soundFX = …’ and then replace the current value to the new value.
So that means I don’t have to save EVERY value again to the file but just replace 1 value.
I know another script that can save and load things but it is not like I would love to have it.
I know this is a pretty dynamic script that I want,
but can you help me with this?