RPGSystems: Stat System 09: Finishing RPGStatCollection

In this section, we finish our RPGStatCollection class by adding some additional functionality that will allow external scripts to add, remove, and clear the stat modifiers on all stats contained within the stat collection. An additional change that will be made is that the RPGStatCollection class will inherit from the Monobehaviour class. This change will […]

RPGSystems: Stat System 08: Updating Stat Modifiers

In this section we’re going back to our previous implementation of our stat modifiers. The method we used with our last go at the stat modifiers used a Enum to list all the types of stat modifiers available while hard coding how each modifier would affect the stat’s value in the RPGStatModifiable class. This method […]

RPGSystems: Stat System 07: Value Change Events

In this section we’ll cover solving our problem where the Linker values were calculated every time an attribute’s stat value was retrieved. The method we’ll use to solve this issue is to use EventHandlers to allow scripts and other stat’s to listen when a stat’s value changes. Value Change Interfaces We’ll start by creating two […]

RPGSystems: Stat System 06: RPGVital

In this tutorial, we’ll be creating the new RPGVital stat class that will be inheriting from the RPGAttribute class. The key addition to the vital stat that makes it important is that it contains an additional variable that will keep track of the current value of the stat. This comes in to play for stats […]

RPGSystems: Stat System 05: IStatLinkable

In this section, we’ll be extending the RPGAttribute class with the IStatLinkable interface which will define the methods used to add RPGStatLinkers to the attribute. The stat linkers will connect two stat’s values together, allowing one stat’s value to influence the other stat’s value. Stat Linker The Base stat linker is an abstract class since […]

RPGSystems: Stat System 04: IStatScalable

In this section, we’ll be creating a new stat class named RPGAttribute along with another interface named IStatScalable. The attribute stat will inherit from the RPGStatModifiable class and implement the new IStatScalable interface. This new interface will contain the method used to scale the value of the stat by another value such as a character’s […]

RPGSystems: Stat System 03: Modifiers

In this section we’ll be creating stat modifiers. These modifiers will be applied to a stat by an item, buff or spell and will change the StatValue property of the stat to reflect the value of the modifier. In this initial version of the modifier class we’ll use a enum to determine how the modifier […]

RPGSystems: Stat System 02: Generic Stat Collection

In this section we extend our RPGStat class and our RPGStatCollection classes. In the base stat class we add additional properties that will simplify adding features we’ll be adding in the future. In the stat collection we will be modifying our method into generic version to easily allow us to accept any stats that inherit […]

RPGSystems: Stat System 01: Base Classes

In this section of the RPGSystems tutorial series, we’ll be covering the creation of Stat System. The Stat System will allow for the creation of a collection of stats that can be easily modified and manipulated from external actions such as items, buffs, and spells. Base Stat All Stats within our Stat System will be […]