User Tools

Site Tools


skill_slot

Skill Slot


A skill slot is a widget element for assigning a skill to (for example, a healing spell or physical ability).

Element Properties

IconPropertyDescription
Element IDID for the skill slot. This ID must be unique amongst other elements within the same widget. It is currently auto-generated but will be editable in a future update.

Scripting

You can access certain properties of a skill slot from a script by simply referencing the parent widget and the element by their unique IDs. See below for examples of assigning a skill to the built-in skill bar. In this case, we are assuming that “SKILL_0001” is defined in the Stats Editor, the skill has been given to the player via the Give Skill function, and the skill slot has an ID of “0001”.

Assigning a skill to a skill slot:

widget["skill_bar"].element["0001"].skill = "SKILL_0001";
skill_slot.txt · Last modified: 2022/12/19 21:40 by justin