This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
set_entity_property [2017/05/12 16:42] – justin | set_entity_property [2017/08/17 10:10] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Sets a custom property for an entity to the specified value. This property can then be referenced elsewhere, for example when evaluating a condition. | + | Sets a custom property for an entity 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. |
<code python> | <code python> | ||
Line 12: | Line 12: | ||
|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%> | ||
+ | You can also store general, game-wide properties that are not specific to a tile, object, or character. For more information, | ||
+ | </ | ||
====Example: | ====Example: |