ORK Framework Logo - RPG Editor for Unity
  • ORK 4 BETA
  • Features
  • Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK

ORK 4 Documentation

  • Getting Started
    • Welcome
    • First Steps (Unity)
  • Features
    • The Status System
    • Schematics
    • Schematic Nodes
    • Dialogue Importer
    • Variables
    • Selected Data
  • Components
    • Battle Components
    • Combatant Components
    • Control Components
    • Cursor Prefab Components
    • Game Starters
    • Interactable Components
    • Move AI Components
    • Scene Setup Components
  • Editor
    • The ORK 4 Editor
    • Sections & Sub-Sections
    • Node Editor
    • Schematic Editor
    • Asset Sources
    • Unity Overlay Toolbar
  • Section: System
    • System Settings
    • Languages
    • Organizer Types
    • Game States & Conditions
    • General Condition Templates
    • Object Pools
    • Prefab Savers
    • Scene Connections
  • Section: Controls
    • Game Controls
    • Interaction Settings
    • Player Controls
    • Camera Controls
    • Input Keys
    • Control Maps
    • Camera Positions
    • Battle Camera
  • Section: Gameplay
    • Game Settings
    • Formulas
    • Difficulties
    • Shortcut Slots & Settings
    • Custom Settings & Global Custom Settings
    • Global Machines
    • Machine Templates
  • Section: Status
    • Status Values
    • Status Effects
    • Attack Modifiers
    • Defence Modifiers
    • Abilities & Ability Developments
    • Status Developments
    • Research Trees
    • Damage Types
    • Status Bonuses & Templates
    • Status Condition Templates
  • Section: Inventory
    • Inventory Settings
    • Inventory Containers
    • Currencies
    • Items
    • AI Rulesets
    • Crafting Recipes
    • Equipment Slots & Slot Set Templates
    • Equipment & Available Equipment Templates
    • Shops
    • Loot
  • Section: Combatants
    • Combatants
    • Combatant Groups
    • Class Slots
    • Classes
    • Factions & Faction Benefits
    • Animations
    • Move AIs
    • Formations
    • Action Combos
  • Section: Battles
    • Battle Systems
    • Turn Based Battles
    • Active Time Battles
    • Real Time Battles
    • Phase Battles
    • Battle Spots
    • Battle AIs
    • Battle Actions Settings
    • Special Commands Settings
    • Target Settings
    • Target Selection Templates
    • Battle Range Templates
    • Battle Grid Settings
    • Battle Grid Highlights
    • Battle Grid Cell Types
    • Battle Grid Formations
  • Section: Content
    • Content Types
    • Music
    • Sound Templates
    • Areas
    • Teleports
    • Quests & Quest Tasks
    • Logs & Log Texts
    • Object Contents
  • Section: UI
    • UI Settings
    • UI Layers
    • UI Layouts
    • UI Boxes
    • HUDs
    • Notifications
    • Cursor Settings
  • Section: Menus
    • Start Menu
    • Save Game Settings
    • Option Categories
    • Menu Screens
    • Menu Requirements
    • Battle Menus
    • Loot Dialogues
    • Item Collection
    • Combatant Selections
    • Quantity Selections
    • Shop Layouts
  • Section: Texts
    • Text Settings
    • Formatting Settings
    • Flying Texts
    • Use Cost Display
    • Status Preview Display
    • Bonus Display
    • Status Change Display
    • Console Settings & Console Types
    • Text Codes
  • Sections: Editor
    • Editor Settings
    • Backups
    • Variables
    • Plugins
  • Scripting
    • Access Handler
    • Custom Nodes
    • Custom Save Data
    • Custom Component Save Data

