Auto-translated
Hi, I've encountered the need to write a script for the first time, but I'm not very good at programming, and I also don't know the limits of what's possible. Specifically, I need to program a gate so that when the entire army inside it is destroyed, the gate transitions under my control, and the guards inside the gate are revived, doubling in number. Perhaps you already have a similar draft, and I would be very grateful for your help.