You can do this using hidden resources. At the top of the EDB you will see a line that says hidden_resources, something like this:
Code:
hidden_resources crusade jihad arguin horde_target no_pirates no_brigands
.
There's a maximum of 64 hidden resources. In order to make it work for 199 regions you therefore need to use resource combinations in an ID string. This can be done with 2 or 3 hidden resource indicators per region, I used 2 which requires 21 resources. So edit it to look like:
Code:
hidden_resources i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 crusade jihad arguin horde_target no_pirates no_brigands
.
Then you use 2-resource indicator strings to define each region. The key here is always working up, so that no combination ever re-occurs. This is an example:
As you can see each "id" is unique. You take each id then and put it in the hidden resources section of descr_regions.txt:
Code:
Jiang-Ling_Province
Jiang-Ling
song
Chinese_Rebels
199 162 177
i1, i13
5
1
religions { daoxue 64 mahayana 30 theravada 0 tengriism 0 vajrayana 0 islam 6 catholic 0 heretic 0 }
And then you can refer to it in the EDB like so:
Code:
recruit_pool "Daikyu Bushi" 5 0.5 8 0 requires factions { song, } and hidden_resource i1 and hidden_resource i13
.
You know which region it is by the presence of those two hidden resources which are only present together in that region.