I am having a problem with Deadron's CharacterHandling Library. I use a clothing system in my game. When I put on clothes and save, then exit and log back in, the clothes can't be removed. Help me Please!
Tman1114
ID:158197
Oct 11 2009, 8:25 am
|
|
Oct 11 2009, 8:32 am
|
|
overlays is a super-finicky list. Your best choice is just to not save it at all, and then reconstruct it when you load the mob. Like so:
|
In response to Garthor
|
|
Here's my code for your reference.
Clothes: obj Logout: mob |
In response to Tman1114
|
|
I guess you'd have to also do TakeOff() for all the items you're wearing as well before saving.
|
In response to Garthor
|
|
Then ow would I put them back on when the save is loaded?
|
In response to Tman1114
|
|
I use a manual list for holding "overlays" and another for "underlays" that I want saved with the player. When the player saves, however, his/her overlays/underlays lists are nulled out and the actual saving occurs. After that, a proc that reconstructs the player's overlays and underlays is called.
mob/var/list/Overs = list() |
In response to Spunky_Girl
|
|
I adapted that code to fit my system and it works perfectly.
Thanks! |