Storing data on items
badstrref
Member Posts: 124
How reliable is it to store data on items for multiplayer with SetLocalXXX functions , is there any limitation? is it possible to loose data in any way? i know that tag / Name / Description workaround can do it (with core string+ getstringleft / right & such)... but thats bit dirty. Thanks for any light on this subject
0
Comments
There are data base solutions. Alternatively, the description workaround comes as a package now:
https://neverwintervault.org/project/nwnee/script/simple-database-free-persistent-storage
i'll check that system soon
thank you
Variables stored on the PC are lost on logout in multiplayer (or at least after a server reset).
Things like location and object of course don't work and you have to do other things to store those. But for the basic types (int, float, string) this is a fine way to store PC persistence.
I think proleric may be thinking of using the skin to store these and, by default, enforce legal characters deletes the skin on login. So in that way you can lose all your persistence. I disable ELC and use the PC skin for a good percentage of my PC related persistence.
As far as I know localvault is a problem because people can cheat. Although, I did see a post somewhere recently about losing variables on items in localvault so maybe there is something else to that. I've never used it that way...