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

Status System Setup

  • START Status System Setup
  • 01 Status Values
  • 02 Status Development
  • 03 Attack/Defence Modifiers
  • 04 Status Effects
  • 05 Formulas
  • 06 Ability & Item Types
  • 07 Abilities Part 1: Attacks
  • 08 Abilities Part 2: Support & Sabotage
  • 09 Abilities Part 3: Elemental Magic
  • 10 Items
  • 11 Equipment Part 1: Slots & Slot Set Templates
  • 12 Equipment Part 2: Weapons
  • 12.5 (Optional) Equipment Part 2.5: Weapons
  • 13 Equipment Part 3: Shields, Armor & Accessories
  • 13.5 (Optional) Equipment Part 3.5: Shields, Armor & Accessories
  • 14 Equipment Part 4: Available Equipment Templates
  • 15 Loot
  • 16 Battle AIs
  • 17 Combatants Part 1: General Settings
  • 18 Combatants Part 2: Players
  • 19 Combatants Part 3: Enemies
  • 20 Combatant Groups
  • END Status System Setup

3D RPG Playground

  • START 3D RPG Playground
  • 01 Player Setup
  • 02 Start Menu
  • 03 First Interaction
  • 04 Music
  • 05 Areas
  • 06 Collecting Items
  • 07 Displaying Equipment
  • 08 Combatant Prefabs, Icons & Portraits
  • 09 Combatant Animations
  • 10 Camera Positions
  • ANIM 01 Battle Start/End Schematics
  • ANIM 02 Use, Cast & Camera
  • ANIM 03 Abilities & Items
  • ANIM 04 Physical Attacks
  • ANIM 05 Special Actions
  • BATTLE 01 Battle Menu
  • BATTLE 02 Prepare for Battle
  • TURN 01 Turn Based Setup
  • TURN 02 Turn Order HUD
  • ATB 01 Active Time Setup
  • ATB 02 Cast Times
  • ATB 03 Timebar HUD
  • BATTLE 03 The First Battle
  • BATTLE 04 Hunting Move AI
  • BATTLE 05 Spawning Combatants
  • 11 Save Games
  • MENU 01 UI Boxes
  • MENU 02 Template HUDs
  • MENU 03 Overview Menu
  • MENU 04 Menu Screens
  • 12 Shop
  • BATTLE 06 Random Battles
  • DUNGEON 01 Enter the Dungeon
  • DUNGEON 02 The Trapdoor
  • DUNGEON 03 Enemies on Level 1 & 2
  • DUNGEON 04 Traps on Level 3
  • DUNGEON 05 Going Deeper
  • 13 Bestiary (+MENU+ANIM)
  • QUEST 01 Hunting Quests (+MENU)
  • QUEST 02 Guard NPC
  • QUEST 03 Forest Ruin Cheese
  • QUEST 04 Witch NPC with Cheese
  • QUEST 05 Quest Mark HUDs
  • 14 Research Trees (+MENU)
  • CRAFT 01 Crafting Materials
  • CRAFT 02 Crafting Recipes
  • CRAFT 03 Crafting Menu
  • CRAFT 04 Crafting Proficiency & Critical Crafting
  • CRAFT 05 Materials Loot
  • 15 Changing Choice Dialogue
  • 16 Follow Me!
  • BATTLE 07 Sequence Loot Dialogue

3D Action RPG

  • START 3D Action RPG
  • 01 Status System Setup
  • 02 Player Setup
  • 03 Player Weapon
  • 04 Player Attacks
  • 05 Enemy: Chomper
  • 06 Chomper Attack
  • 07 Hit & Death
  • 08 HUDs
  • 09 Rolling on the Floor
  • 10 Enemy: Spitter
  • 11 Spit Attack
  • 12 Potion
  • 13 Grenade
  • 14 Item HUD
  • 15 Enemy: Grenadier
  • 16 Grenadier Melee Attacks
  • 17 Grenadier Flamethrower
  • 18 Item Drops
  • END 3D Action RPG

