Common tasks

Read a skill’s value and level. The value can have a fraction, such as 3.4. The level is that value rounded down, so 3.

float value = CustomSkills.Get(Mod.Id, "baking");
int level = CustomSkills.Level(Mod.Id, "baking");
Log.Info("Baking: " + value + " (level " + level + ")");

Set a skill to an exact value, or take some away.

CustomSkills.Set(Mod.Id, "baking", 5f);
CustomSkills.Add(Mod.Id, "baking", -1f);

Show a message in the skill banner.

if (!CustomSkills.QueueBanner("The oven is warm."))
    Log.Warn("The banner was not queued.");

Hide your skills for the rest of this session.

CustomSkills.Clear(Mod.Id);