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
    • Quickstart Extended
  • Battle Tutorials
    • Adding Active Time Battles
    • Adding Phase Battles
    • Hit & Miss
    • Critical Hits
    • Cast Time
    • Grid 01: Battle Grid Setup
    • Grid 02: Highlights
    • Grid 03: Cell Types
    • Grid 04: Move Command
    • Grid 05: Scene Grid Setup
    • Grid 06: Battle Ready
    • Grid 07 Use & Affect Ranges
    • Grid 08: Better Camera Control
  • Gameplay Tutorials
    • Multiple Interaction Controllers
    • Player Group Spawn & Follow
    • Spawn Hunting Enemies
    • Gamepad Controls (Unity Input System)
    • Combined Inputs
    • Quests 01: Menu Screen
    • Quests 02: Hunting
    • Quests 03: Collect Potion Materials
    • Quests 04: Collect Equipment Materials
    • Quests 05: Quest Mark HUDs
    • Crafting 01: Menu Screen
    • Crafting 02: Materials & Recipes
    • Crafting 03: Getting Materials
    • Crafting 04: Proficiency & Critical Outcome
    • Shop
    • Inventory Containers
  • Schematics Tutorials
    • UI Animation Schematics
    • Flying Text Animation Schematics
    • HUD Conditional Schematics
  • UI Tutorials
    • Unity UI: Initial Setup
    • Unity UI: Status Value UI Setup
    • Unity UI: Status Effect UI Setup
    • Unity UI: Shortcut UI Setup
    • Unity UI: Dragging Notification
    • Unity UI: Interaction HUD
    • Unity UI: Shortcut HUD
    • Unity UI: Turn Order HUD
    • Unity UI: Cast Time HUD
    • Unity UI: Quest HUD
    • Unity UI: Tooltip HUD
    • Unity UI: Move Range 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
  • Gameplay Tutorials

Crafting 01: Menu Screen

In this tutorial we’ll set up a crafting menu.

This tutorial is the start of a mini-series covering the crafting system.

We’ll set up:

  • content types to separate materials (items)
  • general crafting settings
  • a menu requirement to check if the player knows any recipes
  • a menu screen to craft

Setting up materials and recipes will be done in part 2 of the crafting tutorial mini-series.

This tutorial is based on the ORK 4 Unity Quickstart 3D tutorials, but can be used in any project.

Crafting Content Type #

We’ll start with adding a new content type for the crafting material items.

We don’t need to set up separate content types for the crafting recipes, since we can simply use the same types for the recipes as the items they create. You can set up separate types for recipes as well, if you want.

E.g.: All potions are part of the Potions content type – we can simply put all crafting recipes that create potions into the same content type.

Open the ORK editor, navigate to Content > Content Types and add a new content type.

  • Name
    Set to: Materials

Crafting General Settings #

Next we’ll set up the general settings for crafting, e.g. recipe layout.

Navigate to Inventory > Crafting Recipes and select the General Settings.

Default Recipe Layout #

Recipe layouts are used when we display a crafting recipe’s details. Menu screens, content types and crafting recipes can override the default layout.

Content #

The content defines the combined text of the layout. It uses text codes to add the different parts of the information (e.g. listing the ingredients).

  • Text
    Set to:

<b><color=#FFFF00FF><name></color></b>
<description>

<b>Ingredient</b>
<ingredients>

<b>Outcome</b>
<outcome>

Ingredient Text #

Defines how each ingredient is displayed. By default each ingredient is displayed in it’s own line, we’ll keep it that way.

  • Default Content (Ingredient Text)
    Set to: <icon> <name> (<quantity>/<quantityavailable>)
  • Use Not Available Text
    Enable
    In case not enough of the required ingredient is in the user’s inventory, we’ll display a different text (just the same information but in a red color).
  • Default Content (Not Available Text)
    Set to: <color=#FF0000FF><icon> <name> (<quantity>/<quantityavailable>)</color>

Outcome #

Defines how each outcome is displayed. By default each outcome is displayed in it’s own line, we’ll keep it that way.

  • Default Content (Outcome)
    Set to: <icon> <name> (<quantity>/<quantityavailable>)

Critical Outcome #

