Frictional Games Forum (read-only)
Making areas change each time you enter them - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Making areas change each time you enter them (/thread-8502.html)



Making areas change each time you enter them - cook - 06-08-2011

Is it possible to do this without the use of keys? Like, is there any way I could set up a event to make a number change that's globally saved, and based on this number, a different set of callbacks are activated each time you enter the map - I know how to do the latter, but is saving a simple thing like a number possible globally(over numerous maps)?


RE: Making areas change each time you enter them - Apjjm - 06-08-2011

this should be what you are looking for:
Code:
void SetGlobalVarInt(string& asName, int alVal);
void AddGlobalVarInt(string& asName, int alVal);
int GetGlobalVarInt(string& asName);



RE: Making areas change each time you enter them - cook - 06-08-2011

Thanks a lot.