|
XML Question
How do you make a calculation in XML then display it on a BB card in OOTP?
The following line is in my baseball card XML file defining the YEAR of the card...
<ELEMENT type="text" x="178" y="290" width="26" height="10" align="left" valign="middle" zorder="20" font_name="medium" font_color="#dedfd9" font_x_size="12" font_y_size="14" content="[%YEAR]" has_team="1" />
In this case [%YEAR] equals 1947.
What I want to do is simply state "Season ##" instead of the actual year on the front of the card.
Since my first year in this league is 1947, I want to subtract "1946" from the current year (%YEAR=1947) to get "1", then Display "Season 1" on the card.
Then next year, 1946 would be subtracted from 1948 to get "Season 2", etc.
How can I do this?
|