Discuss Scratch

JoshuaRumsey
Scratcher
100+ posts

XP rewards

I need help with a script on where if you get a certain amount of XP you get a star (AKA Gems)
I have tried it where
if <(XP) = [50]> then
change [Stars v] by (1)
end
But this wont work
Please help!

EDIT: Fixed it an alternate way,
forever
if <(XP) = [50]> then
change [Stars v] by (1)
wait (2) secs
end

Last edited by JoshuaRumsey (April 22, 2017 19:09:25)

JoshuaRumsey
Scratcher
100+ posts

XP rewards

Bump
asivi
Scratcher
1000+ posts

XP rewards

JoshuaRumsey wrote:

Bump
asivi
Scratcher
1000+ posts

XP rewards

Are you going to share your project?
Slugger314
Scratcher
100+ posts

XP rewards

Try this:
if <((XP) mod (50)) = [0]> then
change [Stars v] by (1)
end
This will give a star when the XP is a multiple of 50.



100 posts achieved 3:48 PM on the 17th of May in 2017
JoshuaRumsey
Scratcher
100+ posts

XP rewards

Slugger314 wrote:

Try this:
if <((XP) mod (50)) = [0]> then
change [Stars v] by (1)
end
This will give a star when the XP is a multiple of 50.
Fixed it, thanks though

Powered by DjangoBB