Topic category: User side tutorials
Since I had some problems with these I wanted to share it (Thank you "Themobgolbler69" for teaching me this).
This tutorial will teach you how to make a "store" (So you can buy things with an item(Not random)).
For the tutorial lets create a diamond store. (You can modify this if you want)
First: Create your own GUI and call it: "Shop", Make a button and lets call it: "Buy diamonds".
Now, lets create the procedure for this button. We will make the player buy 1 diamond with 24 gold ingots. I will leave the procedure here: https://drive.google.com/file/d/1Dbv1nLWRMpeyuXs2GMwkobPgcGTFgrxf/view?…
Customize it any way you want (Remember: to make a custom coin or any other in the game just change where the gold is, and to make it give you something else change it where the diamond is.)
Now on the "Buy diamonds" button select this procedure. And that's it. Hope it works for you!
Sell Button Tutorial:
This will make a button sell stuff in your inventory, lets continue with our example (Buy diamonds with gold).
In the procedure just change places, if you want to sell diamonds to give you gold, just change the gold position with the diamond one.
IMPORTANT NOTE: On the second last block where it says remove, the number 24 means the number of materials specified it will take from player's inventory, change that any way you want.
Also in the block: Get Local: Amount_Of_Item_Needed >, you will see a number 23, this is the number of items needed plus the one on the top. Change that any way you want.
For the sell change the 23 to 0. And the 24 to 1
Following the steps for the Buy Procedure this should be your final product:
And for the sell if you followed steps this should be your procedure: