I've got a reasonably easy question i think, I'd like to implement a sort of extra survivability trait in my mod, i'd like it to function in a similar way that honor does in that it certain actions give or lower the players survivability trait.
There are two ways I think I could do this but im not 100% sure on which is the best (or if it even matters).
The first method I had was to create a new troop slot and titled it survivability - this seems to work fine at the moment but I've not tested it over an extended period of time and Im worried that it will eventually get lost or deleted for some reason - i want this value to be something which follows the player around there entire game. and only changes by the players actions/decisions
The second method i think i could do would be to simply use a global variable, I see that honor is implemented by simply using a global variable - would it be better if I were to use this instead? It'd be simpler I think.
Is one method better than the other or does it not make any difference?
There are two ways I think I could do this but im not 100% sure on which is the best (or if it even matters).
The first method I had was to create a new troop slot and titled it survivability - this seems to work fine at the moment but I've not tested it over an extended period of time and Im worried that it will eventually get lost or deleted for some reason - i want this value to be something which follows the player around there entire game. and only changes by the players actions/decisions
The second method i think i could do would be to simply use a global variable, I see that honor is implemented by simply using a global variable - would it be better if I were to use this instead? It'd be simpler I think.
Is one method better than the other or does it not make any difference?