Lugoun
Joined: 18 May 2007 Posts: 36
|
Posted: Fri May 18, 2007 1:01 Post subject: Questions related to SetPersistent |
|
|
I do have some questions related to SetPersistent (listing SetPersistentString function here):
void SetPersistentString(object oObject, string sVarName, string sValue, int iExpiration = 0, string sTable = "pwdata")
Question#1 - Looking at the code, it appears that any non-player object that you wish to set persitent data 'on' will be recorded in the DB based in part on its tag. Does that mean that any non-player objects with identical tags will also have the same persistent variable(s) data?
Question #2 - The functions give the scripter the option to set the sql table, and the default is "pwdata". If we try to write data to a table that does not already exist, will it be added to the db? _________________ Lugoun
www.hotta-rpg.org |
|