Dear colleagues,
I need your help (or some helpful link I have missed) with developing a simple campaign script. My intention is to introduce the Europa Barbarorum genial method of detecting which unit size setting the player uses into the RTR: Extended Realism mod.
I know already that the "campaign script" which is supposed to run only once when a campaign starts is triggered by a line at the bottom of "descr_strat.txt" file.
So I have added the "UnitSize" trait to the ExRM trait files and I have also added a line to the "descr_strat.txt" file for my new file "UnitSize_script.txt". This script file is supposed to give appropriate UnitSize trait to faction leaders of all factions based on the ratio of the garrison of one of human player´s cities to the city's population.
I am quite sure that the script was indeed loaded, because it also contains "console_command toggle_perfect_spy" line and this feature works well.
However (and this is where I have hit the wall for now) the dam*ed thing is NOT giving the trait to faction leaders at all.![]()
If I give the trait to a faction leader manually, using the cheat console, it will work (thus the names used are also correct) and spread to all faction members by next turn, as it is supposed to.
CONCLUSION-The trait system as such works well for ExRM, the script, apparently, is loading in ExRM, but for some strange reason it does not work together. Any ideas why? My hypothesis is that the script, which runs only once, misses the moment of "SettlementTurnStart" - the question is HOW TO SYNCHRONIZE THEM? Or is it possibly caused by something completely different?![]()
To moderators - please forgive me and delete this thread - my "mysterious problem" proved to be an overlooked typo error!![]()
![]()
![]()
Bookmarks