ORK 4 Tutorials

  • ORK 4 Unity Quickstart Tutorials (3D)
    • ORK 4 Unity Quickstart 3D
    • 01 Initial ORK Setup
    • 02 Player Setup
    • 03 Music & Scenes
    • 04 UI System Setup
    • 05 UI Boxes
    • 06 Flying Texts
    • 07 Status Values
    • 08 Status Effects
    • 09 First Abilities
    • 10 Fighter Setup
    • 11 First Enemies & Battle AI
    • 12 Battle System Setup
    • 13 Animating Battle Start and End
    • 14 Random Battles
    • 15 Animating Actions
    • 16 Player Battle HUD
    • 17 Elemental Attacks
    • 18 Animating More Actions
    • 19 Inventory & Loot
    • 20 Equipment
    • 21 Loot, Start Equipment & Viewers
    • 22 Magic Abilities
    • 23 Caster Setup
    • 24 More Enemies
    • 25 Start Menu & Save Games
    • 26 Menu Screens
    • 27 Interactions
    • 28 Item Collectors
    • This Is Not The End
    • Quickstart Extended
      • Unity UI: Interaction HUD
  • Schematics Tutorials
    • UI Animation Schematics
  • UI Tutorials
    • Unity UI: Initial Setup
    • Unity UI: Interaction HUD

ORK 4 Extensions

  • Plugins
    • Save Game Compression Plugin
  • Schematic Nodes
    • Footstepper Nodes (Unity)
  • Scripts
    • A* Pathfinding Movement Component (Unity)
    • PolyNav 2D Movement Component (Unity)
    • Cinemachine Camera Control Type (Unity)
    • Rewired Input Key (Unity)
    • Unity Legacy Input Key (Unity)
    • Core GameKit Wrapper (Unity)
    • Pool Boss Wrapper (Unity)
View Categories
  • Guide
  • ORK 4
  • ORK 4 Tutorials
  • ORK 4 Unity Quickstart Tutorials (3D)

20 Equipment

In this tutorial we’ll add equipment to the game.

Weapons, armor … things a combatant can wear. Equipment usually gives status bonuses, but can also be used to add abilities while equipped, override animations and do many other things. Equipment is equipped on equipment slots.

We’ll set up:

  • equipment slots
  • equipment slot set templates
  • equipment

Let’s get to it!

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. We’ll use a simple setup where each equipment will only occupy one slot.

Open the ORK editor and navigate to Inventory > Equipment Slots.

You’ll notice that there is already a bunch of them set up, but we’ll only use these 3:

  • Weapon
  • Armor
  • Accessory

So, remove the following 3 equipment slots by selecting them and clicking on the Remove button above the data list:

  • Shield
  • Helmet
  • Shoes

Now, select the Weapon equipment slot, we’ll take a quick look at the settings – we don’t need to change anything on any of the equipment slots.

Content Information #

As usual, this is where you define the name, icon, etc.

Base Settings #

You can set an equipment slot to be hidden, if unequipping is allowed (i.e. you can change equipment but not remove it), and if the slot’s equipment will contribute to the wearer (e.g. this can be used to create an off-hand weapon to switch to).

Empty Slot Content #

This is a separate content information that’s used as the equipment content of the slot when it’s not equipped with anything.

Unavailable Slot Content #

This is a separate content information that’s used as the equipment content of the slot when the slot is not available to the combatant.

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 Inventory > Equipment Slot Set Templates, we’ll change the Default template and add two additional templates.

0: Weapon #

This slot set will be used for weapons.

  • Name
    Set to: Weapon
  • Equip Type
    Select: Single
    Equipment using this slot set will only use 1 slot.

Equipable On #

These settings define the equipment slots the equipment will be equipped on.

Click on Add Equipment Slot.

  • Equipable On
    Select: Weapon

1: Armor #

This slot set will be used for armor.

Copy the Weapon slot set and change the following settings.

  • Name
    Set to: Armor

Equipable On #

  • Equipable On
    Select: Armor

2: Accessory #

This slot set will be used for accessories.

Copy the Armor slot set and change the following settings.

  • Name
    Set to: Accessory

Equipable On #

  • Equipable On
    Select: Accessory

Sword #

Our first equipment will be a good old sword.

Navigate to Inventory > Equipment, we’ll change the Default equipment and add additional equipment.

Content Information #

  • Name
    Set to: Sword
  • Description
    Set to: <bonus>
    This text code will list the bonuses of the equipment.
    How bonuses are listed is defined in Texts > Bonus Display (we’ll keep the default setup).
  • 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 #

  • Content Type
    Select: Equipment

Price Settings #

  • Sellable
    Enable
  • Buy Price
    Select: Value > Value
    Set the value to: 30

Prefab Settings #

