Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-04-2006, 02:49 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
savevars: Excluding predefined variables?

Is it possible to exclude the predefined variables, like timeout and the such, from what savevars saves?
The useless crap makes it look so messy. :/
Reply With Quote
  #2  
Old 01-04-2006, 06:09 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Another good idea/question by yen! These stupid predefined variables make my mudaccounts files look gross
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 01-05-2006, 01:21 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Same problem, they're making my archetypes look icky.
Reply With Quote
  #4  
Old 01-06-2006, 02:10 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Change the variable name:
PHP Code:
this.items.shortsword=blah
this
.items.skill_amplify1=moreblah
this
.items.savevars(Oi!); 
Would this not work for your case? I have used it before...
__________________
Reply With Quote
  #5  
Old 01-06-2006, 02:38 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
It automatically saves the NPC's timeout, joinedclasses, ect.
Reply With Quote
  #6  
Old 01-06-2006, 02:45 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Yen
It automatically saves the NPC's timeout, joinedclasses, ect.
Is it really a large problem? After all, that is what savevars() is meant to do; save the variables of the object, not just created variables.
__________________
Skyld
Reply With Quote
  #7  
Old 01-06-2006, 02:49 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Yeah, but for MUD Libraries, it makes the .arc look icky.
Not that anyone should be reading a .arc in Wordpad, but still.
Reply With Quote
  #8  
Old 01-06-2006, 02:57 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Yen
Not that anyone should be reading a .arc in Wordpad, but still.
I rest my case.
__________________
Skyld
Reply With Quote
  #9  
Old 01-06-2006, 03:01 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
>=O Hey, those extra bytes add up!
Reply With Quote
  #10  
Old 01-06-2006, 03:08 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Yen
>=O Hey, those extra bytes add up!
Just because they do not benefit you does not mean they should be removed.
__________________
Skyld
Reply With Quote
  #11  
Old 01-06-2006, 03:10 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Not removed, just an option to disclude them. o-o'
Reply With Quote
  #12  
Old 01-06-2006, 03:14 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Yen
Not removed, just an option to disclude them. o-o'
Still seems pointless. The functionality is fine as it is now.

If your Graal server had a 1.44mb storage capacity for all your files, then fine, but it doesn't.
__________________
Skyld
Reply With Quote
  #13  
Old 01-06-2006, 03:16 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
-Bites Skyld.-
Reply With Quote
Reply


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 10:04 PM.


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