#how to make a buy system
10 messages · Page 1 of 1 (latest)
Button pressed
If (Money>Price) Money=money-price
Else do whatever you want
wait so Wire the "pressed" to If?
@empty kite
So
Have a Money variable
Wire the right int "amount" you have to The = chip
Then Underneath there should be another Input int config it and type in the amount the price is.
So back to the variable The exec output should be Connected to a If chip and wire your = chip to the if chip where its red "bool" then wire "Then" from the if chip to a Subtract chip and have another money variable wired to the Subtract chip and underneath again the amount.
THIS IS HOW IT WORKS IF YOU HAVE THE AMOUNT
If not then wire "else" from the if chip to a "show notification" chip and type in like "More money needed" or something
Then boom ur done
@safe portal
If u need anythin else lemme know