Book Image

Building an RPG with Unreal 4.x

By : Steve Santello
Book Image

Building an RPG with Unreal 4.x

By: Steve Santello

Overview of this book

Now that Unreal Engine 4 has become one of the most cutting edge game engines in the world, developers are looking for the best ways of creating games of any genre in the engine. This book will lay out the foundation of creating a turn-based RPG in Unreal Engine 4.12. The book starts by walking you through creating a turn-based battle system that can hold commands for party members and enemies. You’ll get your hands dirty by creating NPCs such as shop owners, and important mechanics, that make up every RPG such as a currency system, inventory, dialogue, and character statistics. Although this book specifically focuses on the creation of a turn-based RPG, there are a variety of topics that can be utilized when creating many other types of genres. By the end of the book, you will be able to build upon core RPG framework elements to create your own game experience.
Table of Contents (17 chapters)
Building an RPG with Unreal 4.x
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Displaying levels and experience in the pause menu


At this point, if you test the build, the party members will gain experience from battle and level up accordingly (you will be able to tell by watching the stats grow if a party member has gained enough experience to level up), but we will not yet display the proper level or experience points of the party members. We can easily do this by binding these values to our pause menu. Navigate to Content | Blueprints | UI. Open the Pause_Main Widget Blueprint. In the Designer view, select the Editable_Soldier_Level Text Block on the right-hand side of Soldier Lvl that we created in Chapter 4, Pause Menu Framework:

In the Details tab under Content, create a bind to that text by clicking on the Bind drop-down menu and selecting +Create Binding:

This will automatically open the graph of the Get Editable_Soldier_Level_Text function. In the graph, we need to simply get the variables from the RPGGameInstance, like we did before, but this time, we are specifically...