Hi there,
I have a very specific problem, it seems. Have been searching all over the internet for the last hours now, tried a plugin too but I can't get it to work.
I am in need of decimal values. For the aquarium in my game, the player will have to check the pH scale and the salinity of the water. These two come with decimal, for example the pH scale of saltwater is around 7.5 - 8.4 and the salinity is somewhere around 3.5%. The game will change these slowly over time, reducing or increasing them by 0.1 so the player has to take some actions against this.
Unfortunately, the maker rounds every number you store in a variable. I've been playing around with codes like
$gameVariables.setValue(42, 7.8)
or
$gameVariables.setValue(42, $gameVariables.value(42) + 0.1)
or just entering them into the script section of the variable, but it does not work. I even used a plugin for not rounding them - but it's not made for such calculations and therefore I get more and more errors.
Can anybody help me please? (using MV)
I have a very specific problem, it seems. Have been searching all over the internet for the last hours now, tried a plugin too but I can't get it to work.
I am in need of decimal values. For the aquarium in my game, the player will have to check the pH scale and the salinity of the water. These two come with decimal, for example the pH scale of saltwater is around 7.5 - 8.4 and the salinity is somewhere around 3.5%. The game will change these slowly over time, reducing or increasing them by 0.1 so the player has to take some actions against this.
Unfortunately, the maker rounds every number you store in a variable. I've been playing around with codes like
$gameVariables.setValue(42, 7.8)
or
$gameVariables.setValue(42, $gameVariables.value(42) + 0.1)
or just entering them into the script section of the variable, but it does not work. I even used a plugin for not rounding them - but it's not made for such calculations and therefore I get more and more errors.
Can anybody help me please? (using MV)
