Larhalt
September 23rd, 2015, 20:42
Hello,
I have a problem with the result of an operation.
In this image I need that the -16 and -15 show only "16" and "15", without the minus
11096
This is what I have in the code
<sheetbonus name="meleeattackbonus" source="attackbonus.melee">
<anchored>
<to>thac0</to>
<position>below</position>
<offset>0,28</offset>
<size>
<height>20</height>
</size>
</anchored>
<source>
<name>thac0</name>
<op>-</op>
</source>
<source>
<name>hitprobability</name>
<op>-</op>
</source>
<source>
<name>miscattackbonus.melee</name>
<op>-</op>
</source>
<script>
function onSourceUpdate()
setValue(calculateSources());
end
</script>
</sheetbonus>
<stringcontrol>
<anchored>
<to>meleeattackbonus</to>
<position>above</position>
<offset>0,1</offset>
</anchored>
<font>sheetlabelsmall</font>
<center />
<static>Totale</static>
</stringcontrol>
I have a problem with the result of an operation.
In this image I need that the -16 and -15 show only "16" and "15", without the minus
11096
This is what I have in the code
<sheetbonus name="meleeattackbonus" source="attackbonus.melee">
<anchored>
<to>thac0</to>
<position>below</position>
<offset>0,28</offset>
<size>
<height>20</height>
</size>
</anchored>
<source>
<name>thac0</name>
<op>-</op>
</source>
<source>
<name>hitprobability</name>
<op>-</op>
</source>
<source>
<name>miscattackbonus.melee</name>
<op>-</op>
</source>
<script>
function onSourceUpdate()
setValue(calculateSources());
end
</script>
</sheetbonus>
<stringcontrol>
<anchored>
<to>meleeattackbonus</to>
<position>above</position>
<offset>0,1</offset>
</anchored>
<font>sheetlabelsmall</font>
<center />
<static>Totale</static>
</stringcontrol>