Forum Overview
::
Wasteland 2
::
Wherein I make a load of assumptions
[quote name="Entropy Stew"][quote name="Ice Cream Jonsey"]I *think* the Bard's Tale handled this by giving each character an array that had elements that corresponded to each possible weapon, armor and so forth in the game. So Snake Vargas would have an array called Possessions[] or whatever, and if Possesions[10] was equal to 2, then he had 2 long swords. That is my GUESS. It is not based on looking at any source.[/quote] Sounds like a good guess. I took a look at the Hugo manual - seems like this should work. Could you maybe use that Possesions array as the pickled hero state, and use the normal object system for active characters? You could have a CurrentPossessions property routine in the hero class which walks the object tree of a hero and returns an encoded array representing it, which gets saved into Possessions on pickling, and restored on rotation back into the active party. I don't know if that solves the static object issue, but I assume some kind of object pool for the objects to get allocated from and released to (I'm assuming we don't care about object IDs, just that we have any instance) would work. -/ES/-[/quote]