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

The UMG inventory submenu


As mentioned earlier, we need to create submenus for our buttons to navigate to. Using UMG, there are several ways to create submenus, but the most straightforward way is to create a new Widget Blueprint for each submenu and then bind the Widget Blueprints together.

Since we will need many of the same items in our submenus such as the character names and most of their stats, we can save a lot of time by carefully making a copy of our main pause menu, renaming it, and then editing it to fit whatever submenus we need. Since we have initially saved the main pause menu as Pause, we may want to first rename it so that it is more descriptive. So head back into your Content Browser, locate where you saved your pause menu, and rename it by right-clicking on the pause menu widget and selecting Rename. Rename this file as Pause_Main:

Next, make a duplicate of Pause_Main by right clicking on the file and selecting Duplicate:

Rename this as Pause_Inventory:

We will now be able...