Hello everyone

This tutorial will explain how AOR works and how to work with it. This tutorial assumes that you have some basic knowledge of Rome II modding and that you know how to process a startpos.
Tools needed will be PFM and the Assembly Kit.

1) REGION UNIT RESOURCES

Spoiler Alert, click show to read: 

You have seen in your campaigns why for example you only get Greek AOR units in Greece, Celtic ones in Gaul etc. This is because AOR units are tied to a so called "resource". This "resource" is then tied to the region(s) that this unit will be available to.
Let's start by adding our own entry in region_unit_resources_tables. We will call it "DEMO_AOR_Hoplites"


The string column here is irrelevant, as localisation in Rome II is government by the .loc files




2) TYING THE RESOURCE TO UNITS


Spoiler Alert, click show to read: 

Once that is all done, let's tie our resource to a unit. For this demonstration, I will go with the good old classic Greek Hoplites. Head over to main_units_tables. Find the column region_unit_resource_requirment and add our newly created resource there.



3) ADDING IT TO THE STARTPOS

Spoiler Alert, click show to read: 

That is all what we needed to do on PFM. Open up the Assembly Kit, and just as before, go to the region_unit_resources table and add the resource entry there as well. It is needed so that AK can load it up in the next step.


Now for the magic to happen, go to start_pos_regions_to_unit_resources. Find the region you want to tie the resource to and add a new entry there for it. In this example you can see me doing it for Athens on the Grand Campaign.

Once you are done with that, process startpos and add the startpos file into your pack.


4) IN-GAME RESULTS

So let's see now in-game what we actually ended up making. Let's boot up Antigonid Macedon and see what they are up to.
Spoiler Alert, click show to read: 


Huh, suddenly they don't have access to Hoplites anymore. Let's travel a bit further south and see what the Athenians are doing.

Well well well, would you look at that, they can recruit them!



And that's how you do AOR! If you have any questions, reply down below!