Community Forums > Voobly General > General Discussion / Off Topic > How to disable a building on a custom map

How to disable a building on a custom map

 Denver17


Joined:  4 Tháng 6 2022
Posts: 95
đã Post31 Tháng 3 2023 - 12:07 pm
market was unavailable in feudal age but I could build in castle age
Đường dẫn | Trả lời | Trích dẫn
 Denver17


Joined:  4 Tháng 6 2022
Posts: 95
đã Post31 Tháng 3 2023 - 12:08 pm
What now?;pout
Đường dẫn | Trả lời | Trích dẫn
 +pablo@voobly

Voobly Team


Joined:  30 Tháng 11 2018
Posts: 2298
đã Post31 Tháng 3 2023 - 12:17 pm
Ah, right! We've only disabled the feudal one.

Repeat the process of defining the unit and moving the train button for units 116 and 137 as you did for unit 84. Remember to change the names to castle and imperial market so you have three different units modified.
Đường dẫn | Trả lời | Trích dẫn
 Denver17


Joined:  4 Tháng 6 2022
Posts: 95
Đã được sửa31 Tháng 3 2023 - 12:26 pm bởiDenver17
ok thanks ;hearts
Đường dẫn | Trả lời | Trích dẫn
 Denver17


Joined:  4 Tháng 6 2022
Posts: 95
đã Post31 Tháng 3 2023 - 12:34 pm
Is it like this?

#const DARK_AGE_MARKET 84
#const FEUDAL_AGE_MARKET 116
#const CASTLE_AGE_MARKET 134
<PLAYER_SETUP>
random_placement
nomad_resources
ai_info_map_type NOMAD 1 0 0
effect_amount SET_ATTRIBUTE DARK_AGE_MARKET ATTR_TRAIN_BUTTON 255
effect_amount SET_ATTRIBUTE FEUDAL_AGE_MARKET ATTR_TRAIN_BUTTON 255
effect_amount SET_ATTRIBUTE CASTLE_AGE_MARKET ATTR_TRAIN_BUTTON 255
Đường dẫn | Trả lời | Trích dẫn
 +pablo@voobly

Voobly Team


Joined:  30 Tháng 11 2018
Posts: 2298
đã Post31 Tháng 3 2023 - 12:46 pm
yes, that should be it. Plus the two constants for SET_ATTRIBUTE and ATTR_TRAIN_BUTTON
Đường dẫn | Trả lời | Trích dẫn
 Denver17


Joined:  4 Tháng 6 2022
Posts: 95
đã Post31 Tháng 3 2023 - 1:15 pm
we were unable to build the market, but the barbarians are still able to build the market!! Could you help me out!
Đường dẫn | Trả lời | Trích dẫn
 +pablo@voobly

Voobly Team


Joined:  30 Tháng 11 2018
Posts: 2298
đã Post31 Tháng 3 2023 - 1:17 pm
what do you mean barbarians? The AI?
Đường dẫn | Trả lời | Trích dẫn
 +pablo@voobly

Voobly Team


Joined:  30 Tháng 11 2018
Posts: 2298
Đã được sửa31 Tháng 3 2023 - 2:17 pm bởi+pablo@voobly
Try to add also that the market is not built by a villager anymore:
Code:
#const ATTR_TRAIN_LOCATION 42 effect_amount SET_ATTRIBUTE DARK_AGE_MARKET ATTR_TRAIN_LOCATION -1
Đường dẫn | Trả lời | Trích dẫn
 Denver17


Joined:  4 Tháng 6 2022
Posts: 95
đã Post31 Tháng 3 2023 - 1:36 pm
Yes, the AI
Đường dẫn | Trả lời | Trích dẫn
 +pablo@voobly

Voobly Team


Joined:  30 Tháng 11 2018
Posts: 2298
đã Post31 Tháng 3 2023 - 1:40 pm
Then try the train location thing. It's likely that the AI doesn't need the buttons to play and that's why it could still access the market. By removing the building from the villagers, it should be definitive.
Đường dẫn | Trả lời | Trích dẫn
 Denver17


Joined:  4 Tháng 6 2022
Posts: 95
đã Post31 Tháng 3 2023 - 2:09 pm
How to do that? I mean how to make villagers get removed from building market?
Đường dẫn | Trả lời | Trích dẫn
 +pablo@voobly

Voobly Team


Joined:  30 Tháng 11 2018
Posts: 2298
đã Post31 Tháng 3 2023 - 2:16 pm
This:
Code:
#const ATTR_TRAIN_LOCATION 42 effect_amount SET_ATTRIBUTE DARK_AGE_MARKET ATTR_TRAIN_LOCATION -1
Đường dẫn | Trả lời | Trích dẫn
 Denver17


Joined:  4 Tháng 6 2022
Posts: 95
đã Post31 Tháng 3 2023 - 2:20 pm
ok sorry. I just replaced 255 with -1, forgot abt changing button to location
Đường dẫn | Trả lời | Trích dẫn
 Denver17


Joined:  4 Tháng 6 2022
Posts: 95
đã Post31 Tháng 3 2023 - 2:55 pm
No, But they are still building market, should I put both train button and train location?


Đường dẫn | Trả lời | Trích dẫn
1[2]34
Hiển thị 16 - 30 ngoài 50 Bài viết
Nhảy Forum
1 User(s) làđọc chủ đề này 30 phút vừa qua
0Thành viên1 Khách

Dân số hiện tại:
Photos of Voobly Players (37 Người chơi)
TDII (28 Người chơi)
This is War 2016 (27 Người chơi)
TIW 2020 Map votes (22 Người chơi)
1.6 reward campaing (12 Người chơi)
Chủ đề tích cực nhất tuần qua: