Table of Contents

Method AllocateSkillPoints

Namespace
GrindFest
Assembly
GrindFest.dll

AllocateSkillPoints(string, int)

Spends available skill points to improve a specific skill.

public static void AllocateSkillPoints(string skillName, int amount)

Parameters

skillName string

The name of the skill to improve

amount int

Number of skill points to spend

Remarks

If you don't have enough skill points, skill doesn't exist or you don't meet the skill requirements, nothing will happen.

Basic skill point allocation:
// Spend 3 points on Fireball skill
Hero.AllocateSkillPoints("Fireball", 3);
Check available points before spending:
if (Hero.SkillPoints >= 1)
{
    Hero.AllocateSkillPoints("Heal", 1);
    Hero.Say($"Improved my healing! {Hero.SkillPoints} skill points remaining");
}
else
{
    Hero.Say("I don't have enough skill points!");
}