Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Scratch Vs. Pico Vs. Defect
- meowflash
-
500+ posts
Scratch Vs. Pico Vs. Defect
I made a game called, Scratch Vs. Pico, but, the win scripts aren't working. Did I do something wrong?
- drmcw
-
1000+ posts
Scratch Vs. Pico Vs. Defect
Could be sarcastic and just type “yes” but without seeing the scripts that's all we can do!
- meowflash
-
500+ posts
Scratch Vs. Pico Vs. Defect
My game is fixed. Just go there and click look inside.
- ErnieParke
-
1000+ posts
Scratch Vs. Pico Vs. Defect
Actually, the bug is still there, I just checked. My game is fixed. Just go there and click look inside.
Anyway, in Pico, you have this script:
|define [Attack (number)]Blank line
|if <(number) = (1)>
| Attack…
|else
| if <(number) = (2)>
| Attack…
| else
| if <(number) = (3)>
| Attack…
| else
| switch to costume [pico-a v]
| say [Hmmm…] for (2) secs
| broadcast
| if <<(Pico's Health) = (0)> or <(Pico's Health) < (0)>> then
| Scratch Wins!
| end
| end
| end
|end
If you move the a bit, and add a [stop [this script v]] block in it, you should be fine:
|define [Attack (number)]Blank line
|if <<(Pico's Health) = (0)> or <(Pico's Health) < (0)>> then
| Scratch Wins!
| stop
|end
|if <(number) = (1)>
| Attack…
|else
| if <(number) = (2)>
| Attack…
| else
| if <(number) = (3)>
| Attack…
| else
| switch to costume [pico-a v]
| say [Hmmm…] for (2) secs
| broadcast
| end
| end
|end
I hope that this helps!
With regards,
ErnieParke
- meowflash
-
500+ posts
Scratch Vs. Pico Vs. Defect
Now it's really fixed! Thanks, Ernie! (Bert Laugh) 

- Discussion Forums
- » Help with Scripts
-
» Scratch Vs. Pico Vs. Defect