2D Grid Battle RPG

  • START 2D Grid Battle RPG
  • 01 Player Setup
  • 02 Prefab & Music Setup
  • 03 Randomizing Combatants
  • 04 UI Setup
  • 05 Battle Start, End & Phase Schematics
  • 06 Battle System Setup
  • 07 Battle Grid Setup
  • 08 Grid Move
  • 09 Forest Battle Grid
  • 10 Battle AI
  • 11 Ability Ranges
  • 12 Death & Use Schematics
  • 13 Attack Schematic
  • 14 Shoot Schematics
  • 15 Battle Selection Interaction
  • END 2D Grid Battle RPG

Schematics

  • Simple Start Schematic
  • Battle Start Schematic
  • Battle End Schematic
  • Moving to Target and Back
  • Animating a Base Attack
  • Animating a Magic Ability
  • Grid Movement
  • Open and Close UI Animations
  • Flying Text Mover

UI Setups

  • Unity UI: Initial Setup
  • Unity UI: TextMesh Pro Setup
  • Unity UI: UI Box
  • Unity UI: Flying Text
  • Unity UI: Dragging Notification
  • Unity UI: Interaction HUD
  • Unity UI: Simple Player HUD
  • Unity UI: Quest HUD
  • Unity UI: Shortcuts HUD
  • Unity UI: Currency HUD
  • Unity UI: Tooltip HUD
  • Unity UI: Control HUD
  • Unity UI: Attack Modifiers
  • Unity UI: Defence Modifiers

Gameplay Bits

  • Combining Input Origins
  • Combining Status Value Flying Texts
  • Fun With Flying Text
  • HUD Effects With Conditional Schematics
  • Inventory Containers
  • Multi Interaction Controllers
  • World Space HUD
  • World Space Dialogue
  • Home
  • Guide
  • Tutorials
  • 3D RPG Playground
  • 07 Displaying Equipment

07 Displaying Equipment

Table of Contents
  • Equipment Prefabs
    • 0: Dagger 1
      • Item Settings > Prefab Settings
    • 1: Dagger 2
      • Item Settings > Prefab Settings
    • 2: Sword 1
    • 3: Sword 2
    • 4: Axe 1
    • 5: Axe 2
    • 6: Hammer 1
    • 7: Bow 1
    • 8: Bow 2
    • 9: Staff 1
    • 10: Staff 2
    • 11: Shield 1
    • 12: Shield 2
    • Dagger 3
    • Master Dagger
    • Sword 3
    • Sword 4
    • Sword 5
    • Master Sword
    • Axe 3
    • Axe 4
    • Axe 5
    • Hammer 2
    • Hammer 3
    • Bow 3
    • Bow 4
    • Master Bow
    • Staff 3
    • Melee Staff
    • Master Staff
    • Shield 3
    • Shield 4
    • Tank Shield
  • Game State
  • Equipment Viewer Setup
    • Weapon
      • Equipment Viewer Settings
      • Display Conditions
      • Equipment Preview
    • Shield
      • Equipment Viewer Settings
      • Display Conditions
    • Copy the Components
  • Testing

In this tutorial we’ll add visible equipment to our player combatants.

Equipment can be displayed on the game object of a combatant by using Equipment Viewer components. We’ll use them to display weapons and shields.

Equipment Prefabs #

First, we’ll set up the Viewer Prefab for our weapons and shields. This is the prefab that’ll be used by the Equipment Viewer component to display the equipment.

You can find the prefabs for the weapons in Assets/Tutorial Assets/Prefabs/Weapons/ in different sub-folders per weapon type. The shield prefabs are in Assets/Tutorial Assets/Prefabs/Shields/.

Navigate to Inventory > Equipment.

0: Dagger 1 #

Item Settings > Prefab Settings #

  • Viewer Prefab
    Select Dagger.
    Make sure you’re using the prefab, not the fbx model.

