Defining characters and enemies

In the last chapter, we covered how to use Data Tables to import custom data. Before that, we decided on what stats would play into combat and how. Now we're going to combine those to define our game's characters, classes, and enemy encounters.

Classes

Remember that in Chapter 1, Getting Started with RPG Design in Unreal, we established that our characters have the following stats:

  • Health
  • Max health
  • Magic
  • Max magic
  • Attack power
  • Defense
  • Luck

Of these, we can discard health and magic because they vary during the game, while the other values are predefined based on the character class. The remaining stats are what we will define in the Data Table. As mentioned in Chapter 1, Getting Started with RPG Design in Unreal, we also ...

Get Building an RPG with Unreal 4.x now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.