View previous topic :: View next topic |
Author |
Message |
CutterShane
Joined: 25 May 2005 Posts: 5
|
Posted: Sun Jun 05, 2005 4:14 Post subject: SetPersistentObject Not Storing Local Variables |
|
|
When I save and then restore creatures (specifically henchmen) using Set/GetPersistentObject, it doesn't appear that any local variables are stored (or they aren't retrieved; same effect).
If the creatures are converted to a BIC before being stored, doesn't this mean that the BIC can't keep the locals? But APS claims to save an exact copy of the object.
What's going on? |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Jun 05, 2005 10:02 Post subject: |
|
|
NWNX stores what it retrieves from NWN. The actual creation of the binary data for items or creatures is not done by NWNX. So if local variables are not stored on creatures, it is because NWN does not put them into the binary data at first.
Btw, I know that variables are stored on items at the least. _________________ Papillon |
|
Back to top |
|
|
CutterShane
Joined: 25 May 2005 Posts: 5
|
Posted: Sun Jun 05, 2005 17:27 Post subject: |
|
|
So ... does anybody know if local variables are stored on creatures by NWN during an SCO/RCO? |
|
Back to top |
|
|
JollyOrc
Joined: 15 May 2005 Posts: 10
|
Posted: Mon Jun 06, 2005 9:23 Post subject: |
|
|
no. We're circumventing this by storing the variables on a hide on the creatures. |
|
Back to top |
|
|
|