Difference between revisions of "Character (property type)"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
m (moved Character list property type to Character property type: name changed on property dialog)
(terminology changed in dialog box)
Line 1: Line 1:
A character-list property stores the [[key]] of a single [[Characters|character]].
+
A character property stores the [[key]] of a single [[Characters|character]].
* The "List" part of the name refers to the drop-down list on the property page of a character, location or object, from which you select the wanted character.
+
* To actually store a list of characters, use a [[Groups/Classes#Character Groups|character GROUP]].  
+
  
If the "Location of the character" property is set to "On character", then the "On which character?" property becomes available, which is a character-list.
+
If the "Location of the character" property is set to "On character", then the "On which character?" property becomes available, which is a character property.
  
 
[[File:PropertyCharOnWho.jpg]]
 
[[File:PropertyCharOnWho.jpg]]
  
 
== Requirements ==
 
== Requirements ==
Before using the value of the character-list property, we first need to check that the property is selected.
+
Before using the value of the character property, we first need to check that the property is selected.
  
 
To test if the "On character" property is selected, we can check that its parent property "Location of the character" is currently set to "On character":
 
To test if the "On character" property is selected, we can check that its parent property "Location of the character" is currently set to "On character":

Revision as of 09:26, 28 August 2013

A character property stores the key of a single character.

If the "Location of the character" property is set to "On character", then the "On which character?" property becomes available, which is a character property.

PropertyCharOnWho.jpg

Requirements

Before using the value of the character property, we first need to check that the property is selected.

To test if the "On character" property is selected, we can check that its parent property "Location of the character" is currently set to "On character":

RestrictionCharOnChar.jpg

For an object we can check if it is being held before we use the %object%.HeldBy property.

RestrictionObjectHeld.jpg

Testing the property

In the following example we are testing if a character named "Parrot" is currently sitting on top of the player.

RestrictionCharOnPlayer.jpg

Creating a new character 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".

PropertyWife.jpg

  • Give the new property a description.
  • Ensure that "property of" is correctly set (Characters, Objects or Locations)
  • Set the property "Type" to "Character".
  • Tick the "Mandatory" box if you want this property to always be selected.
  • If you want the drop-down list to only show characters with a certain property, then set the "Restrict by property" and "Restrict by value" fields. In the example above we have restricted the list to only show female characters. This will prevent this property from being set to any non-female character.
  • 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. The example has been restricted so that this property only appears on the property page of male characters.


<<< PropertiesPropertiesInteger >>>