From: JIRA (f. l. ) <ji...@pc...> - 2011-01-28 18:13:10
|
[ http://jira.pcgen.org/browse/OS-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11959#action_11959 ] ltwally edited comment on OS-47 at 1/29/11 5:12 AM: ---------------------------------------------------- I almost have an OS method worked out for this.... It is fully functional, but I have one little snag: I'm using this code to isolate the first hit from a To Hit: <xsl:variable name="basehit" select="number(substring(to_hit,2,2))"/> Where "to_hit" is defined in base.xml as: <to_hit>|WEAPON.%weap.TOTALHIT|</to_hit> This works when there is only a single base attack (eg. +7), or when there are multiple attacks and the first is two digits (eg. +12/+7). It bombs when there are multiple attacks and the first is a single digits (eg. +7/+2). Does anyone have an idea to grab that first attack number? It took me a while to figure out that PCGen uses Xalan for XSLT / XPATH... and Xalan doesn't have much in the line of string functions (http://www.w3.org/TR/xpath/#section-String-Functions). Thanks was (Author: ltwally): I almost have an OS method worked out for this.... It is fully functional, but I have one little snag: I'm using this code to isolate the first hit from a To Hit: <xsl:variable name="basehit" select="number(substring(to_hit,2,2))"/> Where "to_hit" is defined as: <to_hit>|WEAPON.%weap.TOTALHIT|</to_hit> This works when there is only a single base attack (eg. +7), or when there are multiple attacks and the first is two digits (eg. +12/+7). It bombs when there are multiple attacks and the first is a single digits (eg. +7/+2). Does anyone have an idea to grab that first attack number? It took me a while to figure out that PCGen uses Xalan for XSLT / XPATH... and Xalan doesn't have much in the line of string functions (http://www.w3.org/TR/xpath/#section-String-Functions). Thanks > Feature Request -- Pathfinder / Monk / Flurry of Blows on Monk Weapons > ---------------------------------------------------------------------- > > Key: OS-47 > URL: http://jira.pcgen.org/browse/OS-47 > Project: Output Sheets > Issue Type: New Feature > Components: XSLT/PDF - Standard Fantasy > Affects Versions: 5.16.4 > Environment: any > Reporter: ltwally > Attachments: mockup.png > > > Feature Request for Pathfinder (and also D&D 3/3.5): > Flurry of Blows attacks can be made with qualifying Monk weapons. > So, it would be nice if the output sheets there was a row for the to-hit on Flurry of Blows attacks made with qualifying Monk weapons. > I have attached a simple mockup of what I mean. (In this example, the to-hit for unnarmed Flurry and the weapon Flurry are the same, but that won't always be true -- magic weapons and such) -- 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 |