In this tutorial we’ll set up the equipment slots and slot set templates of our status system.
Equipment slots are where a combatant can equip equipment (e.g. weapons, armor, etc.) on. We’ll set up the following equipment slots:
- weapon
- shield
- armor
- accessory
Learn more about equipment, equipment slots and set templates in this documentation.
Equipment Slots #
Equipment slots are used to equip equipment on them – each equipment can occupy one or multiple slots, as well as block other slots. E.g. in our setup, large weapons or bows will block the shield slot.
Navigate to Inventory > Equipment Slots, you’ll see that we already have more set up than we actually need, so go ahead and remove the Helmet and Shoes equipment slots.
0: Weapon #
We’ll equip weapons on this slot. This slot is the only one that doesn’t allow unequipping, i.e. once a weapon is equipped, it can only be changed for a different weapon.
Content Information #
- Name
Set to Weapon. - Description
Set to Equip weapons.. - Sprite (Icon)
Select icons_481.
Click on the Find TMP Tag button to get the icon’s tag for displaying it in texts (via text codes). This uses TextMesh Pro’s sprite asset setup.
Base Settings #
- Allow Unequip
Disable this setting.
We want our combatants to always have a weapon equipped (once one is equipped).
1: Shield #
We’ll equip shields on this slot.
Content Information #
- Name
Set to Shield. - Description
Set to Equip shields.. - Sprite (Icon)
Select icons_39.
Click on the Find TMP Tag button to get the icon’s tag for displaying it in texts (via text codes). This uses TextMesh Pro’s sprite asset setup.
2: Armor #
We’ll equip armor on this slot.
Content Information #
- Name
Set to Armor. - Description
Set to Equip armor.. - Sprite (Icon)
Select icons_2.
Click on the Find TMP Tag button to get the icon’s tag for displaying it in texts (via text codes). This uses TextMesh Pro’s sprite asset setup.
3: Accessory #
We’ll equip accessories on this slot.
Content Information #
- Name
Set to Accessory. - Description
Set to Equip accessories.. - Sprite (Icon)
Select icons_20.
Click on the Find TMP Tag button to get the icon’s tag for displaying it in texts (via text codes). This uses TextMesh Pro’s sprite asset setup.
Equipment Slot Set Templates #
Equipment slot set templates define which slots will be occupied or blocked by an equipment. Equipment can use the templates for a reusable setup, as well as define their own custom setup.
We’ll only use slot set templates for our equipment, which is what you’ll usually do in your projects. Unless you have a setup that’s only needed by a single equipment, templates are the way to go and avoid unneeded work.
Navigate to Templates > Equipment Slot Set Templates, we’ll change the Default template and add additional templates.
0: 1handed Weapons #
This slot set will be used for 1handed weapons like daggers or swords.
- Name
Set to 1handed Weapons. - Equip Type
Select Single.
Equipment using this slot set will only use 1 slot.
Equipable On #
These settings define the equipment slots equipment will be equipped on.
Click on Add Equipment Slot.
- Equipable On
Select Weapon.
1: 2handed Weapons #
This slot set will be used for larger weapons like bows or hammers. While still equipping them in the weapon slot, we’ll also block the shield slot.
Copy the 1handed Weapons slot set and change the following settings.
- Name
Set to 2handed Weapons.
Block Slot #
These settings define the equipment slots that’ll be blocked by the equipment.
Click on Add Equipment Slot.
- Equipable On
Select Shield.
2: Shields #
This slot set will be used for shields.
Copy the 1handed Weapons slot set and change the following settings.
- Name
Set to Shields.
Equipable On #
- Equipable On
Select Shield.
3: Armor #
This slot set will be used for armor.
Copy the Shields slot set and change the following settings.
- Name
Set to Armor.
Equipable On #
- Equipable On
Select Armor.
4: Accessories #
This slot set will be used for accessories.
Copy the Shields slot set and change the following settings.
- Name
Set to Accessories.
Equipable On #
- Equipable On
Select Accessory.
Save Changes #
And that’s it for the equipment slot setup.
Don’t forget to save your changes by clicking on Save Settings at the bottom of the editor.
Next, we’ll start setting up equipment – weapons.