[GS] more (dynamic) gold from razing barbarian camps

hdd

Chieftain
Joined
Oct 2, 2005
Messages
82
Location
Bucharest
hello there,

[Barbarian Clans Mode checked]

I was trying to modify the barbarian parameters to get more gold from raiding a barbarian camp.

I couldn't find the reference. Is it hardcoded?
When the unit is executing the command it calls "UNITCOMMAND_TREAT_WITH_CLAN_RAID" and it references "1_GoldAmount" present in the in-game description, but I can't seem to change this infamous "1_GoldAmount" (or the variable/paramenter affecting it).

Ideally, the amount of gold would vary. Either:
a) would be huge at the beginning and decrease with each raid
b) would increase when barbarian camp is coming closer to become an independent city
c) would be high, decrease between the raids and then raise gradually after a number of turns of "development".

It's pretty boring to always get the same precise amount of gold, which later in the game it kind of becomes irrelevant.

I've searched the Steam Workshop for mods and I couldn't find any reference. If it's there buried somewhere, I couldn't find it - and this is something pretty rare. All others mod ideas I've had were treated by others and I was happy to install.


I would appreciate any feedback.

thanks,
hdd
 
It is configured in Improvements.xml in the Base directory, looks like you can update "DispersalGold" to be a value other than 50 if you want to change it. But making this a dynamic value is beyond my skills.

Code:
<Improvements>
...
<Row ImprovementType="IMPROVEMENT_BARBARIAN_CAMP" Name="LOC_IMPROVEMENT_BARBARIAN_CAMP_NAME" Description="LOC_IMPROVEMENT_BARBARIAN_CAMP_DESCRIPTION" Icon="ICON_IMPROVEMENT_BARBARIAN_CAMP" PlunderType="NO_PLUNDER" BarbarianCamp="true" RemoveOnEntry="true" DispersalGold="50" TraitType="TRAIT_BARBARIAN" Appeal="-1"/>
...
</Improvements>
 
You cannot make anything in the database "dynamic" except via modifiers. Once the database completes loading Base Game, DLC, Expacs, Modes, and mods and the player is In-Game, the database is locked. I don't remember at the moment whether there is a player-level (ie, leader or civilization) modifier for adjusting the amount of gold a player gets for dispersing.

'1_GoldAmount' is just a localization placeholder reference to the amount set in the database so the game's User Interface screens and pop-ups can look up and then insert the proper gold amount at that position within the displayed text-string. It is only really meaningful within the lua script that controls what gets displayed to the player. It has no actual game effect.
 
It is configured in Improvements.xml in the Base directory, looks like you can update "DispersalGold" to be a value other than 50 if you want to change it. But making this a dynamic value is beyond my skills.

Code:
<Improvements>
...
<Row ImprovementType="IMPROVEMENT_BARBARIAN_CAMP" Name="LOC_IMPROVEMENT_BARBARIAN_CAMP_NAME" Description="LOC_IMPROVEMENT_BARBARIAN_CAMP_DESCRIPTION" Icon="ICON_IMPROVEMENT_BARBARIAN_CAMP" PlunderType="NO_PLUNDER" BarbarianCamp="true" RemoveOnEntry="true" DispersalGold="50" TraitType="TRAIT_BARBARIAN" Appeal="-1"/>
...
</Improvements>

really thank you both @LeeS & @Contravity for your replies.
I guess I am stuck with modifying the value accordingly.
 
Back
Top Bottom