BL Coding Finding out if a prisoner is recruitable

Users who are viewing this thread

headskull3

Recruit
I'm making a mod that recruits all your available prisoners with 1 click but I am stuck at trying to figure out how to get which prisoners are recruitable.
RecruitPrisonersCampaignBehavior seems to be the only thing handling it but it's protected. The other thing is the data sync thing but idk how that works or where that data ends up.

Finding anything related to writing mods for Bannerlord seem impossible on google, my first mod btw so be kind :smile:
 

headskull3

Recruit
IRecruitPrisonersCampaignBehavior campaignBehavior = Campaign.Current.GetCampaignBehavior<IRecruitPrisonersCampaignBehavior>();

This did the trick, you can also set the number of recruitables as well.
 
Upvote 0
Top Bottom