Difference between revisions of "Variables and Properties"

171 bytes added ,  03:50, 25 August 2012
→‎Full Property: ''set'' functions are called if the property's value is set in the CK
imported>Tunaisafish
m (→‎From Within a Magic Effect Script: First 2 sentences were false/badly worded. Example script reads well enough.)
imported>Cipscis
(→‎Full Property: ''set'' functions are called if the property's value is set in the CK)
Line 75: Line 75:


The above property is write-only. Scripts outside of this one cannot read the value. It also uses an if to make sure the value is never below 0.
The above property is write-only. Scripts outside of this one cannot read the value. It also uses an if to make sure the value is never below 0.
If a full property has its value set in the Creation Kit, its ''set'' function will be called when the object is initialized, just before its [[OnInit]] event is called.


==Auto Properties==
==Auto Properties==
Anonymous user