Community Forums > Voobly General > General Discussion / Off Topic > How to disable a building on a custom map
1 User(s) are reading this topic (in the past 30 minutes)
0 members, 1 guests
0 members, 1 guests
今人気なコンテンツ:
Word Association (65 人が視聴中)
Photos of Voobly Players (19 人が視聴中)
AoKTS updates (15 人が視聴中)
CBA PathBlood 1.8.0 (14 人が視聴中)
1.6 reward campaing (14 人が視聴中)
Devil May Cry (13 人が視聴中)
TIW 2020 Map votes (10 人が視聴中)
過去一週間でアクティブなスレッド
Torneo 1v1 HUMAITA / HUMAITA 1... (13 個のレス)
Restore Problem (12 個のレス)
If there is chance to advertise ... (8 個のレス)
AOM Error "Unsupported Grap... (7 個のレス)
🌟 Let's Restart Custom Scenar... (7 個のレス)
Which AI can play DE Islands cus... (6 個のレス)
Old VCOM/Tournament forums (4 個のレス)
[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