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

Button programming


Now that we have completed player access to the pause menu, we will now focus on navigation within the main pause menu and its submenus. At this point, head back into your Pause_Main widget. Let us first create the navigation to Pause_Inventory. To do this, click on the Inventory button:

Navigate to Details | Events | OnClicked and then press the + button:

Clicking on the + button will automatically open the Event Graph of Pause_Main and also create an OnClicked event:

The OnClicked event will work similar to our key bind in the previous section where we created something that allows us to press a key, which triggers an event that can then trigger a series of actions. Only this time, the OnClicked event is bound to our Inventory button and will only trigger when the user has left-clicked on the Inventory button. What we will want to do is, when we click on the Inventory button, have it create a Pause_Inventory widget that gets displayed on the screen. This should sound very...