Game Creator
  • Welcome to Game Creator!
  • Quickstart
    • Get Started
    • Setup
    • Tutorials
  • Game Creator
    • Game Creator
      • Actions
      • Conditions
      • Triggers
      • Hotspots
      • Characters
        • Player
        • Markers
        • Gestures
        • States
        • Advanced
          • IK in custom Animations
      • Camera
        • Camera Motors
      • Variables
        • Global Variables
        • Local Variables
        • List Variables
    • Systems
      • Localization
      • Event System
      • Timeline
      • UI
      • Module Manager
      • Game Creator Toolbar
      • Pool System
      • Game Creator API
        • Custom Actions
        • Custom Conditions
        • Custom Triggers
        • Custom Hooks
        • Custom Save & Load
        • Variables Access
        • Custom Module
  • Dialogue
    • Dialogue
      • Anatomy
      • Actors
      • Dialogue UI
      • API
  • Inventory
    • Inventory
      • Inventory Window
        • Catalogue
        • Recipes
        • Types
        • Settings
      • Merchants
      • Containers
      • Loot Tables
      • Equip Items
      • Actions
      • Conditions
      • Custom Inventory UI
  • Quests
    • Quests
      • Quests Overview
      • Create Quests
      • Quests UI
        • Custom UI
  • Stats
    • Stats
      • Stats Overview
        • Stat
        • Attributes
        • Status Effects
        • Formulas
        • Stat Modifiers
      • Stats UI
      • Common Use Cases
        • Simple Health Bar
        • Regenerative Mana
        • Poison Status Effect
        • Levels and XP
        • Strength and Armor
        • Lockpicking
  • Behavior
    • Behavior
      • Behavior Graph
        • Nodes
        • Blackboard
      • Perception
  • Shooter
    • Shooter
      • Weapons
      • Ammunition
      • Interaction
      • Examples
        • Example 1 - Get Started
        • Example 2 - Pick Weapons
        • Example 3 - Top Down
        • Example 4 - Side Scroll
        • Example 5 - First Person
        • Example 6 - Combat
      • Advanced
        • Custom Crosshairs
        • Shooter API
  • Melee
    • Melee
      • Weapons
        • Blade Component
      • Shields
      • Melee Clips
      • Combat
  • Traversal
    • Traversal
      • Obstacles
      • Climbables
      • Built-in Elements
  • Annex
    • Roadmap
    • FAQ
Powered by GitBook
On this page
  • Attributes in Runtime
  • Actions
  • Conditions

Was this helpful?

  1. Stats
  2. Stats
  3. Stats Overview

Attributes

Hit Points for everyone

PreviousStatNextStatus Effects

Last updated 6 years ago

Was this helpful?

Attributes are very similar to Stats but their value ranges from 0 up to a maximum defined by a Stat. For example, the current health of a character is an attribute.

Attributes in Runtime

Attributes are represented as a gauge or progress bar in the Stats component inspector. In the Editor, an attribute is displayed as the initial percentage filled. In Play Mode, however, the values change to display the current values.

Actions

There are some Actions that let you interact and query attribute values and states.

  • Change Attribute: Allows you to change the base value of an attribute. The value can come from a variable of be a constant value

  • Sync Attribute to Variable: Assigns the current value of an Attribute to a specific global or local variable.

  • Debug Attribute: Prints the value of an attribute in the console

Conditions

Same as Actions, Conditions with attributes allow to use the Stats features outside of the module, such as in the Inventory, Dialogue modules or even your own custom systems

  • Attribute Value: Returns the final value of an attribute and compares it to another constant or variable number.

(The vitality Stat marks the max amount of health, while the Attribute value defines the current health)
(Editor mode of the Stats component)