When I debug the mod script, I always change a code line, build and run the game.
It takes a lot of times.
In support docs :https://support.ageofempires.com/hc/en-us/articles/4467678364052-Script-Debugging
You can try fixing the rule in the script, reburning the file, and hot-reloading the script.
What’s hot-reloading? How should I change the script code without building and restart the game?