We’ll set up a prefab that’ll displayed by Equipment Viewer components. They’re used to show equipment of a combatant on it’s object.

  • Viewer Prefab
    Select: Sword

Equipment Settings #

This is where we define the equipment slots the equipment can be equipped on (using our templates). You can also use this to override base/counter attacks or animations of the wearer.

Equipment Slot Set 0 #

  • Slot Set Type
    Select: Template
  • Template
    Select: Weapon

Fixed Status Bonuses #

We’ll use a custom bonus to give a fixed status value bonus (to ATK).

  • Custom Bonus
    Enable

Status Bonuses #

Click on Add Status Bonus.

  • Status Bonus
    Select: Status Value
  • Status Value
    Select: ATK
  • Bonus Value
    Set to: 5

Axe #

The axe gives more ATK bonus and also a bonus on DEF. It’ll also use a different prefab to display.

Copy the Sword equipment and change the following settings.

Content Information #

  • Name
    Set to: Axe
  • Sprite (Icon)
    Select: icons_375

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 #

Price Settings #

  • Buy Price
    Set the value to: 40

Prefab Settings #

  • Viewer Prefab
    Select: Axe_Small

Fixed Status Bonuses #

We’ll increase the ATK bonus and add a DEF bonus.

Status Bonuses > Status Bonus 0 #

  • Status Bonus
    Set to: 15

Status Bonuses > Status Bonus 1 #

Click on Add Status Bonus.

  • Status Value
    Select: DEF
  • Status Bonus
    Set to: 5

Staff #

The staff gives a MATK bonus and uses a different prefab to display.

Copy the Sword equipment and change the following settings.

Content Information #

  • Name
    Set to: Staff
  • Sprite (Icon)
    Select: icons_476

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 #

Price Settings #

  • Buy Price
    Set the value to: 20

Prefab Settings #

  • Viewer Prefab
    Select: WoodenStaff

Fixed Status Bonuses > Status Bonuses > Status Bonus 0 #

  • Status Value
    Select: MATK
  • Status Bonus
    Set to: 8

Leather Armor #

Next, we’ll add an armor.

Let’s start from scratch – add a new equipment.

Content Information #

  • Name
    Set to: Leather Armor
  • Description
    Set to: <bonus>
  • 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.

Base Settings #

The rest of the equipment will not use a prefab.

  • Content Type
    Select: Equipment

Price Settings #

  • Buy Price
    Set the value to: 25

Equipment Settings > Equipment Slot Set 0 #

  • Slot Set Type
    Select: Template
  • Template
    Select: Armor

Fixed Status Bonuses #

We’ll give a fixed bonus to DEF and MDEF.

  • Custom Bonus
    Enable

Status Bonuses #

Click on Add Status Bonus.

  • Status Bonus
    Select: Status Value
  • Status Value
    Select: DEF
  • Status Bonus
    Set to: 10

Click on Add Status Bonus.

  • Status Bonus
    Select: Status Value
  • Status Value
    Select: MDEF
  • Status Bonus
    Set to: 2

Cloth Vest #

Copy the Leather Armor equipment and change the following settings.

Content Information #

  • Name
    Set to: Cloth Vest
  • Sprite (Icon)
    Select: icons_6

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 > Price Settings #

  • Buy Price
    Set the value to: 15

Fixed Status Bonuses > Status Bonuses > Status Bonus 0 #

Gives 2 DEF bonus.

  • Status Bonus
    Set to: 2

Fixed Status Bonuses > Status Bonuses > Status Bonus 1 #

Gives 10 MDEF bonus.

  • Status Bonus
    Set to: 10

Poison Charm #

This accessory will grant immunity to poison.

Add a new equipment.

Content Information #

  • Name
    Set to: Poison Charm
  • Description
    Set to: Grants immunity to poison.
  • Sprite (Icon)
    Select: icons_18

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 #

  • Content Type
    Select: Equipment

Price Settings #

  • Buy Price
    Set the value to: 50

Equipment Settings > Equipment Slot Set 0 #

  • Slot Set Type
    Select: Template
  • Template
    Select: Accessory

Fixed Status Bonuses #

We’ll use a custom bonus to automatically remove the Poison status effect.

  • Custom Bonus
    Enable

Auto Status Effects #

