[Pcgen-trackers_Data] [JIRA] Commented: (NEWTAG-22) CHOOSE:DEITY

[ http://jira.pcgen.org/browse/NEWTAG-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10208#action_10208 ]
Tom Parker commented on NEWTAG-22:
----------------------------------
Add a new PRIMITIVE (x):
FEAT=y
Where y is another FEAT that has CHOOSE:DEITY. Will provide to this chooser the items chosen in that other FEAT.
> CHOOSE:DEITY
> ------------
>
> Key: NEWTAG-22
> URL: http://jira.pcgen.org/browse/NEWTAG-22
> Project: New Tag
> Issue Type: New Feature
> Components: LST Tag
> Affects Versions: 5.17.1, 5.17.2
> Reporter: Tom Parker
> Fix For: 5.17.3 (Alpha)
>
>
> Syntax
> CHOOSE:DEITY|x|y|y[z]|y[z,z]|x,y,y[z],y[z,z]
> x is a Deity PRIMITIVE
> A PRIMITIVE is an identifier of objects, and may include any number of specifications. In the case of Deity objects, there are are the three global PRIMITIVES:
> x = an Deity (specified by key)
> x = TYPE=w (w is a TYPE identifier for a Deity)
> x = !TYPE=w (w is a TYPE identifier for a Deity that would be prohibited)
> x = ALL (allow the choice of any Deity)
> There are also two Deity specific PRIMITIVES:
> ALIGN=w selects deities with Deity Alignment as specified in the w argument (w must be an alignment abbreviation, e.g. "LG") PANTHEON=w selects deities with Deity Pantheon as specified in the w argument
> y is a QUALIFIER
> A QUALIFIER is a special keyword that identifies a subset of objects that should be returned. Valid qualifiers for Deity objects are any of the Global Qualifiers.
> A comma represents "AND", meaning multiple items are evaluated independently and then any item that appears in ALL of the items is added to the list.
> CHOOSE:DEITY|Ra,Set
> will result in NO choices because no Deity is both Ra and Set.
> CHOOSE:DEITY|TYPE=Foo,PC
> would test for any Deity that has the Foo type (as defined in the Deity LST file) which is ALSO already selected by the PlayerCharacter
> This could also be written (probably more clearly):
> CHOOSE:DEITY|PC[TYPE=Foo]
> A pipe represents "OR", meaning multiple items are evaluated independently and then any item that appears in any of the items is added to the list:
> CHOOSE:DEITY|Ra|Set
> will result in a choice between Deities Ra and Set.
> All commas (ANDs) are evaluated before pipes (ORs), so something like:
> CHOOSE:DEITY|Ra|TYPE=Foo,PC
> would include Ra unconditionally, in addition to any Deity that has the Foo type (as defined in the Deity LST file) which is ALSO already selected by the PlayerCharacter
> [edit] Conversion
> None, DEITY is a new Subtoken for CHOOSE
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.pcgen.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira