PDA

View Full Version : How to display decimal numbers



alloowishus
August 9th, 2025, 18:40
So normally my system does bleeding per round, 1,2,3,4 etc. however I broke down my rounds into phases, so I divided all the bleeding results by 4, so 1 hit per round gets translated to 0.25, 2 hits per round as 0.5 etc.

When cycling through the combat tracker and displaying the damage in the chat screen, it can't seem to handle decimals (even though the damage is deducted correctly), and gives this message (example for 2 hits/rnd)

[DAMAGE] Bleeding [TYPE: untyped (0.5=0)]

How do I get to properly display the decimal value? Thanks!

superteddy57
August 9th, 2025, 19:07
numberfields can accept decimals. Depends on your code how it is setting the wounds field. Majority of default processes in the action managers in rulesets keep it a flat integer.