Group Functions

From ADRIFT 5 Manual Wiki
Revision as of 11:19, 21 November 2012 by Saabie (Talk | contribs)

Jump to: navigation, search

The list functions operate on a list of item keys from a group, the multi-item references %characters% and %objects%, and functions which return a list of items worn by, contained inside, placed on top of, or held by another character or object.


Count

This function simply counts the number of item keys in the list and returns the number of items as an integer number.

This number can then be printed or used in an expression

List

The list function is used to format a list of items for output. It reads the name of each item and prints them in a comma-delimited list with "and" or "or" inserted between the last two items.

Up to 3 parameters can be added to the List function to control the formatting of the text output.

Each of these parameters has two settings, and if you type a "(" character immediately after the "List" function, the intellisense system will display a list of these six options:

OoListParams.jpg

Three of these options ("True", "Definite" and "And") are default values, so the function "Player.Worn.list" means the same as "Player.Worn.list(True, Definite, And)"

True/False



Definite/Indefinite



And/Or




<<< Location functionsObject-oriented functionsExpressions >>>