I'm trying to make the player character learn an ability through script. I'm using the code
StringBuilder skill = new StringBuilder();
skill.Append("Ability Name");
ORKFramework.LearnAbility.Learn(ComponentHelper.GetCombatant(gameObject), ref skill);
I'm not sure if this is the correct way to pass in the ability I want the character to learn. I'm also getting an error saying
An object reference is required for the non-static field, method, or property 'LearnAbility.Learn(Combatant, ref StringBuilder)' [Assembly-CSharp]csharp(CS0120)