Frictional Games Forum (read-only)
[SCRIPT] Area script. Help needed ! - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Area script. Help needed ! (/thread-13163.html)

Pages: 1 2


RE: Area script. Help needed ! - Your Computer - 02-08-2012

(02-08-2012, 06:25 AM)Ninami Wrote: I guess that exists? So it's theoretically possible?

It's been done before, and we're talking about global map variables. These variables get saved in the game session and therefore are accessible to all maps (scripts).


RE: Area script. Help needed ! - Ninami - 02-08-2012

Where would I find any of these "Global map variables"? I've been getting help from Frictionalgames wiki for some time now, haven't seen anything about global map variables.


RE: Area script. Help needed ! - Your Computer - 02-08-2012

(02-08-2012, 07:37 AM)Ninami Wrote: Where would I find any of these "Global map variables"? I've been getting help from Frictionalgames wiki for some time now, haven't seen anything about global map variables.

Relative functions: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#variables
There's also an article in the wiki about it, though slightly lacking in its explanation: http://wiki.frictionalgames.com/hpl2/tutorials/script/localandglobalvariables

I like to make a distinction between script variables and map variables, as these are two separate, though similar, things. The wiki article on variables doesn't necessarily make that distinction.