If you want it to happen every time the other conditions are present, delete the line.
If you want it to hit 75% of the time, change the percentage value to 25.
If you want the guy to have to stand in the same settlement for 10 turns to gain the ancillary, remove randomness and use a hidden counter trait instead.
You gave me three options to choose so I thank you three times