Originally Posted by Sven_


Unless they would code it the way the Gamasutra articles suggests...

Every roll above 90% to be an auto hit. smirk



There are lots of ways to, "solve" the problem, all of which involve eliminating the randomness. For example, if you added a counter. Lets say you enter combat with 3 enemies. The first thing you do is you generate a random integer between 0 and 100 for all 3 of them. Lets say you generated the following:

• 46
• 68
• 44

Now, lets say you have a 35% chance of hitting the enemy. What you do is, if you try to attack 1 of those enemies, lets say you attack the 1st 1, you add the percentage as a number (35) to that result. In this case, the numbers would change as follows:

• 81
• 68
• 44

If when you perform this process, the resulting number exceeds 100, you subtract 100 from the result and you hit the target. If the resulting number is below 100, you miss the target. Either way, you save the new incremented result. So, an example of a hit would be if you targeted the enemy with the number 68 here, it would add 35 to the result and you would end up with 103. After subtracting 100 from that, the counters would be left with:

• 81
• 3
• 44

All of this would be hidden from the player of course. On their side, what you would display is, if the counter rolled over 100, you generate a number within the successful range and if the counter did not roll over, you generate a number within the failed range. You are technically hitting the expected percentage of the time, but there is nothing random about when you hit and miss.
Originally Posted by Sven_

(Though arguably, it does: AI no matter how good will never plan as well as a human player. Therefore, actual RNG that keeps the human's plans from going to perfection every time, arguably gives the AI a bit of a better fighting chance).

On the subject of AI never being as good as a human, I respectfully disagree, it just depends how much you want to invest into your AI :P You can look at Alphastar vs professional SC 2 players, or AlphaGo vs professional Go players, or Open AI vs professional Dota players, or the many chess AIs better than any chess player for reference.

Last edited by Sharp; 16/11/20 10:59 AM.