Violet

Professions

On this page

Read your character's profession (life skill) progress: the level and EXP of each gathering and crafting profession, plus your shared crafting fatigue.

Not learned yet

Every getter returns 0 when the profession hasn't been learned, or when character data isn't available yet (e.g. while you're at the login screen).

The five professions:

ProfessionKindLevelEXP
HerbalismGatheringget_herbalism_level()get_herbalism_exp()
MiningGatheringget_mining_level()get_mining_exp()
SmithingCraftingget_smithing_level()get_smithing_exp()
Accessory CraftingCraftingget_accessory_crafting_level()get_accessory_crafting_exp()
AlchemyCraftingget_alchemy_level()get_alchemy_exp()

Levels & EXP

core.profession.get_herbalism_level() -> number

Returns your Herbalism level, or 0 if it isn't learned.


core.profession.get_herbalism_exp() -> number

Returns your current Herbalism EXP.


core.profession.get_mining_level() -> number

Returns your Mining level, or 0 if it isn't learned.


core.profession.get_mining_exp() -> number

Returns your current Mining EXP.


core.profession.get_smithing_level() -> number

Returns your Smithing level, or 0 if it isn't learned.


core.profession.get_smithing_exp() -> number

Returns your current Smithing EXP.


core.profession.get_accessory_crafting_level() -> number

Returns your Accessory Crafting level, or 0 if it isn't learned.


core.profession.get_accessory_crafting_exp() -> number

Returns your current Accessory Crafting EXP.


core.profession.get_alchemy_level() -> number

Returns your Alchemy level, or 0 if it isn't learned.


core.profession.get_alchemy_exp() -> number

Returns your current Alchemy EXP.

Fatigue

core.profession.get_fatigue() -> number

Returns your current crafting fatigue. Fatigue rises as you craft and caps how much you can make in a day; it recovers over time. Shared across the crafting professions.

Example

lua
core.log(string.format("Herbalism Lv.%d (%d exp)",
    core.profession.get_herbalism_level(),
    core.profession.get_herbalism_exp()))

core.log(string.format("Mining Lv.%d | Smithing Lv.%d | Alchemy Lv.%d",
    core.profession.get_mining_level(),
    core.profession.get_smithing_level(),
    core.profession.get_alchemy_level()))

if core.profession.get_fatigue() >= 200 then
    core.log_warning("Crafting fatigue is maxed — wait before crafting more")
end