Auto-translated
Colleagues, thank you very much!
I will test the trigger reset options later and report back...
Yesterday, I didn't get around to testing the trigger reset, but I did test the main script in different situations.
It turned out that it doesn't work for heroes controlled by AI...
Is that intentional? Or can something else be added to the script so that it also includes/excludes AI heroes in the battle based on the script's condition?
Correction: After an AI hero enters a region, if there is an enemy hero within its movement range, it engages in battle with it. After the turn of this AI hero, if the army described in the script wins, the AI hero disappears...