The prefabs provided for the tutorial are already set up to be placed correctly – otherwise, you can correct this using the Position Offset and Rotation Offset settings.

1: Dagger 2 #

Item Settings > Prefab Settings #

  • Viewer Prefab
    Select Dagger_2.

2: Sword 1 #

By now you should already know where to find the prefab settings, so I’ll just list the viewer prefab you should use.

  • Viewer Prefab
    Select Sword.

3: Sword 2 #

  • Viewer Prefab
    Select Sword_2.

4: Axe 1 #

  • Viewer Prefab
    Select Axe_Small.

5: Axe 2 #

  • Viewer Prefab
    Select Axe.

6: Hammer 1 #

  • Viewer Prefab
    Select Hammer_Small.

7: Bow 1 #

  • Viewer Prefab
    Select Bow_Wooden.

8: Bow 2 #

  • Viewer Prefab
    Select Bow_Wooden2.

9: Staff 1 #

  • Viewer Prefab
    Select Wooden_Staff.

10: Staff 2 #

  • Viewer Prefab
    Select Staff.

11: Shield 1 #

  • Viewer Prefab
    Select Shield_Round.

12: Shield 2 #

  • Viewer Prefab
    Select Shield_Round_2.

In case you also did the optional setup for weapons and other equipment, here’s the prefab setup for the rest.

Dagger 3 #

  • Viewer Prefab
    Select Dagger_Golden.

Master Dagger #

  • Viewer Prefab
    Select Rogue_Dagger.

Sword 3 #

  • Viewer Prefab
    Select Sword_Big.

Sword 4 #

  • Viewer Prefab
    Select Claymore.

Sword 5 #

  • Viewer Prefab
    Select Sword_Golden.

Master Sword #

  • Viewer Prefab
    Select Warrior_Sword.

Axe 3 #

  • Viewer Prefab
    Select Axe_Double.

Axe 4 #

  • Viewer Prefab
    Select Axe_small_Golden.

Axe 5 #

  • Viewer Prefab
    Select Axe_Double_Golden.

Hammer 2 #

  • Viewer Prefab
    Select Hammer_Double.

Hammer 3 #

  • Viewer Prefab
    Select Hammer_Double_Golden.

Bow 3 #

  • Viewer Prefab
    Select Bow_Evil.

Bow 4 #

  • Viewer Prefab
    Select Bow_Golden.

Master Bow #

  • Viewer Prefab
    Select Ranger_Bow.

Staff 3 #

  • Viewer Prefab
    Select IceStaff.

Melee Staff #

  • Viewer Prefab
    Select Cleric_Staff.

Master Staff #

  • Viewer Prefab
    Select Wizard_Staff.

Shield 3 #

  • Viewer Prefab
    Select Shield_Heater_2.

Shield 4 #

  • Viewer Prefab
    Select Shield_Heater.

Tank Shield #

  • Viewer Prefab
    Select Shield_Celtic_Golden.

Game State #

We’ll add a new game state to have more control over when the equipment will be displayed. While we could just use the In Battle state (available in new projects, automatically active during battles), it’s better to use a custom state that we’ll manually control, e.g. in battle start/end schematics to switch between showing and hiding the equipment at a time we want.

Navigate to Game > Game States and add a new game state.

  • Name
    Set to Show Equipment.
  • Initial State
    Disable this setting.
    The state is inactive at the start, not displaying the equipment.

For testing in-game, you can just enable the Initial State setting, just don’t forget to turn it off afterwards.

That’s it four our editor setup – don’t forget to save your changes by clicking on Save Settings at the bottom of the editor.

Equipment Viewer Setup #

Now, we’ll set up the Equipment Viewer components on our player combatant prefabs. You can find the prefabs in Assets/Tutorial Assets/Prefabs/Combatants/Player/.

