From: JIRA (f. J. D. ) <ji...@pc...> - 2011-01-01 23:16:13
|
[ http://jira.pcgen.org/browse/NEWTAG-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Dempsey updated NEWTAG-244: --------------------------------- Status: Approved (was: In Discussion) > add function to JEP 'COUNT' to include 'KEY=' > ---------------------------------------------- > > Key: NEWTAG-244 > URL: http://jira.pcgen.org/browse/NEWTAG-244 > Project: New Tag > Issue Type: Modify Token > Reporter: Andrew Maitland > > This proposal aims to use the KEY name of the ability which must be unique in any given ability category. > Currently we can do this in the code: > count("ABILITIES","CATEGORY=FEAT","NAME=Dodge") > But what happens when we have this? > Dodge <> KEY:Dodge ~ Kobold <> ABILITY:FEAT|AUTOMATIC|Dodge > Dodge <> KEY:Dodge ~ Goblin <> ABILITY:FEAT|AUTOMATIC|Dodge > Dodge <> KEY:Dodge ~ Human <> ABILITY:FEAT|AUTOMATIC|Dodge > Dodge <> TYPE:General <> DESC:You can dodge > You'll have a count off by at least one. Yes, this is a silly example, but it's the easiest one I can make. I can use an existing real set example instead; Look at the Eclipse set lines 1053 to 1065 of the abilities.lst. -- 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 |