This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
set_global_property [2017/08/17 10:10] – justin | set_global_property [2020/04/27 14:37] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Sets a custom global property to the specified value. This property can then be referenced elsewhere, for example when evaluating a condition. When editing this function in the [[Script Editor]], the [[Variable Expression Builder]] provides an easy way to choose which value you'd like to assign to the property. | + | Sets a custom |
+ | ====Signature: | ||
<code python> | <code python> | ||
set_global_property(property_name, | set_global_property(property_name, | ||
Line 10: | Line 11: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
|property_name|Name of the property.|[[String]]|Yes| | |property_name|Name of the property.|[[String]]|Yes| | ||
- | |property_value|Value that will be assigned to the property.|[[String]], | + | |property_value|Value that will be assigned to the property.|[[String]], |
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | You can also store properties that are specific to a tile, object, or character. For more information, | + | You can also store properties that are specific to a [[tile]], [[object]], or [[character]]. For more information, |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
- | set_global_property(" | + | set_global_property(" |
</ | </ | ||
- | // | + | // |
<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' | + | 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' |
</ | </ | ||