Discuss Scratch

PainfulScreamsALT
Scratcher
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
Catscratcher07
Scratcher
1000+ posts

How to make something still purchasable even when you have more than enough cash to buy it.

use
<not <[] < []>>
instead of =
Mozboz
Scratcher
1000+ posts

How to make something still purchasable even when you have more than enough cash to buy it.

Catscratcher07 wrote:

use
<not <[] < []>>
instead of =
Or
<[a] > [b]>
Just make it so that “b” is one lower than the price. Or do
<<[a] > [b]> and <[a] = [b]>>
michaeljackson1365
Scratcher
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
Scratcher
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)
Mozboz
Scratcher
1000+ posts

How to make something still purchasable even when you have more than enough cash to buy it.

michaeljackson1365 wrote:

< < [a] > [b] > or < [a] = [b] >>
Thanks for the correction

PainfulScreamsALT wrote:

Y'all are my saviors

(The scripts worked ty sm)
Glad we could help!

Powered by DjangoBB