I just had an idea that I wanted opinions on. Unit indexing is when each unit is given a custom value, but I had this player indexing idea for RPGs or maps where you control one hero/unit. Basically you create variables that have the same number of arrays as players in the the game and you save data using the player number.
So something like unit kills could be saved like this:
Does this make sense and would it be efficient?
So something like unit kills could be saved like this:
-
Set Unit_Kill(Owner of killing Unit) = [Unit_Kill(Owner of killing Unit) + 1]
Does this make sense and would it be efficient?