Ninjutsu Games
Asset StoreYoutubeTwitterInstagramSupport
  • 🖐️Welcome!
  • Game Creator 2
    • ☢️Fusion Module
      • Setup
      • Sessions
      • Characters
      • Variables
      • Remote Procedure Calls
      • Settings
      • User Interface
      • References
        • Shutdown Reasons
      • Guides
        • How to test my game
        • How to toggle Debug mode
        • How to Update Fusion SDK
      • Releases
      • 🤝Fusion Factions
        • Releases
      • 💫Fusion Stats
        • Releases
      • 📦Fusion Inventory
        • Releases
      • 🧙Fusion Abilities
        • Releases
      • ⚔️Fusion Melee
        • Releases
      • 🔫Fusion Shooter
        • Releases
    • 🤝Factions
      • Setup
      • Faction Asset
        • Settings Editor
      • Member
        • Memory
      • Visual Scripting
        • Conditions
        • Events
        • Instructions
        • Properties
      • User Interface
      • Releases
      • 🌐Photon Factions
    • 🎮Coop
    • 👑Loot Locker
      • Getting Started
      • Authentication
        • Guest
        • White Label
        • Google
        • Steam
        • Apple Sign In
      • Sessions
      • Save Load
      • Players
        • Player Storage
        • Names
      • Leaderboards
        • Visual Scripting
      • Messages
      • Progressions
      • Replenish System
      • Date Time
        • Server Time
      • Handling Errors
      • Releases
    • 🤖State Machine 2
      • Graph Editor
      • State Machine Runner
      • Nodes
        • Node Features
      • Variables
      • Shortcuts
      • Releases
    • 🌐Photon Module 2
      • Overview
      • Releases
      • 🔫Photon Shooter
        • Getting Started
        • Releases
      • 💫Photon Stats
        • Releases
      • 📦Photon Inventory
        • Overview
        • Releases
      • 🧙Photon Abilities
        • Releases
      • ⚔️Photon Melee 2
        • Troubleshooting
        • Releases
  • Game Creator 1
    • Photon Network
      • Overview
      • Characters
      • Network Items
      • Actions
      • Conditions
      • Triggers
      • Guides
        • How to Connect and Instantiate your Player
        • Instantiation Options
        • How to Sync Attachments
        • How to display room or other network information
        • How to setup Camera Motor
        • How to test my game
      • Sub-Modules
        • 🏃Photon Traversal
        • ⚔️Photon Melee
        • 🔫Photon Shooter
          • Changelog
      • Changelog
    • State Machine
      • Editor Graph
        • Nodes
        • Blackboard
        • Copy & Paste
        • Targets
      • Export State Machines
      • Changelog
    • RPG (Deprecated)
      • Actor
        • Actions
        • Conditions
        • Triggers
      • Attributes
        • Actions
        • Conditions
      • Classes
        • Actions
        • Conditions
      • Skills
        • Actions
        • Conditions
      • Formulas
      • Changelog
    • AI & Factions (Deprecated)
      • Changelog
Powered by GitBook
On this page
  • Definition
  • Concepts
  • Create Attribute

Was this helpful?

  1. Game Creator 1
  2. RPG (Deprecated)

Attributes

PreviousTriggersNextActions

Last updated 6 years ago

Was this helpful?

Definition

Attributes are basically simple data holders they contain just simple basic definition.

  • Sprite: this is used by the UI components like Skill Bar or Spell Book

  • Short Name: for now this is only used by formulas

  • Name: the identifier of the skill

  • Description: this is used by UI tooltip if its enabled.

  • Color: color also can be used UI components like the Character HUD

Concepts

  • Consumable Value: this is the variable/consumable value of the attribute. Used to track the current value of an attribute like Health or Mana. This is not used with attributes that do not get consumed, like Strength or Intelligence.

  • Value: this is the real value of the attribute. This is the value to read when you want to see what Strength, Intelligence, etc is, or if you want to know what is the max value is that Health or Mana type attributes can reach. This value contains both base value + bonus value.

  • Bonus: this is as the name suggests the bonus value of an attribute.

  • Last Time Modified: this allows you to verify when was the last time an attribute was modified. For example, you can create health regeneration skill that can only be triggered if last time modified of the health was 5 seconds ago.

  • Percent: this allows you to check how much percentage of an attribute an actor has. For example, if health is below 30% change character state to the Hurt state.

Create Attribute

To create an attribute simply go to the Game Creator preferences window select the RPG tab then head to the attributes section and click on 'Create Attribute'.

The base and max values of an Attribute are defined by the Class along with other settings.

At run-time by using and you have access to multiple values from an attribute:

Game Creator's

actions
conditions
state system
(Default attributes required by the system)
(Example of the Hurt state using Game Creator's state system)
(Example of a new attribute)