Information
I have verifed my game files (Steam only)
YesI have disabled all mods
YesI am running the latest game update
YesRequired
Summary
AI Counts can request gold from HoF more frequently than AI DukesDescription
According to game code, AI Counts and Dukes are discouraged from asking HoF for gold unless the latter has at least 3000 gold. However, there's a typo that prevents said feature from applying to Counts correctly. This is an issue I found through game code, so I'm going to refer to it below.Steps to reproduce
1. Find the code for Ask for Gold decision (hof_ask_for_gold_interaction).2. Notice how "ai_potential" (the list of conditions for AI to begin considering using this decision at all) has the following text in it: "highest_held_title_tier > tier_barony". Meaning, only Counts, Dukes, Kings and Emperors can request gold, but not Barons.
3. Look at the following lines of code in "ai_will_do" (affects the odds of AI selecting this decision):
modifier = { # Counts get a bad 'exchange rate' due to their low income.
highest_held_title_tier < tier_county
scope:recipient.gold < 3000
add = -50
}
modifier = { # Dukes are also somewhat reluctant to request gold if not independent.
highest_held_title_tier = tier_duchy
is_independent_ruler = no
scope:recipient.gold < 3000
add = -25
}
As we can see, "highest_held_title_tier < tier_county" should be replaced with "highest_held_title_tier = tier_county" for the code to work correctly. The bug is clearly there as Barons are not allowed to request gold, so using "<" doesn't make sense at all.
Game Version
1.9.1Platform
WindowsAdditional Information
Affected Feature
- AI
Save Game
Other Attachments

- 2