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 Action RPG
  • 01 Status System Setup

01 Status System Setup

Table of Contents
  • Status Values
    • 0: Max HP
    • 1: HP
      • UI Settings > Count To Value
      • UI Settings > Flying Text Settings
    • 2: Max Stamina
    • 3: Stamina
      • UI Settings > Count To Value
    • 4: EXP
    • 5: ATK
    • 6: RATK
  • Status Effects
    • 0: Stamina Regen
      • Change Settings > Status Value Changes
    • 1: Stamina Regen Block
      • End Settings
      • Change Settings > Status Value Changes
  • Save Changes
  • Stamina Regen Block Schematic
    • Change Status Effect
  • Update Stamina Status Value
    • Change Schematics
  • Sound Types
    • 0: Damage
    • 1: Attack
    • 2: Death
  • Animation Types
    • 13: Attack 2
    • 14: Attack 3
    • 15: Attack 4
    • 16: Healing
    • 17: Roll
  • Input Keys
    • 6: Sprint
      • Input ID Setting 0
    • 7: Roll
      • Input ID Setting 0
    • 8: Attack
      • Input ID Setting 0
    • 9: Grenade
      • Input ID Setting 0
    • 10: Potion
      • Input ID Setting 0
  • Save Changes (Again)

In this tutorial we’ll set up a simple status system for our game.

Our game will use these status values:

  • HP and Max HP
  • Stamina and Max Stamina
  • ATK
  • RATK (for ranged attacks)

The default setup of a new project already got us covered with enough status values, we’ll adjust them to our needs. We’ll also set up the flying texts for HP refresh and damage, so make sure you already followed the flying text UI setup and flying text mover schematic tutorials.

Additionally, we’ll set up 2 status effects for handling stamina regeneration:

  • stamina regeneration over time
  • blocking positive stamina changes for a short time when stamina was reduced

This setup will recover stamina over time, but also block recovering when the player consumed stamina (e.g. by attacking or sprinting) for a short time. We’ll need to set up a (very simple) schematic and use it as a status value’s change schematic for this to work.

Finally, we’ll handle some general settings, setting up some sound types, animation types and input keys we’ll use later.

Let’s get to it.

Status Values #

We’ll start with the status value setup. Learn more about status values in this documentation.

Open the Makinom editor and navigate to Status > Status Values, we’ll change the already existing status values.

0: Max HP #

We can keep this status value as it is.

This defines the maximum HP a combatant can have.

1: HP #

The base setup for HP is already as we need it (using Max HP as maximum value and killing the combatant when reaching 0, i.e. the minimum value).

We’ll set up some UI Settings, counting to a new value over time and showing flying texts.

UI Settings > Count To Value #

Our value bars will show the portion of the status value that changed in a different color, so we’ll animate the change by counting to the new value, as well as add a short delay to it.

This allows the UI to accumulate multiple changes (e.g. hitting an enemy multiple times) before the damage highlight on the value bar begins to change.

  • Count to Value
    Enable this setting.
  • Interpolation
    Select Quadratic > Quadratic In + Out.
  • Time
    Set to 1.
  • Delay
    Set to 0.5.
  • Smooth Value Bars
    Enable this setting.

UI Settings > Flying Text Settings #

We’ll set up different flying texts for the player (red damage) and non-player combatants (white damage).

Click on Add Flying Text.

  • Player
    Enable this setting.
  • Ally/Enemy
    Disable these settings.

We’ll display a Refresh flying text, i.e. when healing HP.

  • Show Flying Text (Refresh)
    Enable this setting.
  • Text (Refresh > Content)
    Set to: <color=#00FF00FF>+<value></color>
  • Schematic Asset
    Select the FlyingTextScaleMover schematic from the flying text mover tutorial.

We’ll display a Damage flying text, i.e. when HP is reduced.

  • Ignore 0 Damage
    Enable this setting.
    Damage of 0 will not display a flying text.
  • Show Flying Text (Damage)
    Enable this setting.
  • Text (Damage > Content)
    Set to: <color=#FF0000FF><value></color>
  • Schematic Asset
    Select the FlyingTextScaleMover schematic from the flying text mover tutorial.

