Selection only (property type)

From ADRIFT 5 Manual Wiki
Revision as of 03:00, 13 September 2013 by Saabie (Talk | contribs) (moved Selection only property type to Selection only (property type): clarify title)

Jump to: navigation, search
THE MAIN ITEMS
Locations
Objects
Tasks
Characters
Events
Variables
Groups
Properties
---- Character
---- Integer
---- Location Group
---- Location
---- Object
---- Selection
---- State
---- Value
---- Text
Text Overrides
Hints
Synonyms
User functions

A "Selection Only" property is a simple boolean property, it is either selected (has a tick in the box) or not.

The majority of properties are selection only, here is the "Known" property of a character which has been selected:

PropertyKnown.jpg

Testing the Property

To test if a particular property is selected, just use the "have property" restriction on the Object, Character or Location page of the restriction editor.

In the following example we are testing if the player character has a property called "Clothing on head" selected.

RestrictionClothingOnHead.jpg

Creating a new selection-only property

Create a new property by clicking the "Add new property" button at the bottom of the Properties tab of a Character, Location, or Object. You can also right-click the open "Properties" folder and select "Add Property", or right-click any other open folder and select "Add new/Property".

PropertyDialogClothingSlot.jpg

  • Give the new property a description.
  • Ensure that "property of" is correctly set (Characters, Objects or Locations)
  • Set the property "Type" to "Selection only"
  • The "Mandatory" box never needs to be selected for this type of property.
  • If you only want this property to appear on the property tab if the item has a particular characteristic, then select the name of a particular property and the value it must have before this property is shown.


<<< Object property typePropertiesState property type >>>