Gender

From ADRIFT 5 Manual Wiki
Revision as of 06:46, 18 September 2013 by Saabie (Talk | contribs)

Jump to: navigation, search

The gender property of each character in ADRIFT can be set to "Male", "Female" or "Unknown".

Parser support for genders

ADRIFT knows that the word "he" refers to a male character and "she" to a female character.

Whenever the player mentions a specific character in any command, ADRIFT automatically checks the gender of that character and if they are male then the ADRIFT parser changes the current "he" character to that character.

If the player now enters a command using the word "he", then ADRIFT replaces "he" with the name of that character.

Testing the gender of a character

The following property restriction can be used to check if the referenced character is of a particular gender:



Using the property to modify text to suit the gender

The "Gender" function of characters can be used to obtain the current setting of this state property as text.

Inserting %character%.Gender directly into text will return "male", "female" or "unknown", for example:

The %character%.Gender rat ate the cheese.

will be printed as:

The male rat ate the cheese.

if the rat was male.