I want to make it so when you push a button it takes away 3 ¨wood¨ and it places a barrier but i cannot figure out how to make it take an item
When the button is pressed, wire it to a checker, that checks for greater than 2 wood. When the check passes, wire it to an item granter that takes -3 wood, and when it fails make a notification that says there is not enough wood.
This help?
You could just use an invisible vending machine that requires certain item(s) instead of a checker system, it is way simpler.
A item granter but have the granter set to a specific item and you can make it grant negative amounts
he wants a button, but whatever:)
The first way is to just use a vending machine, but if you want it to be a button, do this:
You will need 1 button, 1 checker, 2 item granters, and 1 popup(optional).
Button settings:
Checker Settings:
(note that if I want it to cost 3 you have to put greater than 2)
Item Granter settings:
(note that I am buying the 1 teal seed and spending the 3 brown seeds.)
Popup Settings:
(this will send a message if you do not have enough)
Please let me know if you have further questions!
correct, but an invisible vending machine is way more efficient and has more possibilities, but, button checker is completely fine depends on what other systems your game have.
that’s why I like communism
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.