How are these region icons (such as in the picture below) added and removed to the region's display?
And how are their modifiers, descriptions and tooltips documented script wise?
An example from the game, pointing me to some files, may suffice.
Moderator: Pocus

Code: Select all
Region_AddModifier($ID_REG_BABYLONIA, $ID_MOD_REGION_RELIGIOUS_TROUBLES);


Thanks. Will double check that. Maybe I should have a duration of eternity (999?) and only remove region modifiers if the situation then changes, still checking each turn?Pocus wrote: ↑Mon Jun 08, 2020 7:46 am You know you'll put some load on the system, if you calculate, for each region, what is its distance to the nearest capital and then add a modifier. At least check reach region once and discard asap all water regions or regions controlled by world factions (they don't have a capital what's more).
Ok, may need some more guidance. Which column/position in the .csv file is the one for name and which one for text? Csv files are notoriously difficult to get an overview of and amend...Pocus wrote: ↑Mon Jun 08, 2020 7:46 am You can place you text in any text from 0 to 63 but we prefer to have some reserved for a particular usage (0 is system)
Make sure your text is in a text file, any text file, in the scenario directory. Double check the identifiers you specified for your name and text in modifiers.csv, are they really the same as the ones in your text file?
Check a working modifier and find through notepad++ where is its name (most modifiers don't have a text), then see if you had the same logic for your.

Ha ha, point taken...

EDIT: Finally got the text to work for my region modifiers! Put it in TEXT1.txt, directly within my mod folder under SCENARIOS.