This guide shows you how to have the most efficient selling system this forum has ever seen (NO BLOCKS FOR Y’ALL). It will use a for loop to do the stuff.
This guide is very easily expandable to many different types of goods.
The Guide
We have an channel that is called “sell”. This is the channel that triggers whenever you want to sell all items. Comment if you want to make it to sell a player-specified amount of items.
There will be “units” of selling goods. Each unit will sell all of the specific goods the player has. So here’s how to make that unit:
First make a trigger that receives on “sell” (.015s delay*). This will broadcast on “check[insert item name here]”. Make a checker receive on “check[insert item name here]”. It should check if the amount of the item is greater than 0. Wire it to the trigger to trigger it if the check passes. In the checker settings, make it broadcast on “give[insert item name here]Cash”. Make an item granter grant cash when receiving on “give[insert item name here]Cash”. Change the amount of cash to be the value of your item. Also make the trigger take away one of the item.
Here is a unit:
Copy and paste this unit and REMEMBER TO CHANGE THE ITEMS IN THE CHANNEL NAMES. Also change the cash value as you wish.
For ClicClac
No, I am not adding more pictures because I don’t want to spoonfeed things to the forums.
By replying to this topic, you acknowledge that you have read the entire first post and have at least skimmed through the replies to this topic. You also acknowledge that this means that you know what you are posting about. Asking for definitions of non-GKC unique words is not allowed. Google is a great resource for that.