Is it OK to store local variables on players on a servervault server? And is it okay to store them on items on the same server (in players inventory)?
If not, why?
Modifié par Xardex, 24 mai 2011 - 10:25 .
Modifié par Xardex, 24 mai 2011 - 10:25 .
Modifié par Xardex, 25 mai 2011 - 02:05 .
This could be any one (or more, I suppose) item in the character's inventory. However, to make it most effective, you would want to make it undroppable. Then, you store Local variables on the item. These variables will remain even through server resets. It's a VERY useful tool, since from what I know it is much faster to Set and Get variables from an item than it is to use an actual database. Just be wary not to set too many variables on an object, as it can slow things down a bit. So far, I have set about 10 different variables this way per item, and it works fine.Xardex wrote...
Thanks for the info, but what exactly do you mean by "database object"?
oh yes sure new maxrock hook for preexit ;)its in nwnx_funcsXardex wrote...
Thanks for the info, but what exactly do you mean by "database object"?
By the way, you can set variables and stuff on PC when they leave with nwnx_funcs, if someone craves for that function..
(Or was it nwnx_events? I cant remember)