Forum Overview :: Wasteland 2
 
yw! by Entropy Stew 07/25/2012, 10:39pm PDT
Ice Cream Jonsey wrote:

... OK, I can't have and save a local array, but I *can* just iterate through his Possessions[] array and dump the elements of it to disk. And then populate his PossessionsArray[] when he re-joins the party. Hm.


I spent quite awhile overthinking about that and thought the the array would need to have some kind of event listener updating it whenever something moved to or from the hero's inventory to keep it up to date, but it really only matters whats in there at save and load.

-/ES/-
PREVIOUS NEXT REPLY QUOTE
 
Saving characters and character items by Ice Cream Jonsey 07/24/2012, 10:56am PDT NEW
    damn that seems backwards by jeep 07/24/2012, 9:46pm PDT NEW
        Re: damn that seems backwards by N 07/25/2012, 9:50pm PDT NEW
        Re: damn that seems backwards by Ice Cream Jonsey 07/25/2012, 9:54pm PDT NEW
    Wherein I make a load of assumptions by Entropy Stew 07/25/2012, 4:36pm PDT NEW
        Re: Wherein I make a load of assumptions by Ice Cream Jonsey 07/25/2012, 10:01pm PDT NEW
            yw! by Entropy Stew 07/25/2012, 10:39pm PDT NEW
                Also by Entropy Stew 07/25/2012, 10:52pm PDT NEW
                    Re: Also by Ice Cream Jonsey 07/27/2012, 6:17am PDT NEW
    Multi-dimensional array? by Flack 07/25/2012, 5:30pm PDT NEW
        Re: Multi-dimensional array? by Ice Cream Jonsey 07/25/2012, 9:48pm PDT NEW
 
powered by pointy