Auto-translated
I once shared an algorithm for obtaining secondary skills on the community forum. I propose a slightly adapted version of the GetSecSkill() procedure, which is responsible for generating secondary skills in the game (H3). Comments are included.