Creating new personal website and moving blog over to the new site. Find new site at jkpenner.net/wordpress/
RPGSystems 12: Leveling 03 – Creating Experience UI
The RPGEntity class will be the center class that will control all classes that make up and entity. Below we will cover an extreme simple version that will be extended upon in future tutorials. Create a new C# script called RPGEntity This basic version of the RPGEntity contains the variable and property used for the […]
RPGSystems 11: Leveling 02 – Experience
The EntityLevel will use two different values for experience. The current amount of experience the entity as obtained and the required amount of experience to level to the next level. The RPGEntityLevel will also support the entity losing experience, resulting in the entity losing levels. Add the following to the RPGEntityLevel class We add the […]
RPGSystems 10: Leveling 01 – Basic Leveling
This tutorial will cover the creation of the RPGEntityLevel class which will control a character’s level and any experience the character may gain. Also this tutorial will contain the creation of a basic RPGEntity class that will allow external scripts to access all scripts relating to that entity. Finally we’ll cover the creation of a […]
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 […]