Click on Add Status Effect Change.

  • Change
    Select: Remove
  • Status Effect
    Select: Poison

Stun Charm #

Copy the Poison Charm equipment – this one gives immunity to stun.

Content Information #

  • Name
    Set to: Stun Charm
  • Description
    Set to: Prevents being stunned.
  • Sprite (Icon)
    Select: icons_21

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 > Price Settings #

  • Buy Price
    Set the value to: 50

Fixed Status Bonuses > Auto Status Effects > Status Effect Change 0 #

  • Status Effect
    Select: Stun

Elemental Brooch #

One last accessory and we’re done – this time it gives bonuses to attack modifier attributes.

Add a new equipment.

Content Information #

  • Name
    Set to: Elemental Brooch
  • Description
    Set to: <bonus>
  • Sprite (Icon)
    Select: icons_17

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 #

  • Content Type
    Select: Equipment

Price Settings #

  • Buy Price
    Set the value to: 100

Equipment Settings > Equipment Slot Set 0 #

  • Slot Set Type
    Select: Template
  • Template
    Select: Accessory

Fixed Status Bonuses #

We’ll use a custom bonus to give a -25 bonus on all 4 elements.

  • Custom Bonus
    Enable

Status Bonuses #

Click on Add All Bonus next to the Attack Modifiers bold text to add a setup for all attack modifier attributes.

Now, set all element’s Defence Value Bonus to -25.

  • Defence Value Bonus
    Set to: -25

Save Changes #

And that’s it for now, since this is already getting quite long.

Save the changes using the Save Settings button at the bottom of the editor.

 

Next, we’ll add equipment loot, set the player’s start equipment and add an equipment viewer to the player’s prefab.

Table of Contents
  • Equipment Slots
    • Content Information
    • Base Settings
    • Empty Slot Content
    • Unavailable Slot Content
  • Equipment Slot Set Templates
    • 0: Weapon
      • Equipable On
    • 1: Armor
      • Equipable On
    • 2: Accessory
      • Equipable On
  • Sword
    • Content Information
    • Base Settings
      • Price Settings
      • Prefab Settings
    • Equipment Settings
      • Equipment Slot Set 0
    • Fixed Status Bonuses
      • Status Bonuses
  • Axe
    • Content Information
    • Base Settings
      • Price Settings
      • Prefab Settings
    • Fixed Status Bonuses
      • Status Bonuses > Status Bonus 0
      • Status Bonuses > Status Bonus 1
  • Staff
    • Content Information
    • Base Settings
      • Price Settings
      • Prefab Settings
    • Fixed Status Bonuses > Status Bonuses > Status Bonus 0
  • Leather Armor
    • Content Information
    • Base Settings
      • Price Settings
    • Equipment Settings > Equipment Slot Set 0
    • Fixed Status Bonuses
      • Status Bonuses
  • Cloth Vest
    • Content Information
    • Base Settings > Price Settings
    • Fixed Status Bonuses > Status Bonuses > Status Bonus 0
    • Fixed Status Bonuses > Status Bonuses > Status Bonus 1
  • Poison Charm
    • Content Information
    • Base Settings
      • Price Settings
    • Equipment Settings > Equipment Slot Set 0
    • Fixed Status Bonuses
      • Auto Status Effects
  • Stun Charm
    • Content Information
    • Base Settings > Price Settings
    • Fixed Status Bonuses > Auto Status Effects > Status Effect Change 0
  • Elemental Brooch
    • Content Information
    • Base Settings
      • Price Settings
    • Equipment Settings > Equipment Slot Set 0
    • Fixed Status Bonuses
      • Status Bonuses
  • Save Changes
Sitemap
  • ORK 4 BETA
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2 Hub
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK
  • Contact
  • Blog
  • Makinom
  • gamingislove.com
Categories
  • News (73)
  • ORK 2 (137)
    • Tutorial (137)
      • Game tutorial (50)
      • Gameplay (32)
      • How-to (55)
  • Release (156)
Search

© 2015 Gaming is Love e.U.

Disclosure: This site may contain affiliate links, which means I may receive a commission if you click a link and purchase something that I have recommended. While clicking these links won’t cost you any money, they will help me fund my development projects while recommending great assets!