Auto-translated
Using GetAttackerCreatures and GetDefenderCreatures (which return an array of attacker and defender creatures, respectively), as well as IsHuman(ATTACKER) (which returns true if the attacker is playing as a human).
New here? I'm Roha — want a quick tour?
Using GetAttackerCreatures and GetDefenderCreatures (which return an array of attacker and defender creatures), as well as using IsHuman(ATTACKER) (which returns true if the attacker is playing as a human).
It's not necessary to call StartCombat. Such things are needed if you have specific victory conditions in a battle (for example, all enemy creatures are summoned, and you need to kill specifically summoned creatures; this was the case in Heroes of Might and Magic V). If the victory conditions are standard (kill everyone except summoned creatures), this is not needed!
How else can I trigger a battle?
Ah, my mistake, I got it mixed up with another function. Yes, the attacking unit should be a human.
How else can you trigger a battle?
No, that's how it's done, but then, at the very end, you also need to add an "else" statement that displays a message about not having enough money. How else would you do it?
Or, you could create a dialog box that doesn't display options that you don't have enough money for in the first place.