Greetings RPG Maker community,
I apologies if I have missed something or put this in the wrong section. I've been a long time observer of these forums over the last few years and it has helped me to a great extent, But the time has come to come here myself and request your help personally.
Thanks to Tsukihime for helping me over Facebook.
Boring Intro
Anyway I've started dealing with mathematics in scripts within common events and I've came across an issue, I'm trying to make a variable hold a decimal value such as 0.0000001 by using:
Problem: When I do this the fourth variable ($game_variables[4]) holds the value of "1.0e-07", where it has moved only one decimal place, Then uses the number after: 'e-##' to display the number of decimals I'm supposed to have.
It is really frustrating because I have had this working once before and when I tried to add one more decimal it's been errors in Game_Interpreter line 1411 (which I fixed) or other unprecedented bugs, like the one I'm experiencing.
I'm sure I'm simply overlooking something and I would appreciate any person that can help me with forcing my fourth variable to have a value such as 0.00000001 > 100.99999999.
Screenshots can be supplied if necessary.
Thank you for taking the time to read this or reply.
IBB
I apologies if I have missed something or put this in the wrong section. I've been a long time observer of these forums over the last few years and it has helped me to a great extent, But the time has come to come here myself and request your help personally.
Thanks to Tsukihime for helping me over Facebook.
Boring Intro
Anyway, I've been producing a Bitcoin inspired RPG game which is a hybrid Roleplaying-Simulation(Idle/Upgrade)-Strategy(Time managed), Production has been on-going for 7 months almost, Most of which has been fixing scripts to make them compatible with others and what-not.
Usually every time I come to a halt due to bugs I can't comprehend myself, I find an answer pretty simply either on this forum or another.
Usually every time I come to a halt due to bugs I can't comprehend myself, I find an answer pretty simply either on this forum or another.
Anyway I've started dealing with mathematics in scripts within common events and I've came across an issue, I'm trying to make a variable hold a decimal value such as 0.0000001 by using:
$game_variables[1] = 10.0.to_f
$game_variables[2] = $game_variables[1] * $game_variables[3]
Control Variables: [0001😛AYOUT] /= 1000000
$game_variables[4] += $game_variables
[1]
$game_variables[2] = $game_variables[1] * $game_variables[3]
Control Variables: [0001😛AYOUT] /= 1000000
$game_variables[4] += $game_variables
[1]
Problem: When I do this the fourth variable ($game_variables[4]) holds the value of "1.0e-07", where it has moved only one decimal place, Then uses the number after: 'e-##' to display the number of decimals I'm supposed to have.
It is really frustrating because I have had this working once before and when I tried to add one more decimal it's been errors in Game_Interpreter line 1411 (which I fixed) or other unprecedented bugs, like the one I'm experiencing.
I'm sure I'm simply overlooking something and I would appreciate any person that can help me with forcing my fourth variable to have a value such as 0.00000001 > 100.99999999.
Screenshots can be supplied if necessary.
Thank you for taking the time to read this or reply.
IBB










