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.
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.
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.
#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