This is my first true scripting project (all I have done before were some easy money scripts), and I am very glad the people in this forum respond so kind to noobish questions like mine. Your help is very appreciated 
But it seems I still get it wrong.
Code:
declare_counter troops
monitor_event CharacterComesOfAge FactionIsLocal and FactionLeaderAttribute Authority = X (ofcourse the actual code has real number, and this monitor_event is repeated 11 times for all posible Authority values, and they all set the counter troops 1)
set_counter troops 1
end_monitor
if I_CompareCounter troops = 1
create_unit Caernarvon, Helwyr, num 2, exp 0, arm 0, wep 0
set_counter troops 2
end_if
I just cant see the mistake here.
CharacterComesOfAge has both the exports faction and character_record, so FactionIsLocal and FactionLeaderAttribute Authority should work.