Hi there! I haven’t been back in a while, so why not make a guide?
Alright, since I don’t want to answer that because I don’t care, let’s go. (this is for non-season-ticket people) Nothing special for art, just place a sentry, as your NPC and set up a stand, do whatever you need to do. Now, I have extra stuff at the beginning, so you can easily cut that off if you want to.
Extra
Place a button and set it so that it isn’t visible in-game. Place it where you want the player to “talk” to the sentry. Set the button name to “Talk”, then set up a popup. I prefer setting it to ‘banner’ instead of ‘modal’ for this. Set the header to whoever the shopkeeper is, and then you can make it say some kind of “welcome, if you get supplies, come back to me and I’ll give you weird stuff” Then, set up a Call To Action label, and, when clicked, it deactivates the button through a wire, and, make a wire so that when the button is clicked, it opens the popup. This isn’t complicated, so that’s why I’m only including this:
Shopping system
Create a button, set it so that it’s hidden and deactivated on game start, and then activated when the extra popup from before is closed, and finally set the button name to “Talk”. If you didn’t do the extra, then activate it. Now let’s do another popup, set it to banner, and wire the button to the popup and make it this: button pressed → open popup. You can make it say: Weird Guy: Did you get anything yet? And set the primary call to action to “No”, and the secondary call to action to “Yes”. Create another popup and set it to Modal. Set the popup’s header to whatever you are selling, let’s make it a Zapper (common). Then name your price. For me, it’ll be 5 medium shards, and set the primary to “Buy!” and the secondary to “Next”. So great. It should be something like this:
(again, this isn’t super complicated, so I’m not including that many pictures)
Before moving on, make sure to test the first two popups. When you open the extra popup, then click the call to action, and click “Talk” again, it should open a different popup that says “Did you get anything yet?” or whatever you set it to. “No” should do nothing but close the popup, and “Yes” should open the shop and show the Zapper or whatever item.
Since there are 4 more rarities of Zapper, let’s create 5 more popups. Wire all of them together with this: Secondary Call To Action clicked → Open Popup. Just make sure that your “next” button is your secondary call to action so it’ll work and set that as your secondary for all of them except the last one, it can just say “close”. The only holdback is that you can’t go backward, but I don’t think that’s much of a problem. List all other 4 rarities of Zapper and name your price under it. So we have all of our items listed in the shop and their price, but it’s not a shop if you can’t buy stuff
This part is pretty simple. Place down 5 vending machines and set them all so they aren’t visible. Also, put them somewhere where they can’t be interacted with (this is also a flaw) without the need to talk to the sentry. Set each vending machine to each item you’re selling. In this case, I’m selling every variation of Zapper, so I’m setting the vending machine to grant each of those. Oh, also, you should probably insert the price. So now all your vending machines are set up, wire all of your vending machines with the matching popup to “Primary/Secondary call to action clicked → Attempt to purchase” for each of them. Make sure not to link it to the wrong call to action, so when you click “next”, it doesn’t buy it. Also, you can make another popup that says “Weird Guy: You don’t have enough” or whatever you like then wire each of the vending machines to it (Attempt to purchase fails → Open popup) so it tells you. You could also add another popup that says “Weird Guy: Thanks for buying”, and then wire the vending machines to that as well (Item purchased → Open popup) and test! it should run smoothly.
Now it’s all up to you! I hope this guide helped! If it did, leave a like (P.S. Sorry it doesn’t have a lot of pictures.) Also, list how hard it is down below!
(edit), since there was already a guide on the exact same thing, credit goes to @Aubec7. However just to make this clear, I did not copy this person’s work. This was simply discovered by me on one of my projects. I apologize if it seemed if I were copying your work and taking it as my own.
- 1/10
- 2/10
- 3/10
- 4/10
- 5/10
- 6/10
- 7/10
- 8/10
- 9/10
- 10/10