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

Getting Started

  • Introduction
  • First Steps
  • Game Starters
  • Components Overview
  • Player/Camera Controls
  • Game Over

Editor

  • Editor Overview
  • Base/Control Section
  • Game Section
  • UI Section
  • Templates Section
  • Status Section
  • Inventory Section
  • Combatants Section
  • Battles Section

Features

  • Animations
  • Areas & Teleports
  • Combatant Triggers
  • Control Maps
  • Difficulties
  • Factions
  • Formations
  • Formula Nodes
  • Logs
  • Loot
  • Move AI
  • Quests
  • Research Trees
  • Schematic Nodes
  • Shortcut Slots

Status System

  • Status Values
  • Status Effects
  • Attack/Defence Modifiers
  • Abilities
  • Combatants
  • Classes
  • Status Bonuses
  • Status Conditions

Inventory System

  • Inventory System Overview
  • Currencies
  • Items
  • Equipment
  • AI Behaviours/Rulesets
  • Crafting Recipes
  • Shops

Battle System

  • Battle Systems
  • Adding Battles to Scenes
  • Calculating Action Results
  • Battle Menus
  • Battle AI
  • Battle AI Nodes
  • Battle Ranges
  • Battle Camera
  • Target Selection
  • Battle Spots
  • Battle Texts
  • Battle End & Loot Dialogues
  • Action Combos
  • Damage Types
  • Cursor Prefab Components
  • Grid Battles
  • Adding Battle Grids to Scenes
  • Battle Grid Highlights
  • Battle Grid Formations

UI System

  • UI System Overview
  • Start Menu
  • Menu Screens
  • Notifications
  • Combatant Selections
  • Quantity Selections
  • Text Display Settings
  • Cursor Settings
  • Console (In-Game)
  • Menu Requirements
  • HUDs: Content Providers
  • HUDs: Conditions
  • HUDs: Click Actions
  • HUDs: Text Content
  • HUDs: Value Bar Content
  • HUDs: Status Values
  • HUDs: Status Effects
  • HUDs: Attack Modifiers
  • HUDs: Defence Modifiers
  • HUDs: Shortcuts
  • HUDs: Abilities
  • HUDs: Equipment
  • HUDs: Class Slots
  • HUDs: AI Behaviours
  • HUDs: AI Rulesets
  • HUDs: Quests
  • Timebar HUD

Scripting

  • Scripting Overview
  • Access Handler
  • Code Extensions
  • Combatant Scripting
  • Custom Nodes
  • Custom Component Save Data
  • Home
  • Guide
  • Documentation
  • Status System
  • Attack/Defence Modifiers

Attack/Defence Modifiers

Table of Contents
  • Calculation
    • Examples
  • Attack Modifiers
    • Example
  • Defence Modifiers
    • Example

Attack and defence modifiers can be used to modify status value changes.

Each attack/defence modifier has at least one attribute – e.g. an attack modifier Element could have the attributes Fire, Water, Wind and Earth.

A combatant holds the values of all attributes of all attack/defence modifiers – the default start value is 100. The attribute values of a combatant can be influenced by status bonuses, of e.g. equipment or status effects.

Status value changes of abilities, items or status effects can optionally define if and which modifiers are used.

Calculation #

Modifiers are percent-based, i.e. an individual attribute’s value is used to calculate the percent of how much of a status change’s value (based on the original calculated outcome) will be used. Negative attribute values will result in the status value change to be switched into the opposite direction, i.e. a negative change into a positive change, a positive change into a negative change. So, a damage will turn into a heal, a heal into damage.

Examples #

  • 100 % means normal damage
  • 200 % means double damage
  • 50 % means half damage
  • 0 % means no damage
  • -50 % means the target is healed by half of the damage
  • -100 % means the target is healed by the whole damage

The calculation is done for each attack and defence modifier individually.

Attack Modifiers #

Attack modifiers optionally assign an attribute to an attack (ability, item, status effect) and use the target’s attribute value for the calculation. The used attribute can optionally also come from a status effect, e.g. a fire enchantment giving the base attack a Fire element.

Example #

A magic attack (ability) uses the attack modifier Element and has the Fire attribute assigned.

  • The ability will do a damage of 500 to health.
  • The target’s Fire attribute value is 75.
  • The ability will do 375 damage (500 * 75 / 100).

Defence Modifiers #

Combatants define the defence modifier’s attribute they’re using. The attribute can be overridden by equipment and status effects. Optionally, the defence modifiers can be ignored by the status value changes of abilities, items and status effects.

When calculating, the target defines it’s defence modifier attributes, but the value used for the calculation comes from the user of the ability/item/effect.

Example #

The target’s defence modifier Race is set to the Insect attribute.

  • The user wears a special piece of equipment, which gives a bonus of 50 on Insect. The user’s total value is 150.
  • The user attacks the target and will do a damage of 200 to health.
  • The attack will do 300 damage (200 * 150 / 100).

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on October 27, 2021
Table of Contents
  • Calculation
    • Examples
  • Attack Modifiers
    • Example
  • Defence Modifiers
    • Example
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!