User Tools

Site Tools


set_global_property

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
set_global_property [2020/04/27 14:34] justinset_global_property [2021/04/21 18:51] (current) justin
Line 19: Line 19:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-set_global_property("keys", global.property["keys"] + 1)+set_global_property("keys", global.property["keys"] + 1);
 </code> </code>
 //Results:// The [[global_properties|global property]] "keys" (a counter being used to track the number of keys collected) is incremented by one. //Results:// The [[global_properties|global property]] "keys" (a counter being used to track the number of keys collected) is incremented by one.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Set Global Property** function to store and keep track of game-level information such as the current chapter/act of the story, the player's score, or custom statistics.+Use the **Set Global Property** function to store and keep track of game-level information such as the current chapter/act of the story, the player's score, or other custom statistics.
 </WRAP> </WRAP>
  
set_global_property.1588023286.txt.gz · Last modified: 2020/04/27 14:34 by justin