Auto-translated
Heroist, thank you, I fixed it, and it worked. Another question: I have an area where a hero enters, and a battle starts, but the battle takes place in the town. The town itself is level Fortress, but it also has some wall and tower damage. Is it even possible to create such a scenario?
But it still doesn't work. I corrected the letter 'r' and removed an extra digit, thanks for the advice, Redhavenhero. I launched the map, and it worked; the building's function was blocked. However, when I added the text for the message from the first part of the script, nothing happened – neither the building was blocked, nor did the message box appear. Could it be the order in which I wrote the script, with the trigger first and then the function?
Added after 1 hour 40 minutes:
Oh, I found the function in the scripts; it's about sieges, but it doesn't include damage to the castle, but it will do. But I still can't figure out the first question. I rewrote all the scripts from scratch, and again, the blocking works, but the message doesn't appear. It's some kind of nonsense.