Almost.
So first you want to add an Output of type int to your SwordSkill function. This will add a return node that replaces the Set Sword Skill nodes in your screenshot above. (setting a variable twice does not work as the last SET always wins).
Then you can’t take Strength and Coordination separately so you need to add them together then divide by 4 instead of 2 and just take the floor of that number and route it to the return node.