Hey I need a bit of help with my code. I basically have it set so when the monster deals damage to the player, he deals damage in a range from 20-50. I added armor now, so the more you have the less damage the monster deals, which is fine. Now, I noticed that when I have a lot of armor, the monster only deals 20's. Can someone teach me how to make the damage not capped at the minimum and make it as low as 1?
I found a similar topic on this forum, and applied it to my game, but it just made it worse.
Here is what I have:
//when the monster attacks the player
global.monsterdamage=(global.monsterdamagemin + random(global.monsterdamagemax - global.monsterdamagemin)/((100+global.armor)/100))