O'Reilly logo

Building an RPG with Unreal 4.x by Alan R. Stagner, Steve Santello

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required