Defines how each critical outcome is displayed. We don’t display the critical outcome in our layout, but we can still set it up.

  • Default Content (Outcome)
    Set to: <icon> <name> (<quantity>/<quantityavailable>)

Menu Requirement #

We’ll set up a menu requirement, since we only want the crafting menu to be available when we have crafting recipes.

Navigate to Menus > Menu Requirement and add a new requirement.

Base Settings #

  • Name
    Set to: Has Crafting Recipes
  • Knows Recipes
    Enable

Crafting Menu Screen #

Navigate to Menus > Menu Screens and add a new menu screen.

We’ll use the same basic setup as the other menu screens of the quickstart tutorials, but allow notifications to see the item notifications from crafted items.

Base Settings #

  • Name
    Set to: Crafting

Settings #

  • Remember Selection
    Enable
  • Pause Notifications
    Disable
  • Block Notifications
    Disable
  • Block Flying Texts
    Enable
  • Pause Game
    Enable
  • Freeze Pause
    Enable

Crafting Part #

The Crafting part is used to display crafting recipes.

Scroll down to the bottom of the settings to see the Add Menu Part button.

Click on the Add Menu Part button and select Crafting.

The default setup will already show all content types and sort them by name – we’ll change it to sort by ID.

Available Content Types #

  • Sort By
    Select: ID

Type Box Settings #

Lists the crafting types that are available.

  • Type Display
    Select: UI Box
    The content types will be displayed in a UI box as a selection menu.
  • Box Display Mode
    Select: Multi
    The content types and recipe list will be displayed at the same time.
  • Type Box
    Select: Menu Small
  • Add Back Button
    Select: Last

The Type Content Layout settings handle the content displayed in the content type buttons, we’ll keep it at the default setup, displaying text and icon.

Recipe Box Settings #

Lists the crafting recipes from the selected crafting type.

  • Display Recipe>Create
    Select: Multi
    We’ll display the create box at the same time as the types and recipes, but we’ll only use it to show the recipes information.
    The actual crafting will be started in the recipe box.
  • Recipe Box
    Select: Menu Big
  • Sort By
    Select: ID
  • Add Back Button
    Select: Last

The Recipe Content Layout settings have an Additional Content Layout added. Additional content can be used to e.g. show the quantity of an item. Since we don’t use consumable recipes, we can remove the additional content.

Click on Remove in the Additional Content Layout 0 settings.

Create Box Settings #

Optionally displays detailed information about a recipe using a recipe layout – can also be used us a crafting confirmation.

We’ll use it as a HUD, only showing information for the selected recipe. The actual crafting is started by accepting a recipe in the recipe box.

  • Create Box Mode
    Select: HUD
  • Create Box
    Select: Menu Info

That’s it for the crafting menu screen.

Updating Overview Menu Screen #

Select the Overview menu screen and change the following settings.

Button List 0 #

We’ll add a new button to the button list part.

Copy Menu Item 1 (i.e. the inventory button). This’ll add the copy directly below it.

Change the newly added Menu Item 2 button.

  • Menu Screen
    Select: Crafting
  • Text (Button Content)
    Set to: Crafting

We’ll also use the menu requirement we’ve set up. We only want the button to show when crafting recipes are available.

  • Hide
    Enable
    The button will be hidden when the conditions aren’t valid.
    Otherwise the button will be displayed but not useable.
  • Use Menu Requirement
    Enable
  • Menu Requirement
    Select: Has Crafting Recipes

Save Changes #

And that’s it!

Don’t forget to save your changes by clicking on Save Settings at the bottom of the editor.

Testing #

You can only test the menu if you’ve already added crafting recipes to your game.

If you’ve added them and the player knows one, you’ll be able to open the crafting menu.

The next part of the crafting mini-series will add material items and crafting recipes to the game.

Table of Contents
  • Crafting Content Type
  • Crafting General Settings
    • Default Recipe Layout
      • Content
      • Ingredient Text
      • Outcome
      • Critical Outcome
  • Menu Requirement
    • Base Settings
  • Crafting Menu Screen
    • Base Settings
      • Settings
    • Crafting Part
      • Available Content Types
      • Type Box Settings
      • Recipe Box Settings
      • Create Box Settings
  • Updating Overview Menu Screen
    • Button List 0
  • Save Changes
  • Testing
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!