We’ll also flash the game object red when taking daamge.

  • Use Flash (Damage > Flash Settings)
    Enable this setting.
  • Flash Children
    Enable this setting.
  • Time
    Set to 0.2.
  • Fade Alpha/Red/Green/Blue
    Enable these settings.
  • From Current
    Enable this setting.
  • End Color
    Select a red color with full alpha (i.e. A=255 or 1, depending on your color picker).

That’s it for the player’s flying text – since the enemy flying text is basically the same, we’ll copy the player flying text and adjust it.

Copy the player flying text setup, i.e. scroll back up to it’s start and click on Copy.

Scroll down to the newly added setup.

  • Player
    Disable this setting.
  • Ally/Enemy
    Enable these settings.

We’ll only adjust the text for the Damage flying text.

  • Text (Damage > Content)
    Set to: <value>

2: Max Stamina #

We’ll change the Max MP to our Max Stamina, we only have to change the name.

  • Name
    Set to Max Stamina.

3: Stamina #

We’ll change the MP to our Stamina, we’ll change the name and add counting to a new value.

  • Name
    Set to Stamina.

UI Settings > Count To Value #

  • Count to Value
    Enable this setting.
  • Interpolation
    Select Linear.
  • Time
    Set to 0.1.
  • Delay
    Set to 0.
  • Smooth Value Bars
    Enable this setting.

We’ll return to the stamina after setting up the status effects and schematic for the regneration handling.

4: EXP #

We don’t need this status value, but we can keep it in case you want to add leveling and experience gains at a later time.

5: ATK #

We can keep this status value as it is.

This’ll be used for melee attack damage.

6: RATK #

We’ll change the DEF to our RATK, we only have to change the name.

This’ll be used for ranged attack damage.

  • Name
    Set to RATK.

That’s it for the status values for now.

Status Effects #

We’ll continue with the stamina status effects. Learn more about status effects in this documentation.

Navigate to Status > Status Effects, we’ll adjust the Default effect and add another effect.

0: Stamina Regen #

This status effect will regenerate stamina over time, regenerating 2 stamina every 0.1 seconds (the player’s maximum stamina will be 100, so it’ll take 5 seconds to fully recover).

We’ll add it as an auto effect to our player combatant, i.e. it’ll always be active.

  • Name
    Set to Stamina Regen.

Change Settings > Status Value Changes #

Scroll down to the change settings, that’s all we need to set up here.

Click on Add Status Value Change.

  • Status Value
    Select Stamina.
  • Set On
    Select Time.
  • Set Every
    Select Value > Value.
    Set the value to 0.1.
  • Change Value
    Select Value > Value.
    Set the value to 2.
  • Operator
    Select Add.
  • Set In
    Select Value.

1: Stamina Regen Block #

Add a new status effect. This’ll block positive stamina changes (i.e. the stamina regen effect) for a short time.

We’ll add the effect using a schematic when stamina receives damage (i.e. is reduced).

  • Name
    Set to Stamina Regen Block.

End Settings #

The effect ends after 1 second, i.e. each time we use stamina, regeneration is blocked for 1 second before it kicks back in.

  • End After
    Select Time.
  • Turn/Time Duration
    Select Value > Value.
    Set the value to 1.

Change Settings > Status Value Changes #

We’ll add blocking positive changes to stamina.

Click on Add Status Value Change.

  • Status Value
    Select Stamina.
  • Change Block
    Select Positive.

Save Changes #

That’s it for the status setup for now.

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

Stamina Regen Block Schematic #

Next, we’ll set up a schematic that adds the Stamina Regen Block effect to it’s user (Machine Object). This schematic will be used as the stamina status value’s Change Schematic., i.e. we’ll automatically start it when stamina is changed (limited to negative changes).

Navigate to Schematics and start working on a new schematic.

Change Status Effect #

Add Node > Combatant > Status > Change Status Effect

This node is used to change status effects on combatants.

  • Object (Combatant)
    Select Machine Object.
    When used as a status value’s change effect, the combatant who’s status value is changed is the Machine Object of the schematic.

There’s already a Status Effect Change added for us.

  • Change
    Select Add.
  • Status Effect
    Select Stamina Regen Block.

And that’s it for the schematic. Click on Save Schematic to save it, e.g. as StaminaRegenBlock.

I usually save all my schematics in Assets/Schematics/ and sub folders of it.

Update Stamina Status Value #

We’ll now add the schematic as a Change Schematic to our stamina status value.

