User Tools

Site Tools


hpl2:amnesia:script_language_reference_and_guide:variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
hpl2:amnesia:script_language_reference_and_guide:variables [2012/12/30 01:38]
thegreatcthulhu
hpl2:amnesia:script_language_reference_and_guide:variables [2012/12/30 01:41]
thegreatcthulhu
Line 138: Line 138:
 {{ :​hpl2:​amnesia:​script_language_reference_and_guide:​variablescope_table.jpg?​direct |}} {{ :​hpl2:​amnesia:​script_language_reference_and_guide:​variablescope_table.jpg?​direct |}}
  
-<note tip>The functions which manipulate global game variables, SetGlobalVar//​Typename//​(),​ AddGlobalVar//​Typename//​() and GetGlobalVar//​Typename//​() [where //​Typename//​ can be either Int, Float, or String], provide a way for you to store and use a value in a storage location which is maintained for the duration of your game (or custom story). It can be accessed from more than one map script, and any changes in one map will be visible from the others. They are global //relative to the maps//​.</​note>​+<note tip>The functions which manipulate global game variables, SetGlobalVar//​Typename//​(),​ AddGlobalVar//​Typename//​() and GetGlobalVar//​Typename//​() [where //​Typename//​ can be either Int, Float, or String], provide a way for you to store and use a value in a storage location which is maintained for the duration of your game (or custom story). It can be accessed from more than one map script, and any changes ​made in one map will be visible from the others. They are global //relative to the maps//​.</​note>​
  
-<note tip>​Functions which manipulate local game variables, SetLocalVar//​Typename//​(),​ AddLocalVar//​Typename//​() and GetLocalVar//​Typename//​(),​ allow you to define and use storage locations for the current map script. They are visible from every part of the map script, once set for the first time. So they are //local to that particular map script// (cant use them from a different map), but are //global relative to functions// in that script. In this respect, they are similar to the script variables declared globally (outside any function, or code block).</​note>​+<note tip>​Functions which manipulate local game variables, SetLocalVar//​Typename//​(),​ AddLocalVar//​Typename//​() and GetLocalVar//​Typename//​(),​ allow you to define and use storage locations for the current map script. They are visible from every part of the map script, once set for the first time. So they are //local to that particular map script// (can'​t ​use them from a different map), but are //global relative to functions// in that script. In this respect, they are similar to the script variables declared globally (outside any function, or code block).</​note>​
  
 === Simultaneous Declarations === === Simultaneous Declarations ===
hpl2/amnesia/script_language_reference_and_guide/variables.txt ยท Last modified: 2012/12/30 01:44 by thegreatcthulhu