Helloo I am trying to develop a mobile game like the ones with auto-battle (Idles Heroes). I am stuck on the part as to what algorithm to use to backtrace the result so I can send back the information to the client to show the animation. I am also a little bit stuck on what algorithm to use to simulate the battle server side. But that is not as hard as trying to show the results in steps to the client so it can show the animation and combat to match the result of the battle.
There are three states of result:
Win
Lose
Win but lost HP.
Battle format:
5 Monsters vs 5 Monsters.
Each have skill that proc with chance, rng.
Some skill buffs characters others debuff enemies.
I think @Terraya just did: get a tutorial that requires clicking, then remove the clicking and replace it with a repetitive script that bangs on it at whatever rate you want.