- Joined
- Dec 1, 2010
- Messages
- 346
Hey, I'm trying to implement a save/load system for my current project. The goal is to save two integer values:
The custom integer looks like this. the max value is 8388607 (no negatives)
upon saving it should add the current value of saveInt[playerNumber] and the current lumber into the code and upon loading it should set the lumber and saveInt[playerNumber] variable to the values from the code.
I'm aware that there are systems like codeless save/load And others. I'm not well versed in jass. I don't need any loading related to heroes and honestly, i couldn't wrap my head around editing these systems to work for just integers. especially since my custom integer has a lot of digits.
I've been looking for easier systems to alter and found the one i added as an attachment here. However when i tried editing out the hero parts i just ended up breaking it too.
Does anyone know if there's systems around that are easier to use for my purpose?
I really just need these two integers. to be set. (and obviously the code should be player specific based on the name)
My knowledge of Jass however like i said is 0.
If anyone has some experience with using any of these systems and could point me into the right direction that would be appreciated. Or if someone knows of a system that's more similar on it's baseline to what i need.
- An integer for the player's lumber
- A custom integer
The custom integer looks like this. the max value is 8388607 (no negatives)
-
Set VariableSet saveInt[1] = 8388607
upon saving it should add the current value of saveInt[playerNumber] and the current lumber into the code and upon loading it should set the lumber and saveInt[playerNumber] variable to the values from the code.
I'm aware that there are systems like codeless save/load And others. I'm not well versed in jass. I don't need any loading related to heroes and honestly, i couldn't wrap my head around editing these systems to work for just integers. especially since my custom integer has a lot of digits.
I've been looking for easier systems to alter and found the one i added as an attachment here. However when i tried editing out the hero parts i just ended up breaking it too.
Does anyone know if there's systems around that are easier to use for my purpose?
I really just need these two integers. to be set. (and obviously the code should be player specific based on the name)
My knowledge of Jass however like i said is 0.
If anyone has some experience with using any of these systems and could point me into the right direction that would be appreciated. Or if someone knows of a system that's more similar on it's baseline to what i need.