Float values attributes Expression problem

Garmory

New member
Hi,
I'm trying to write Expression for item attributes like this: [BaseHealth] + ($[Level] -1) * [HealthLevelModifier].
When I was using int or float(without decimal part) values, it worked fine.

But when I change Values to have any decimal it stops working.
When BaseHealth doesn't have a decimal (1) and HealthLevelModifier has (2.5) it also doesn't work.
When BaseHealth is an integer and in expression, I write float it's working.

NotWorking2.pngNotWorking.pngOK.png
 
I remember someone having a similar issue, which I fixed a month or two ago. The expression solver was confusing "2.5" with "2,5" and couldn't solve the expression.
Could you confirm that you are using the latest UIS version 1.2.6? Also please let me know what Unity version you are using. If it persists after updating I'll try to replicate it
 
After update to 1.2.6 it works, thanks for help
It's minor, but it uses both a comma and a period as decimal separator
 

Attachments

  • comma.png
    comma.png
    25.4 KB · Views: 5
Top