Difference between revisions of "Property Reference"
Added a section on conditional properties
imported>ThreeTen (→Auto Read-Only Property: Updated what AutoReadOnly properties really are. Which is not a baked in value that cannot be changed, but-like a constant GlobalVariable, can be modified outside of the game and update without the need for a clean save.) |
imported>Bug64 (Added a section on conditional properties) |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
Note: Full properties will only compile with the Hidden flag. | Note: Full properties will only compile with the Hidden flag. | ||
== Full Property == | == Full Property == | ||
Line 44: | Line 45: | ||
EndProperty | EndProperty | ||
</source> | </source> | ||
== Auto Property == | == Auto Property == | ||
Line 55: | Line 57: | ||
float Property MyProperty = 1.0 Auto | float Property MyProperty = 1.0 Auto | ||
</source> | </source> | ||
== Auto Read-Only Property == | == Auto Read-Only Property == | ||
Line 66: | Line 69: | ||
string Property Hello = "Hello world!" AutoReadOnly | string Property Hello = "Hello world!" AutoReadOnly | ||
</source> | </source> | ||
== Conditional Property == | |||
<conditional property> ::= <type> 'Property' <identifier> '=' <constant> ['Auto' | 'AutoReadOnly'] 'Conditional' | |||
A conditional property can be read using the [[GetVMQuestVariable]] and [[GetVMScriptVariable]] conditional functions. The script containing conditional properties must also be defined as conditional. Only one conditional script may be attached to a game object at a time. | |||
== See Also == | |||
* [[ Variables and Properties]] | |||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:Papyrus Language Reference]] | [[Category:Papyrus Language Reference]] |