From: JIRA (f. E. C. S. ) <ji...@pc...> - 2011-05-26 17:56:05
|
[ http://jira.pcgen.org/browse/NEWTAG-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric C. Smith updated NEWTAG-17: -------------------------------- Status: Documented (was: Doco) > CHOOSE:FEAT| > ------------ > > Key: NEWTAG-17 > URL: http://jira.pcgen.org/browse/NEWTAG-17 > Project: New Tag > Issue Type: Modify Token > Components: LST Tag > Affects Versions: 5.17.1, 5.17.2 > Reporter: Tom Parker > Assignee: Eric C. Smith > Fix For: 5.17.4 (Alpha) > > > CHOOSE:FEAT > SUBTOKEN: FEATADD (deprecated) > SUBTOKEN: FEATLIST (deprecated) > SUBTOKEN: FEATSELECT (deprecated) > SUBTOKEN: FEAT (new) > [edit] Syntax > CHOOSE:FEAT|x|y|y[x]|y[x,x]|x,y,y[x],y[x,x] > x is a Feat PRIMITIVE > A PRIMITIVE is an identifier of objects, and may include any number of specifications. In the case of Feat objects, there are are the three global PRIMITIVES: > x = an Feat (specified by key) > x = TYPE=w (w is a TYPE identifier for a Feat) > x = !TYPE=w (w is a TYPE identifier for a Feat that would be prohibited) > x = ALL (allow the choice of any Feat) > y is a QUALIFIER > A QUALIFIER is a special keyword that identifies a subset of objects that should be returned. Valid qualifiers for Feat 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:FEAT|Dodge,Toughness > will result in NO choices because no Feat is both Dodge and Toughness. > CHOOSE:FEAT|TYPE=Foo,PC > would test for any Feat that has the Foo type (as defined in the Feat LST file) which is ALSO already selected by the PlayerCharacter > This could also be written (probably more clearly): > CHOOSE:FEAT|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:FEAT|Dodge|Toughness > will result in a choice between Feat Dodge and Feat Toughness. > All commas (ANDs) are evaluated before pipes (ORs), so something like: > CHOOSE:FEAT|Dodge|TYPE=Foo,PC > would include Dodge unconditionally, in addition to any Feat that has the Foo type (as defined in the Feat LST file) which is ALSO already selected by the PlayerCharacter > [edit] Conversion > CHOOSE:FEATADD|Dodge|Toughness becomes CHOOSE:FEAT|Dodge|Toughness ADD:FEAT|%LIST > CHOOSE:FEATLIST|TYPE=Fighter becomes CHOOSE:FEAT|PC[TYPE=Fighter] > CHOOSE:FEATSELECT|TYPE=Fighter becomes CHOOSE:FEAT|TYPE=Fighter -- 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 |