Shop System
About
This project was completed as part of a Live Creator Challenge. It was made in Unreal, using Blueprints, and expanded on the Third Person template. Our aim was to build a simple shop system that would allow the player to make purchases using an in-game currency.
Design
The project is intended to act as a small section of an RPG; the player comes across a tiny shop in a forest, which allows them to purchase some necessities and rest during their journey.
Implementation
The player is able to open the shop by using the 'E' key when they enter a collision box attached to the shop; once the shop interface is open they become unable to move and the mouse cursor becomes visible to allow the player to make purchases. At the start of the game, the player has 100 pieces of gold which decrease with every purchase made.
The items available for sale are stored in a data table; they are each displayed in the shop interface through widgets that are created by iterating through the table.
When the player attempts to make a purchase, the game verifies whether they have the amount of gold necessary; if they do not, an error message is displayed for a couple of seconds.
Once the player closes the shop, they are able to move their character again.
Assets
This projects makes use of the Advanced Village Pack available in the Unreal Marketplace.