[GS] Modifiers to create a civ ability that grants discount on unit/building purchase.

ChrisWJN

Chieftain
Joined
Mar 12, 2019
Messages
43
Location
Canada
Anyone know an easy way to do this?
Right now I'm using MODIFIER_PLAYER_CITIES_ADJUST_UNIT_PURCHASE_COST
with arguments Amount: -30, UnitType: ALL.

Not working atm. Anyone have any ideas?
 
I have no experience with this, so this is only my intuition: it may expect positive number as a value, and possibly the value itself is in percents.
 
Code:
Modifiers
HOLY_ORDER_MISSIONARY_DISCOUNT_MODIFIER		MODIFIER_PLAYER_CITIES_ADJUST_UNIT_PURCHASE_COST

ModifierArguments
HOLY_ORDER_MISSIONARY_DISCOUNT_MODIFIER		Amount		30
HOLY_ORDER_MISSIONARY_DISCOUNT_MODIFIER		UnitType	UNIT_MISSIONARY
There is no UnitType called "ALL".

Argument for Column "Value" is only "ALL" where Column "Name" is "Type" and is only used with the Modifiers
Code:
GOD_OF_HEALING_UNIT_HEALING_MODIFIER
DEAD_SEA_ADJACENT_UNITS_ADJUST_HEAL_PER_TURN
GREATPERSON_ABU_AL_QASIM_AL_ZAHRAWI_ACTIVE_HEAL_BONUS
MOD_IGNORE_TERRAIN_COST
MEDIC_INCREASE_HEAL_RATE
APOSTLE_CHAPLAIN
 
DynamicModifiers
Code:
ModifierType	CollectionType	EffectType
MODIFIER_PLAYER_CITIES_ADJUST_BUILDING_PURCHASE_COST	COLLECTION_PLAYER_CITIES	EFFECT_ADJUST_BUILDING_PURCHASE_COST

Modifiers
Code:
ModifierId	ModifierType
MINOR_CIV_VALLETTA_PURCHASE_CHEAPER_WALLS_BONUS		MODIFIER_PLAYER_CITIES_ADJUST_BUILDING_PURCHASE_COST
ModifierArguments
Code:
ModifierId					Name				Value
MINOR_CIV_VALLETTA_PURCHASE_CHEAPER_WALLS_BONUS		Amount			50
MINOR_CIV_VALLETTA_PURCHASE_CHEAPER_WALLS_BONUS		BuildingType		BUILDING_WALLS
From looking at the game database it would appear that each and every unit and building to be affected must be listed individually under its own modifier. There does not appear to be an EffectType that is "All Buildings" or "All Units" for adjusting purchase cost for a player.
 
Back
Top Bottom