When you spawn the character (in descr_strat or campaign_script), add the 'label' tag to their character line. Here is an example for descr_strat:
Code:
character Thorin, named character, male, heir, age 22, x 400, y 420, portrait Thorin, hero_ability DWARVES, label thorin_1
traits Thorin 1, FactionHeir 1, Hero 1, DwarvenRace 1, HeroAbilityDwarf 1, Brave 2, GoodCommander 2, GoodDefender 2, HaleAndHearty 1, Loyal 2, LoyaltyStarter 1, RansomChivalry 1, ReligionStarter 1
ancillaries prince_dwarves, dwarven_music, ironhills_sword, oakenshield, orcrist
army
unit Erebor Bodyguard exp 1 armour 0 weapon_lvl 0
and for campaign_script:
Code:
spawn_army
faction turks
character GandalfA, named character, x 164, y 379, direction S, hero_ability GANDALF, battle_model gandalf, label gandalf_1
unit Dunedain Elite Cavalry exp 4 armour 1 weapon_lvl 1
end
My mod doesn't use surnames, but I think that's correct that leaders and heirs cannot keep their surnames once they get their expanded.txt titles. However, they can still have epithets and titles concurrently. I'm not sure what you mean by Arab characters not having surnames. That could simply be due to the fact that some factions don't have surname lists in descr_names.txt. There is certainly nothing special in that regard about the culture, and I think the only hard coded aspect of the islam religion is participation in jihads (although this isn't confirmed).