Community Forums > Voobly General > General Discussion / Off Topic > How to disable a building on a custom map
3 User(s) are reading this topic (in the past 30 minutes)
0 members, 3 guests
0 members, 3 guests
What's popular right now:
CBA PathBlood 1.8.0 (85 users)
1.6 reward campaing (70 users)
AoKTS updates (53 users)
Word Association (40 users)
Photos of Voobly Players (24 users)
CBA HERO v18 (15 users)
Most legendary aoe player (14 users)
Most active threads in past week:
1.6 not working with me anymore... (9 posts)
Setting up port forwarding in ro... (9 posts)
Error al lanzar la partida (5 posts)
i can't play in new player (3 posts)
1.6 EASY SYNC ERROR (3 posts)
Idle TC and quick classical vs E... (3 posts)
Why will this error occur after ... (2 posts)
[You must login to view link]#
You can not disable the building as it's triggered by Feudal Age. What you can do is modify the attribute ATTR_TRAIN_BUTTON, put it to 0 or some very big number so it doesn't appear. I'm not sure how the hotkey will react, though. You can also set their health to negative so it dies instantly.
The point is that throught the ATTR_SET command you can modify attributes of units, maybe some of them help your purpose.
Actually, there's also the ATTR_DISABLE command. That one could work or serve a different purpose with similar name.
You should write something like:
Write this before the <PLAYER_SETUP> section
and inside the <PLAYER_SETUP>:
Here is a full example, for an Arabia-like map:
In Wololokingdoms and later versions of the game, they are programmed in the game. Otherwise, you have to define them