How to make a vending machine that requires 2 items?
sorry, I think that’s impossible
I have done it before, hold on
So, I did this in another map. I will send a video to show you
You can use a vending machine to unlock a second, with the item you want.
make it so there are two vending machines and one unlocks after the other
Get two vending machines, a checker, and an item granted
to make it so that when the item is bought in a vending machine a property changes.
make it so that the checker is on a loop and checks for the two properties; if they are both true, then it grants your desired item.
Creating a vending machine that requires two items involves a combination of using the ITEM SPAWNER, ITEM GRANTER, CHECKER, and COUNTER devices. Here is a basic setup for that:
-
ITEM SPAWNER: This will spawn the items that players need to collect for the vending machine. You will need two of these, each spawning a different item.
-
CHECKER: This device checks if a player has enough of both items to use the vending machine. Change the settings to run 2 checks (or whatever amount you want the vending machine to require) to see if the player has more than a specific amount of those items.
-
ITEM GRANTER: Wire 2 ITEM GRANTERS to the CHECKER. If the check passes, take away a specific amount of the item.
-
BUTTON: This is what players will interact with to use the vending machine. Wire this to the CHECKER. When a player interacts with the button, the CHECKER will check the COUNTERS.
-
ITEM GRANTER: Wire the ITEM GRANTER to the CHECKER. If the CHECKER finds that the player has enough of both items, it will trigger the ITEM GRANTER, which gives the player the item from the vending machine.
-
NOTIFICATION: In case a player tries to use the vending machine without having enough of both items, you might want to wire the CHECKER to a NOTIFICATION device that will alert the player they need more items.
So the basic flow is: Players collect items → Player interacts with button → Checker checks if player has items → Item Granter takes away items if there are enough items → The Item Granter grants the item. If there aren’t enough items, the player gets a notification.
do 2 vending machines that both give the same thing, but each one needs a different thing, but connect them with a wire
I don’t think that’s possible, sorry!