NokiMo
bagoolworks
bagoolworks

patreon


11/23/17 and The importance of data types

Happy Thanksgiving to everyone in the States. And to everyone outside of the US, Happy Thanksgiving too!

This post is to illustrate something I realized with how rpgmaker handles variables and datatypes. For whatever reason, even though javascript (what rpgmaker runs on) can use decimals, rpgmaker itself always simplifies numbers to the first digit place. I was aware of this for a while, back when I was working on the old version even. However, its significance only became clear recently. You see, having this kind of rounding present in the code can really fuck up the adjustments I make. This picture above shows a clear example, I'm running a part of the equation I posted last night. The first way uses the built in modifiers for variables, and the second used raw javascript code. From this event, it displays the total damage of a medium round of handspanks on a spankee with underwear and pants/skirt on as being 0 and 4 respectively. Clearly this is a huge difference. 

The bad thing about this is that there are other equations of this complexity already in the game, and they'll need to be manually coded like this one in order to work properly. The good thing about this is that having the code actually typed out makes it a lot easier to edit and copy around, plus now some of the more finicky calculations will work better!

11/23/17 and The importance of data types

Related Creators