buildings and resources

Che Guava

The Juicy Revolutionary
Joined
Apr 19, 2005
Messages
5,955
Location
Hali-town,
another random question: is it possible to create a building that will add a specific resource to the city it is in, and only that city?
 
Yep, you need to use the <FreeBonus> and <iNumFreeBonuses> tags.
 
Wow. that's nice. That will add it only to that city? hmmm... thanks for the knowledge, lopez...
 
TheLopez said:
Yep, you need to use the <FreeBonus> and <iNumFreeBonuses> tags.

I thought those tags added a resource to the trade network's pool, as if the building was "producing" a resource like a terrain improvement. I'd think there would need to be new tags limiting the number of cities a resource could apply to by proximity before CG could mod a city-specific resource. ?_?
 
Well, you are correct GRM, it will add it to the city and if the city is connected to the civilizations trade network it will be shared to the rest of the cities.

@ Che - if that is the behavior you are looking for then using the tags would work. Otherwise you will need to write some new SDK code to add a new tag and to prevent the sharing of the resource with other cities.
 
TheLopez said:
Well, you are correct GRM, it will add it to the city and if the city is connected to the civilizations trade network it will be shared to the rest of the cities.

@ Che - if that is the behavior you are looking for then using the tags would work. Otherwise you will need to write some new SDK code to add a new tag and to prevent the sharing of the resource with other cities.

Gotcha. One other question: I noticed that the <iNumFreeBonuses> value for wonders that use this is -1, in spite of the fact that you get 5 (i think...) hit singles etc. Is there any way to change it so that you would get only 1 resource added to the pool, or woud that take some SDK work too?
 
Back
Top Bottom