Community Forums > Voobly General > General Discussion / Off Topic > How to disable a building on a custom map
2 User(s) are reading this topic (in the past 30 minutes)
0 members, 2 guests
0 members, 2 guests
Dân số hiện tại:
Word Association (64 Người chơi)
AoKTS updates (40 Người chơi)
CBA PathBlood 1.8.0 (36 Người chơi)
1.6 reward campaing (34 Người chơi)
Photos of Voobly Players (15 Người chơi)
TIW 2020 Map votes (12 Người chơi)
Top 5 players of all time (R6) (12 Người chơi)
Chủ đề tích cực nhất tuần qua:
🌟 Let's Restart Custom Scenar... (14 Bài viết)
Torneo 1v1 HUMAITA / HUMAITA 1... (13 Bài viết)
Restore Problem (12 Bài viết)
If there is chance to advertise ... (8 Bài viết)
Which AI can play DE Islands cus... (6 Bài viết)
AOM Error "Unsupported Grap... (5 Bài viết)
Old VCOM/Tournament forums (4 Bài viết)
[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