I was thinking of programming a game in which battles are fight between players. I have done some research and read about two different ways of performing tasks when the player who's army is fighting is not online.
Now my question is. What is the advantage/disadvantage of the first solution. And when I use the second solution, I will end up doing something like:
But do I not run the risk that a second user is opening the script in between step 1 and 2 and therefore performing the tasks twice?
Looking forward to your opinion.