StringBuilder skill = new StringBuilder();
skill.Append("Ability Name");
ORKFramework.LearnAbility.Learn(ComponentHelper.GetCombatant(gameObject), ref skill);
An object reference is required for the non-static field, method, or property 'LearnAbility.Learn(Combatant, ref StringBuilder)' [Assembly-CSharp]csharp(CS0120)
It looks like you're new here. If you want to get involved, click one of these buttons!
combatant.Abilities.Learn(id, level, true, true);
id is the ID/index of the ability, level the level you want to learn - the rest is for showing notification and console texts.
combatant naturally is the combatant who should learn the ability :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Generally, this is the same function that's used by ORK to learn a new ability, so I'm pretty sure that it's working :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!