x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How do I create an inventory & shop system with blueprints?

Hello,

Me and my classmates have to develop a very basic MOBA game with Blueprints. Now that we have most features we planned, I just can't figure out how to create a inventory & shop system like this in League of Legends. I watched tons of tutorials, but none of them fit in our Project. So i thought i could get help here...

How would I start something like this?

  1. Basic Inventory with 3 Item Slots

  2. A shop system, where the player can click on an item and if he has enough money, the item will be transferred to his inventory

We really tried everything, but we are complete beginners when it comes to things like this...

I'm thankful for any advice! :D

Product Version: UE 4.12
Tags:
more ▼

asked Sep 05 '16 at 06:48 PM in Blueprint Scripting

avatar image

SenseiHaketon
186 5 7 9

avatar image Chad_kroeger2005 Jul 02 '18 at 02:02 PM

I know this is old but maybe follow this tutorial it shows you how to make the inventory and shop just find the videos in the playlist and you should be good to go:

https://www.youtube.com/playlist?list=PLL0cLF8gjBpqA8DcrhL_O9kD4jsUqhDR6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

To start you should use arrays. For 1] My main emphasis is Parent-Child Classes. Create an Item parent - even if it has no information - so that all the items can be put into one array. Next create an array variable of Item BP Class in the character Blueprint that all the items the character holds can go into.

For 2] Do the same thing but create the array with items already in it. Use UI Widgets to present them on screen and use a OnClick event to trigger the addition of the item in that array slot to be added to the player array.

If you want more help just ask in comments!

more ▼

answered Jul 03 '18 at 03:19 AM

avatar image

iArchaea
33 1 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question