Difference between revisions of "Scripts"

193 bytes added ,  15:30, 12 July 2015
m
Added an explanation of auto-fill
imported>Bug64
(Add menu item descriptions)
imported>Bug64
m (Added an explanation of auto-fill)
Line 47: Line 47:


* '''Add Property''': Adds a new property to the script.   
* '''Add Property''': Adds a new property to the script.   
* '''Auto-Fill All''': ''TBD''
* '''Auto-Fill All''': Automatically fills in any property which is named after the entity to which it refers.  As an example, an ActorBase property named Atrid will be automatically filled with a reference to that object. 
* '''Edit Value''': Allows you to set the value of this property.  The area to the left of the button will provide one or more input fields to be populated, depending on the property's type.
* '''Edit Value''': Allows you to set the value of this property.  The area to the left of the button will provide one or more input fields to be populated, depending on the property's type.
* '''Revert''': ''TBD''
* '''Revert''': ''TBD''
Line 74: Line 74:
* Do not give a property the same name as an existing script or type.  The dialog will not prevent this, but it will result in a compilation error as explained above.
* Do not give a property the same name as an existing script or type.  The dialog will not prevent this, but it will result in a compilation error as explained above.
* If you name a property after the entity it represents, the game will automatically populate the entity for you.  For example, naming an ActorBase property Astrid will cause it to be automatically populated with that actor.
* If you name a property after the entity it represents, the game will automatically populate the entity for you.  For example, naming an ActorBase property Astrid will cause it to be automatically populated with that actor.


= Context Menu =  
= Context Menu =  
Anonymous user