RPG Sample Game

Since I got asked via PM a question regarding the stats system, here some explanation:

To see how the stats are setup open the RPGCharacter blueprint, in the top-left window you should find a list of all components. The RPGCharacter has a “StatsComponent” attached. Select this StatComponent. Have a look at the Details panel (right-side) now. Under the Default category you will find an entry named “Stats List”. You can click on the arrow to open up the list (since it’s an array). Each entry is marked with a number, which you can open up again. Open up the first entry. You should now see the attributes of that specific stat. If you opened up the first entry you should see the attributes “StatsName” and “StatValue” with the values “Level” and “1”.

If you want to change a stat or something like that do the following: Open up the EventGraph and drag the “StatsComponent” from the Component window into the EventGraph. You should now see a the “StatsComponent” appear in the EventGraph window. Drag the blue pin to the side and you’ll see a list of functions that you can call on the StatsComponent. In the searchfield you can now type “stat” to see some functions specific to the StatsComponents like “Increase Stat” or “Get All Stats”.

If you have any questions, don’t hesitate to post in here or write me a PM.