Posted on 09/24/20 @ 02:36 AM
Be sure to modify the AI resource after 4 seconds of initial change for their resources to not conflict with each other.
How it works: The AI start off Passive (Immobile). If an AI have 10 food they'll go aggressive and send (attack-move) action to all their current and newly created units. Wait 4 seconds and modify that resources out.
To turn it into passive again, modify the AI to have 10 gold and remove that gold afterwards. The existing unit will not stop their (attack-now) action but any new units created will not attack but will be idle in their creation spot.
From there, you can then repeat the cycle again.
This AI features Hit-and-Run action in moderate/hard difficulty which is disabled in easy difficulty. Specifically designed for my latest scenario, Rebirth of the Colosseum, and attacking wall is disabled. You can simply enable it by changing (set-strategic-number sn-wall-targeting-mode) value to 1 from rules with (goal 1 1).