Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-05-2005, 12:10 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
How do you save a variable for a level?

In old GScript you had level. vars which seemed to keep information for the current level, but in new GScript a level. var does not act the same.

It's like the information is being saved to the "level" object, but this information is not cleared when the level is updated. This causes some problems...
__________________

Reply With Quote
  #2  
Old 03-09-2005, 08:33 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by Evil_Trunks
It's like the information is being saved to the "level" object, but this information is not cleared when the level is updated. This causes some problems...
I am not a GS2 guru, and I wont pretend to know even very much about it, because I dont use it often.

However, I was reading your problem, and was thinking, mabye it IS handled diffrently now, and onCreated() you have to clear the data from the level object yourself?

Even if it turns out to be a slight bug, and level objects should clear on level update, that should help temp fix your problem?
__________________
Reply With Quote
  #3  
Old 03-09-2005, 03:02 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Evil_Trunks
In old GScript you had level. vars which seemed to keep information for the current level, but in new GScript a level. var does not act the same.

It's like the information is being saved to the "level" object, but this information is not cleared when the level is updated. This causes some problems...
I wouldn't even want level vars being cleared on update level. o_O
__________________
Liek omigosh.

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 09:09 PM.


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