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
  • Actor Component
  • Basic Parameters
  • Actor Events
  • Skill Events
  • Debug
  • Save & Load System

Was this helpful?

  1. Game Creator 1
  2. RPG (Deprecated)

Actor

PreviousRPG (Deprecated)NextActions

Last updated 6 years ago

Was this helpful?

The heart of the RPG module is composed by 1 single component called Actor, this is the only component you need to setup. In theory the actor component is a processor for Actor Class and Attributes and trigger of multiple events. This component can be attached to any gameobject.

Want to have a box that gets destroyed after 5 hits and explode into pieces when it's destroyed? You can add an Actor component and get it working in few clicks.

Actor Component

In the actor component is divided in 4 sections:

Basic Parameters

In here we can setup our Actor basic settings like name and description, class, initial level

  • Definition: the first part of the inspector allows you to define a name, description, sprite and color all of this useful for use on a character selection screen or any other UI related screen.

  • Class: setup class and initial level of the actor. For example, set initial level to a higher value if you want for example make a character more difficult to kill.

  • Misc: by setting an actor as invulnerable this means it cannot take damage or get killed. You can also setup the status towards the player Hostile, Neutral or Friendly.

  • Death: if auto detect death is off the Death Event won't be called automatically you can use the Kill Action to do it manually.

Do you need to make an Actor more difficult? Just set the initial level to a higher value this could increase all Attributes if the class is properly setup.

Actor Events

With actor events you have 5 different type of events to execute actions:

  • Ready: these actions are executed after Actor Class has been setup, think of it like a start event but after actor component its fully initialized.

  • Death: on this event is executed when Actor dies (ran out of HP). This is the place to play a death animation. It's also possible to use conditions to check who killed this actor and for example end the game if was killed by a boss.

  • Restore: these actions are executed if the Actor is Restored/Resurrected manually using the Restore Action. For example: you can easily setup a skill that can resurrect an actor or simply use the Death event wait couples and restore it.

  • Level: this event allows you to execute actions when Actor level changes. For example, if you want to instantiate a particle effect when the actor levels up you can use Actor Level Changed condition with 'went up' option turn on.

If Auto Detect Death is off in Actor's basic parameters Death Event won't be executed automatically. You can manually execute by triggering the Kill Action for the actor.

Skill Events

Under skill events there is 6 events to customize your actor:

  • Used: as the name suggests this event is called when a skill is executed. It's possible to use conditions to react based on the skill that's being executed.

  • Cannot Use: when a skill doesn't met conditions this event is executed. For example, if a skill has a condition of "mana greater than 5" and the actor have less 'mana' the event it's going to be executed.

  • Learn: event executed when the actor learns a new Skill. As all other events there is a condition to know which skill was learned.

  • Unlearn: event executed when actor unlearns a Skill.

  • Canceled: this event is called when a Skill is canceled by Skill Cancel Action. For example, a parry Skill could cancel a skill and stun an actor.

  • Ended: event executed when actor ends using a Skill.

Debug

Debug tab provides multiple ways to test and debug your Actor. You can Kill, Restore, Damage, Heal, Add Experience, Level Up, Execute Skills as many times as you like. Also preview all attribute values.

Save & Load System

: basic parameters and definition for the Actor

: here you can set execute actions for multiple actor events

: you can react based on multiple skill events

: easily see what's going with.

Actor's are compatible with the system from Game Creator. You don't have to do anything to make this work.

Save & Load
Basic Parameters
Actor Events
Skill Events
Debug
(Quick info-graphic of the anatomy of an Actor)
(On this example we handle 4 different cases depending on the health attribute)
(On this example we use the Is using Skill condition to play an specific gesture)
(Example of the Actor component using Save & Load system)