Skip to content

Current questions and answers regarding the map editor.

User Avatar
#4414
Auto-translated
Andrail
SetRegionBlocked("region name", true, PLAYER_N)

Added after 32 seconds
Replace N with the player number

Thank you, another question. Does the script only work on AI? I switched to the enemy hero (player 8) to check if it worked, but it didn't. I wrote it like this: SetRegionBlocked("un", true, PLAYER_8);
Okay, it worked. I just needed to remove the spaces, thanks :)

Added after 14 hours 23 minutes
Also, here's another question: I want to make it so that after losing a battle, the enemy hero always appears in their own town. (Like in the "Hammers of Fate" campaign for Wulfstan. There, Lorenzo and other red knights had this ability.) I've been looking for the right script, but I haven't found it. Maybe someone knows it?