We’ll add equipment viewers for the Weapon and Shield equipment slots to the following prefabs:

  • Cleric
  • Ranger
  • Rogue
  • Warrior
  • Wizard

The monk doesn’t use weapons or shields, so no setup needed.

Weapon #

The weapon’s Equipment Viewer component is added to the Weapon child object, you can find it under:

CharacterArmature > Root > Body > Hips > Abdomen > Torso > Shoulder.R > UpperArm.R > LowerArm.R > Fist.R > Fist1.R > Weapon.R > Weapon

The placement is the same on all player prefabs.

Add an Equipment Viewer component to the Weapon game object and change the following settings in the inspector.

Equipment Viewer Settings #

  • Equipment Slot
    Select Weapon.

Display Conditions #

We’ll add our game state as a condition.

Click on Add Condition.

  • Condition Type
    Select Game State.

Click on Add Game State.

  • Condition Type
    Select Game State.
  • Game State
    Select Show Equipment.
  • Check State
    Select Active.

Equipment Preview #

You can use these settings to preview how equipment will be placed.

Shield #

The shield’s Equipment Viewer component is added to the Weapon child object, you can find it under:

CharacterArmature > Root > Body > Hips > Abdomen > Torso > Shoulder.L > UpperArm.L > LowerArm.L > Fist.L > Fist1.L > Shield

The placement is the same on all player prefabs.

Add an Equipment Viewer component to the Shield game object and change the following settings in the inspector.

Equipment Viewer Settings #

  • Equipment Slot
    Select Shield.

Display Conditions #

Click on Add Condition.

  • Condition Type
    Select Game State.

Click on Add Game State.

  • Condition Type
    Select Game State.
  • Game State
    Select Show Equipment.
  • Check State
    Select Active.

Copy the Components #

For a faster setup on the other prefabs, just copy the Equipment Viewer components and paste them on the other prefab’s child objects.

To copy a component, right-click on it’s header in the inspector and select Copy Component.

To paste the copied component on a new game object, right-click on a component (e.g. the Transform) on that game object and select Paste Component As New.

Testing #

Hit play – no equipment is displayed, since the game state Show Equipment is inactive. So far, so good.

To test showing your equipment, enable the Initial State setting of the Show Equipment game state and save the changes (don’t forget to disable it after your test).

Now you’ll see the warrior holding a sword – no shield, since that’s not part of the start equipment.

Next, we’ll add prefabs to the other combatants – and add icons and portraits to them.

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on October 28, 2022
Table of Contents
  • Equipment Prefabs
    • 0: Dagger 1
      • Item Settings > Prefab Settings
    • 1: Dagger 2
      • Item Settings > Prefab Settings
    • 2: Sword 1
    • 3: Sword 2
    • 4: Axe 1
    • 5: Axe 2
    • 6: Hammer 1
    • 7: Bow 1
    • 8: Bow 2
    • 9: Staff 1
    • 10: Staff 2
    • 11: Shield 1
    • 12: Shield 2
    • Dagger 3
    • Master Dagger
    • Sword 3
    • Sword 4
    • Sword 5
    • Master Sword
    • Axe 3
    • Axe 4
    • Axe 5
    • Hammer 2
    • Hammer 3
    • Bow 3
    • Bow 4
    • Master Bow
    • Staff 3
    • Melee Staff
    • Master Staff
    • Shield 3
    • Shield 4
    • Tank Shield
  • Game State
  • Equipment Viewer Setup
    • Weapon
      • Equipment Viewer Settings
      • Display Conditions
      • Equipment Preview
    • Shield
      • Equipment Viewer Settings
      • Display Conditions
    • Copy the Components
  • Testing
Sitemap
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2 Hub
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK
  • Contact
  • Blog
  • Makinom
  • gamingislove.com
Categories
  • News (59)
  • ORK 2 (137)
    • Tutorial (137)
      • Game tutorial (50)
      • Gameplay (32)
      • How-to (55)
  • Release (129)
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!