This tutorial explains only a concept that may be used when making AORs
In order to make an unit recruitable only in one (or another) settlement you put an hidden resource in it, and then you use the presence of the resource as a condition in EDB.
Now, the hardcoded limit for those resources is about 64, meaning "only" 64 AORs are avaiable, if you use all hidden_resources for this purpose. But hidden resources can be used also for others purposes, and waste them (at least, lot of them) in AORs is evil.
To bypass this limit, the hidden resource Power set must be used, meaning that with n resources, you can make up 2n AORs.
Example
Spoiler Alert, click show to read:
with just 9 hidden resources put in this way, you can make 512 AOR - far more than the EDU possibility, since hard-coded units limit is 500.
and, remembering hard-coded region limit is 199, you will need only 8 of them (256 AORs) - leaving the other 56 for other purposes.
Hope this to be useful