Making a shop in pulp

I am making a small game and have a shop, You can get coins and use them in the shop. My current code only allows the player to buy if they have the exact amount of coins, can someone help show me how to make it so that you can buy with any amount of coins as long as its over 1?
on interact do
if coins==2 then
invert
coins--
coins--
end
end

You have to use "greater than or equal to", >=, instead of "equal to", ==.

Change "if coins==2 then" to "if coins>=2 then".

Check the documentation for other conditionals.

1 Like