alloowishus
November 17th, 2024, 04:01
I added a number field to the record_char_inventoy.xml file
<numberfield name="purchasepercentage">
<anchored to="typefilter" position="right" offset="155,1" height="20" width="40" />
<default>100</default>
</numberfield>
This works for most, but for SOME characters I get "ERROR: windowcontrol: Database type mismatch on path (purchaspercentage) in control (purchasepercentage) in class (charsheet_inventory_contents)"
I set the value on the character sheet as a node, but I notice that for some it does it like this:
<purchasepercentage type="number">100</purchasepercentage>
but for the ones that don't work it does this:
<purchasepercentage>
<holder name="alloowishus" owner="true" />
<purchasepercentage type="number">100</purchasepercentage>
</purchasepercentage>
Any ideas? thanks.
<numberfield name="purchasepercentage">
<anchored to="typefilter" position="right" offset="155,1" height="20" width="40" />
<default>100</default>
</numberfield>
This works for most, but for SOME characters I get "ERROR: windowcontrol: Database type mismatch on path (purchaspercentage) in control (purchasepercentage) in class (charsheet_inventory_contents)"
I set the value on the character sheet as a node, but I notice that for some it does it like this:
<purchasepercentage type="number">100</purchasepercentage>
but for the ones that don't work it does this:
<purchasepercentage>
<holder name="alloowishus" owner="true" />
<purchasepercentage type="number">100</purchasepercentage>
</purchasepercentage>
Any ideas? thanks.