Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   How do you save a variable for a level? (https://forums.graalonline.com/forums/showthread.php?t=57942)

Evil_Trunks 03-05-2005 12:10 AM

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...

Andy0687 03-09-2005 08:33 AM

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?

Ajira 03-09-2005 03:02 PM

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


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

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