Navigate back to Status > Status Values and select the Stamina status value.

Change Schematics #

Click on Add Schematic.

  • Schematic Asset
    Select the StaminaRegenBlock schematic we just created.

This mechanic will only be used by the player, so only enable it for the player.

  • Player
    Enable this setting.
  • Ally/Enemy
    Disable these settings.

We’ll also limit using it to negative changes via the Value Change Check settings.

  • Use Change Check
    Enable this setting.
  • Check Type
    Select Is Less.
  • Check Value
    Select Value > Value.
    Set the value to 0.

Sound Types #

We’ll use sound types on our combatants to play sounds (e.g. damage or attack) on them.

Navigate to Base/Control > Sound Types, we’ll change the Default type and add additional types.

0: Damage #

  • Name
    Set to Damage.

1: Attack #

  • Name
    Set to Attack.

2: Death #

  • Name
    Set to Death.

Animation Types #

Animation types are used to play animations on combatants, using their own animation setup. E.g. we can play an Attack animation type on a combatant, while each combatant has it’s unique attack animation setup.

Navigate to Base/Control > Animation Types, we’ll add additional types to the already set up types (which we’ll mostly not use).

13: Attack 2 #

  • Name
    Set to Attack 2.

14: Attack 3 #

  • Name
    Set to Attack 3.

15: Attack 4 #

  • Name
    Set to Attack 4.

16: Healing #

  • Name
    Set to Healing.

17: Roll #

  • Name
    Set to Roll.

Input Keys #

A new project already comes with some inputs set up, we’ll add some additional inputs for sprinting, rolling, attacking, throwing grenades and using potions.

Navigate to Base/Control > Input Keys, we’ll add new input keys.

6: Sprint #

Holding down shift will allow the player to sprint.

  • Name
    Set to Sprint.

Input ID Setting 0 #

  • Input Origin
    Select Key Code.
  • Positive Key
    Select Left Shift.
  • Input Handling
    Select Hold.
    I.e. the input is recognized while holding the key.

7: Roll #

Pressing space will use a roll ability (we’ll set it up later).

  • Name
    Set to Roll.

Input ID Setting 0 #

  • Input Origin
    Select Key Code.
  • Positive Key
    Select Space.

8: Attack #

The player will attack when using the left mouse button (we’ll set up the attacks later).

  • Name
    Set to Attack.

Input ID Setting 0 #

  • Input Origin
    Select Mouse.
  • Mouse Button
    Set to 0.

9: Grenade #

Pressing E will throw a grenade (we’ll set that up later).

  • Name
    Set to Grenade.

Input ID Setting 0 #

  • Input Origin
    Select Key Code.
  • Positive Key
    Select E.

10: Potion #

Pressing Q will throw a grenade (we’ll set that up later).

  • Name
    Set to Potion.

Input ID Setting 0 #

  • Input Origin
    Select Key Code.
  • Positive Key
    Select Q.

Save Changes (Again) #

And that’s it for now – our simple status system setup is complete.

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

 

Next, we’ll set up our player combatant, animations and controls.

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on July 17, 2022
Table of Contents
  • Status Values
    • 0: Max HP
    • 1: HP
      • UI Settings > Count To Value
      • UI Settings > Flying Text Settings
    • 2: Max Stamina
    • 3: Stamina
      • UI Settings > Count To Value
    • 4: EXP
    • 5: ATK
    • 6: RATK
  • Status Effects
    • 0: Stamina Regen
      • Change Settings > Status Value Changes
    • 1: Stamina Regen Block
      • End Settings
      • Change Settings > Status Value Changes
  • Save Changes
  • Stamina Regen Block Schematic
    • Change Status Effect
  • Update Stamina Status Value
    • Change Schematics
  • Sound Types
    • 0: Damage
    • 1: Attack
    • 2: Death
  • Animation Types
    • 13: Attack 2
    • 14: Attack 3
    • 15: Attack 4
    • 16: Healing
    • 17: Roll
  • Input Keys
    • 6: Sprint
      • Input ID Setting 0
    • 7: Roll
      • Input ID Setting 0
    • 8: Attack
      • Input ID Setting 0
    • 9: Grenade
      • Input ID Setting 0
    • 10: Potion
      • Input ID Setting 0
  • Save Changes (Again)
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!