I'm making a game where I need to calculate the odds of successfully completing an action.
I've never had to do this before, so I don't know what equations to use and was hoping I could get some ideas here.
Based on either one number, or several, I need to determine the chances of it succeeding.
This is how I'm thinking about it right now. For each "level" a player has, the percentage that is needed to succeed decreases. So let's says they are level 1. They would need a 95% chance of succeeding. If level 2, then it's 90% and so on.
But how would I actually come up with those odds? I plan on having the base number be the number of "items" the player has. Which starts off at 128 and goes up from there. But what number would I divide that number with to get my odds?
Or am I going about this all wrong?