darrenan
August 27th, 2019, 00:30
I'm working on the PF 2.0 version of the action library module. I got the first couple items set up in the module and the actions are displaying with weird extra characters. For example, this item in the module:
<aquaticambush>
<actions>
</actions>
<cast type="number">0</cast>
<casting type="string"></casting>
<effects type="formattedtext">
<p>The monster moves up to its swim Speed + 10 feet toward the triggering creature, traveling on water and on land. Once the creature is in reach, the monster makes a Strike against it. The creature is flat-footed against this Strike.</p>
</effects>
<heightened type="formattedtext">
<p></p>
</heightened>
<level type="number">0</level>
<locked type="number">1</locked>
<name type="string">Aquatic Ambush</name>
<prepared type="number">0</prepared>
<requirements type="string">The monster is hiding in water and a creature that hasnt detected it is within the listed number of feet.</requirements>
<spcost type="number">0</spcost>
</aquaticambush>
After dragging into the actions tab, it ends up looking like:
28666
You can see that the 'Casting' field has an extra character. Also, another HTML encoded character in the 'Requirements' field has the same issue. Is the solution to just search/replace all the HTML encoded characters with their bracketed action equivalent or un-encoded character, or is this a bug in the PF 2.0 ruleset?
The XML above was created manually within a character sheet in fantasy grounds, and then copy/pasted from db.xml into the module's client.xml. In the original character sheet it displays fine with no extra character.
<aquaticambush>
<actions>
</actions>
<cast type="number">0</cast>
<casting type="string"></casting>
<effects type="formattedtext">
<p>The monster moves up to its swim Speed + 10 feet toward the triggering creature, traveling on water and on land. Once the creature is in reach, the monster makes a Strike against it. The creature is flat-footed against this Strike.</p>
</effects>
<heightened type="formattedtext">
<p></p>
</heightened>
<level type="number">0</level>
<locked type="number">1</locked>
<name type="string">Aquatic Ambush</name>
<prepared type="number">0</prepared>
<requirements type="string">The monster is hiding in water and a creature that hasnt detected it is within the listed number of feet.</requirements>
<spcost type="number">0</spcost>
</aquaticambush>
After dragging into the actions tab, it ends up looking like:
28666
You can see that the 'Casting' field has an extra character. Also, another HTML encoded character in the 'Requirements' field has the same issue. Is the solution to just search/replace all the HTML encoded characters with their bracketed action equivalent or un-encoded character, or is this a bug in the PF 2.0 ruleset?
The XML above was created manually within a character sheet in fantasy grounds, and then copy/pasted from db.xml into the module's client.xml. In the original character sheet it displays fine with no extra character.