Adjacency bonus from building

Bluur

Chieftain
Joined
Dec 2, 2019
Messages
28
Is it possible to implement district adjacency bonus based on building? For example, create a building that would increase the adjacency bonus of a campus district.

Regards,
Bluur
 
EFFECT_RIVER_ADJACENCY
EFFECT_TERRAIN_ADJACENCY
EFFECT_IMPROVEMENT_ADJACENCY
EFFECT_FEATURE_ADJACENCY
EFFECT_DISTRICT_ADJACENCY

There doesn't appear to be one for Adjacent Resources, unfortunately.
 
Thanks good people. I haven't played around with modifiers yet in my modding. How do the modifiers get applied to a building?
 
Code:
	<BuildingModifiers>
		<!-- Adjust city garrison strength -->
		<Row>
			<BuildingType>BUILDING_PALACE</BuildingType>
			<ModifierId>PALACE_ADJUST_GARRISON_STRENGTH</ModifierId>
		</Row>
	</BuildingModifiers>
When a Building is placed in a city (like the Palace) or is completed from production or purchase, the modifier is applied. Usually the modifier is applied to the city only, but in the case of World Wonders, the modifier can be global in its effect, adjusting something Empire-Wide for that player.
 
OK, that makes sense. Are we limited to using existing modifiers or can we define our own?
 
We can create our own ModifierId designations in tables Modifiers and ModifierArguments. We can also designate an entirely new reference to a RequirementSetId as the data for either a OwnerRequirementSetId or a SubjectRequirementSetId in table Modifiers -- these new types of RequirementSetIds must then be defined within tables RequirementSets and RequirementSetRequirements.

As implied above we can create our RequirementSetId for tables RequirementSets and RequirmentSetRequirements. We can create our own RequirementId in table Requirements and RequirementArguments.

We can in table DynamicModifiers (when necessary) create our own new ModiiferType to be used in table Modifiers. Though generally we tend to use an existing ModifierType.

What we cannot do is create a new CollectionType or EffectType for use in table DynamicModifiers. Nor can we create a new sort of RequirementType for use in table Requirements, nor a new sort of RequirementSetType for use in table RequirementSets. Nor can we add new sorts of values for the Name column used in either table RequirementArguments or table ModifierArguments.
 
@LeeS I misunderstood one of your previous comments. The adjancey I am looking to apply are based on terrain and/or feature. Could this be done with the effects you mentioned previously?
 
Back
Top Bottom