Hey guys, ive been trying to work with percentages in scripting and it is not working for me.
Sample Code:
IF %FACTOR = 1 THEN
%HEALTH := %HEALTH - (%HEALTH*.5)
The above will not work. I want it that if a factor turns up "1" then half of your life is lost. In the debugger, it says that it cannot define the '.' the dot, or the decimal in this case.
i have tried:
IF %FACTOR = 1 THEN
%HEALTH := %HEALTH - (%HEALTH * (50/100))
but this does not work either. HAve you guys run into this problem, and do you know a fix?