I want to make a sciprt in the Campaign_Scirpt.txt that add peatants/militia units when a settlement is besieged could somebody help me with the proper syntax
If Settlement X is besieged
And If Settlement X belongs to Faction Y
And If Settlement X is a City
And If Settlement X level is Town
And If Settlement X has a garrison of less than 16 units
Add 4 Units, basic militia unit belonging to Faction Y
And If Settlement X level is Large Town
And If Settlement X has a garrison of equal to or less than 12 units
Add 8 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 16 units
Add 4 Units, basic militia unit belonging to Faction Y
And If Settlement X level is City
And If Settlement X has a garrison of equal to or less than 8 units
Add 12 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 12 units
Add 8 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 16 units
Add 4 Units, basic militia unit belonging to Faction Y
And If Settlement X level is Large City
And If Settlement X has a garrison of equal to or less than 4 units
Add 16 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 8 units
Add 12 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 12 units
Add 8 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 16 units
Add 4 Units, basic militia unit belonging to Faction Y
And If Settlement X level is Large City
And If Settlement X has a garrison of equal to 1 units
Add 19 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 4 units
Add 16 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 8 units
Add 12 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 12 units
Add 8 Units, basic militia unit belonging to Faction Y
And If Settlement X has a garrison of equal to or less than 16 units
Add 4 Units, basic militia unit belonging to Faction Y
And If Settlement X is a Castle
And If Settlement X level is Town
And If Settlement X has a garrison of less than 16 units
Add 4 Units, peastants unit belonging to Faction Y
And than have the same thing with Castle but instead of Militia units have Peasant Units