Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make something still purchasable even when you have more than enough cash to buy it.
- PainfulScreamsALT
-
4 posts
How to make something still purchasable even when you have more than enough cash to buy it.
I'm making a Pizza Place game and I want it to where you can buy upgrades. When I was testing it, It only worked when you had a certain amount of cash. I want it to where you can buy it when you have more than the required amount. Maybe this script could help lead somewhere.
when this sprite clicked
if <(Cash) = > then
broadcast
repeat (4)
change effect by (25)
repeat (150)
change by (-1)
hide
end
end
end
when this sprite clicked
if <(Cash) = > then
broadcast
repeat (4)
change effect by (25)
repeat (150)
change by (-1)
hide
end
end
end
- Catscratcher07
-
1000+ posts
How to make something still purchasable even when you have more than enough cash to buy it.
use
<not <[] < []>>instead of =
- Mozboz
-
1000+ posts
How to make something still purchasable even when you have more than enough cash to buy it.
Or use<not <[] < []>>instead of =
<[a] > [b]>Just make it so that “b” is one lower than the price. Or do
<<[a] > [b]> and <[a] = [b]>>
- michaeljackson1365
-
1000+ posts
How to make something still purchasable even when you have more than enough cash to buy it.
< < [a] > [b] > or < [a] = [b] >>
Last edited by michaeljackson1365 (March 5, 2025 02:07:57)
- PainfulScreamsALT
-
4 posts
How to make something still purchasable even when you have more than enough cash to buy it.
Y'all are my saviors 
(The scripts worked ty sm)

(The scripts worked ty sm)
- Mozboz
-
1000+ posts
How to make something still purchasable even when you have more than enough cash to buy it.
Thanks for the correction< < [a] > [b] > or < [a] = [b] >>

Glad we could help! Y'all are my saviors
(The scripts worked ty sm)
- Discussion Forums
- » Help with Scripts
-
» How to make something still purchasable even when you have more than enough cash to buy it.