This repository is has the purpose of serving as a universal place for all the small tools I write for my mate @Jaco-Daan whom is working on the Realms in Exile mod for the steam game: Crusader Kings 3.
MIT License
0
stars
1
forks
source link
Multiple effects and multiple items in effect block #2
It only evaluates the first effect block, thereby skipping the second effect block (which in this case holds the piece of code that we wanted to extract, namely the "add_trait_xp" part)
Another issue is that the code assumes the "add_trait_xp" (or whatever you're searching for inside the effect blocks) is the first thing in the effect block, so in cases like this:
There is a problem when reading the history files:
When there are 2 effects inside the same date, such as:
It only evaluates the first effect block, thereby skipping the second effect block (which in this case holds the piece of code that we wanted to extract, namely the "add_trait_xp" part)
Another issue is that the code assumes the "add_trait_xp" (or whatever you're searching for inside the effect blocks) is the first thing in the effect block, so in cases like this:
It will evaluate the "learn_language = ..." and skip over the "add_trait_xp" part