Request for Victory/Lose Mechanic

I am looking to see how to make it so that the class/actor stats combined can determine whether they win or lose a fight. For example, having a greater overall ATK and HP has a higher chance to win a battle against the opponent with lower stats (but it is still possible to lose by a smaller percentage based on the difference). This means that Battle is not going to be happening but instead would display the results based on the calculations/percentages of winning solely based on stats.

Original thread: https://forums.rpgmakerweb.com/threads/request-for-victory-lose-mechanic.65267/