Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Secret teams (how I could do it?)
- PPJB
-
42 posts
Secret teams (how I could do it?)
Hi again.
I returned to make the penalty kick game, but now I'm making the 32 countries version. But I want to include many secret countries more. I tried this script:
when flag1 clicked
if continent=America
if key g pressed?
set Team to Greenland
else
set Team to Canada
stop script
But it doesn't work. (This is a very simplified bit of my script.) This is for unlocking Greenlkand, clicking the flag of Canada + pressing G.
How can I include the secret teams? Is there some error in my script? Thanks.
I returned to make the penalty kick game, but now I'm making the 32 countries version. But I want to include many secret countries more. I tried this script:
when flag1 clicked
if continent=America
if key g pressed?
set Team to Greenland
else
set Team to Canada
stop script
But it doesn't work. (This is a very simplified bit of my script.) This is for unlocking Greenlkand, clicking the flag of Canada + pressing G.
How can I include the secret teams? Is there some error in my script? Thanks.
- dracae
-
1000+ posts
Secret teams (how I could do it?)
Make sure you have a forever or repeat until <> around the “key g pressed?” specifically, or else it won't really work.
- dracae
-
1000+ posts
Secret teams (how I could do it?)
Glad I could help! I will give a try. Thanks a lot!

Hope it works!

- PPJB
-
42 posts
Secret teams (how I could do it?)
Nope, it doesn't work… Really, I was using a code of numbers for each country (from 0 to 55 )
I don't know what to do. Maybe I upload temporally the Project to the page… What says?
I don't know what to do. Maybe I upload temporally the Project to the page… What says?
- PPJB
-
42 posts
Secret teams (how I could do it?)
Hold it! I think that have found the cause of the problem! I'm going to fix it, and the I'm going to try your solution. Thanks!
- PPJB
-
42 posts
Secret teams (how I could do it?)
Althoug, i tried your options, and the best one is to use only the “If” block, that I only reserved for flags with 2 or more secret teams. But, thanks for everything.
- dracae
-
1000+ posts
Secret teams (how I could do it?)
Glad I could help! Althoug, i tried your options, and the best one is to use only the “If” block, that I only reserved for flags with 2 or more secret teams. But, thanks for everything.

- Discussion Forums
- » Help with Scripts
-
» Secret teams (how I could do it?)