How would I go about including an automatic battle system? Where once a button is clicked your team of 3 battle another team of 3. I have a general idea of what I think I must do, but any help would be appreciated! (not multiplayer) It’s more of a quest thing like in a game similar to Dark Summoner.
Your question is far too complicated to be answered here. It could be anywhere from 500 - 10+k lines of code depending on the complexity of the AI. If you have an open playing area (i.e. with no obstacles) it will be easier if not you will need basic path finding - something like A*.
You will need attributes for your players, like health, stamina, speed, aggression, weapons, etc.
If you allow them to team-up then you’ve instantly doubled the complexity. If they target different people/structures this will be more complicated.
Its more of only player hp, how strong at/matk and how strong def/mdef is. So I made an equation based on how much damage is taken between the two players. Also I just want to know how to gather the information from a card to when it is clicked all the information is transferred into the battle and the battle automatically starts.
Your question is far too complicated to be answered here. It could be anywhere from 500 - 10+k lines of code depending on the complexity of the AI. If you have an open playing area (i.e. with no obstacles) it will be easier if not you will need basic path finding - something like A*.
You will need attributes for your players, like health, stamina, speed, aggression, weapons, etc.
If you allow them to team-up then you’ve instantly doubled the complexity. If they target different people/structures this will be more complicated.
Its more of only player hp, how strong at/matk and how strong def/mdef is. So I made an equation based on how much damage is taken between the two players. Also I just want to know how to gather the information from a card to when it is clicked all the information is transferred into the battle and the battle automatically starts.