Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-13-2006, 07:23 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
this.foo.bar=""; does not work because its not ACTUALLY a subvariable.. its really just a flag with a period in it. the variable type() == 0 so its not an object with subvariables.

I used the periods like this without making it a TStaticVar() because I need them to be saved in savevars.

If you make them TStaticVar() then I can not just do this.savevars(path/to/file); to save all the so-called subvariables.. I would have to go to each individual subvariable and do it.. which I do not want to because I am using savevars() to backup all the data since its in a DBNPC and they frequently mess up ie: when servers crash.

What you COULD do to fix this problem would be to make a destroy() function for TGraalVar that would function just like the destroy() function in objects.

ie:
this.foo.destroy();

would remove this.foo.bar.test="true"; and all other variables beneath it.

Since all these things show up in getvarnames() and such, it should not be a problem.

But I REALLLLLY need this in order to procede with making my database. I am at a stand still now.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.