Hi,
ABB is a new construct, it never existed in the stats file until 6.06. I would recommend using a FACT:Abb|x and set it to export then it can be grabbed in the output as a fact. I was going to use this method to handle the save abbreviations once we got the freemarker list handled.
Yes, there is a bit of a disconnect in naming modalities. LongName vs. Name vs. DisplayName vs. OutputName vs. ShortName.
You might want to take this discussion to pcgen_experimental, since we can work out standardizing a few names, and we'll want to enlist the code team. Besides, once Tom finalizes the Stats > Formula System bridge, those files will be getting overhauled.
Cheers,
Andrew
Hm, ok, I need to change some loops.
My starting idea to mod the ABB in the mpc_stats.lst file like this:
Weisheit SORTKEY:5 ABB:WE KEY:WIS STATMOD:floor(SCORE/2)-5 DEFINE:MAXLEVELSTAT=WIS|WISSCORE-10
so there is the wanted text in ABB.
Now I'd want to have the output loop grab this item. Interestingly the long text "Weisheit" from the above homebrew entry immediately is printed on the pdf without further changes, but the short text everywhere is still "WIS".
Sadly the naming in all files different.
1)
In block_stat_block.xslt I find "<xsl:value-of select="name/short"/>" which I would believe to be the three letters for a stat.
2)
In outputsheets\base.xml.ftl I find the following section
"<long>${pcstring('STAT.${stat}.LONGNAME')}</long>
<short>${pcstring('STAT.${stat}.NAME')}</short>"
I just don't see how and where I would need to change something to connect the code in the output sheet to the ABB tag. Somewhere there must be connection between the stats.lst file entries and the expressions in the xslt and ftl files.
I am happy to ask in some other group if that is the right place.
For outsiders this all is not so easy to understand and editing the resulting pdf is like handwriting with a pencil - not really an option.
Posted by: Andrew <drew0500@yahoo.com>
| Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (20) |
No comments:
Post a Comment