Global Qualifiers

From PCGen Wiki
Jump to: navigation, search

Global Qualifiers work for any CDOMObject which can be qualified (some items like PCStat and PCAlignment cannot be qualified)

For purposes of the examples below, this assumes that PCTemplate objects are being used.

Qualifiers

ANY

This means any item in the brackets should be returned (this is implied, so that CHOOSE:TEMPLATE|Foo,TYPE=Bar is equivalent to CHOOSE:TEMPLATE|ANY[Foo,TYPE=Bar]

PC

This means any item which has already been taken by the PlayerCharacter.

QUALIFIED

This means any item for which the PC qualifies (meets the PRExxx on the Template or has QUALIFY:TEMPLATE|x for that Template)

Syntax

Note that for a QUALIFIER, ALL is the implied PRIMITIVE, so:

CHOOSE:TEMPLATE|PC[ALL]
is equivalent to
CHOOSE:TEMPLATE|PC

Negation

Any qualifier may be negated. Therefore, both PC and !PC are valid qualifiers.

CHOOSE:TEMPLATE|PC[TYPE=Foo]
would return any Template already possessed by the PlayerCharacter which had TYPE: of Foo

CHOOSE:TEMPLATE|!PC[TYPE=Foo]
would return any Template which is not:
- possessed by the PC
and
- TYPE=Foo