This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
set_global_property [2017/05/14 15:31] – external edit 127.0.0.1 | set_global_property [2021/04/21 18:51] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Sets a custom global property to the specified value. This property can then be referenced elsewhere. | + | Sets a custom |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | set_global_property(" | + | set_global_property(property_name, property_value) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |" | + | |property_name|Name of the property.|[[String]]|Yes| |
- | | " | + | |property_value|Value that will be assigned to the property.|[[String]], [[Number]], [[Boolean]]|Yes| |
+ | |||
+ | <WRAP center round info 100%> | ||
+ | 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 ... | + | 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' |
</ | </ | ||