Discuss Scratch

robloxdude10
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

robloxdude10 wrote:

So, like this?
do unless<...::grey boolean>{
...::grey
}:: control
Wait I just realized this has a workaround so I'm reporting as resolved.
THAT IS NOT WHAT i AM SAYING AT ALL!
Ok. Please use the scratchblocks plugin to show me what you mean.

i have moved accounts you can find me here
Yeetoburro1
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

Yeetoburro1 wrote:

Do something 
if <whatever> then
stop [this script v]
end
Repeat this to your hearts desire and this should be the workaround
also not what I am saying at all
I don't see how this is not what you are saying. You want something that does something and will just stop anytime if a certain condition, and my script does that. Also, you are being kinda rude, which makes me not want to take part in this discussion.

HTML-Fan
Scratcher
1000+ posts

a finish unless block

Yeetoburro1 wrote:

hotdogbananaman wrote:

Yeetoburro1 wrote:

Do something 
if <whatever> then
stop [this script v]
end
Repeat this to your hearts desire and this should be the workaround
also not what I am saying at all
I don't see how this is not what you are saying. You want something that does something and will just stop anytime if a certain condition, and my script does that. Also, you are being kinda rude, which makes me not want to take part in this discussion.
It's more or less this. Maybe the stop script x block could help:
when green flag clicked - name: script :: hat :: events
do something cool :: grey
when green flag clicked
forever
if <condition :: grey> then
stop script [script v] :: control
end
end
Of course, you can just use “stop other scripts in sprite”.
And yes, it sounds like he's somehow angry or misunderstood (which may be the case).

Last edited by HTML-Fan (June 29, 2020 19:22:26)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
hotdogbananaman
Scratcher
100+ posts

a finish unless block

HTML-Fan wrote:

Yeetoburro1 wrote:

hotdogbananaman wrote:

Yeetoburro1 wrote:

Do something 
if <whatever> then
stop [this script v]
end
Repeat this to your hearts desire and this should be the workaround
also not what I am saying at all
I don't see how this is not what you are saying. You want something that does something and will just stop anytime if a certain condition, and my script does that. Also, you are being kinda rude, which makes me not want to take part in this discussion.
It's more or less this. Maybe the stop script x block could help:
when green flag clicked - name: script :: hat :: events
forever
do something cool :: grey
end
when green flag clicked
forever
if <condition :: grey> then
stop script [script v] :: control
end
end
And yes, it sounds like he's somehow angry or misunderstood (which may be the case).
no

minecraft creepers be like:
forever
stop [this house from existing v]
end
HTML-Fan
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

no
Man, I haven't seen such a long and exact post in a loooong time!

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
hotdogbananaman
Scratcher
100+ posts

a finish unless block

HTML-Fan wrote:

hotdogbananaman wrote:

no
Man, I haven't seen such a long and exact post in a loooong time!
noone is understanding wht I am saying so I am clarifying

minecraft creepers be like:
forever
stop [this house from existing v]
end
HTML-Fan
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

HTML-Fan wrote:

hotdogbananaman wrote:

no
Man, I haven't seen such a long and exact post in a loooong time!
noone is understanding wht I am saying so I am clarifying
With one word.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
Paddle2See
Scratch Team
1000+ posts

a finish unless block

I believe what they are asking for is a way to set up a “break” condition on a stack of blocks such that when a boolean becomes true, the stack stops execution (in whatever block happens to be executing) without completing it's operation.

It would be similar to starting a

wait until <break condition>
stop [stack of blocks that called me v]

from a stack of blocks just before it executes.

It's an interesting idea - do we have any good use cases?

Last edited by Paddle2See (June 29, 2020 18:31:57)


Scratch Team Member, kayak and pickleball enthusiast, cat caregiver.

This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
(credit to Za-Chary)



;
Maximouse
Scratcher
1000+ posts

a finish unless block

Paddle2See wrote:

I believe what they are asking for is a way to set up a “break” condition on a stack of blocks such that when a boolean becomes true, the stack stops execution (in whatever block happens to be executing) without completing it's operation.

It would be similar to starting a

wait until <break condition>
stop [stack of blocks that called me v]

from a stack of blocks just before it executes.

It's an interesting idea - do we have any good use cases?
But when someone said this:

HTML-Fan wrote:

It's more or less this. Maybe the stop script x block could help:
when green flag clicked - name: script :: hat :: events
forever
do something cool :: grey
end
when green flag clicked
forever
if <condition :: grey> then
stop script [script v] :: control
end
end
And yes, it sounds like he's somehow angry or misunderstood (which may be the case).
OP replied with “no”.


This is Maximouse's signature. Learn more about signatures.
hotdogbananaman
Scratcher
100+ posts

a finish unless block

Paddle2See wrote:

I believe what they are asking for is a way to set up a “break” condition on a stack of blocks such that when a boolean becomes true, the stack stops execution (in whatever block happens to be executing) without completing it's operation.

It would be similar to starting a

wait until <break condition>
stop [stack of blocks that called me v]

from a stack of blocks just before it executes.

It's an interesting idea - do we have any good use cases?
if you need to make it stop when they go to the next level but don't need it to finish he script orthe animation, or if you are making a tutorial for something and it has a skip button, it would skip the tutorial for that

minecraft creepers be like:
forever
stop [this house from existing v]
end
hotdogbananaman
Scratcher
100+ posts

a finish unless block

Maximouse wrote:

Paddle2See wrote:

I believe what they are asking for is a way to set up a “break” condition on a stack of blocks such that when a boolean becomes true, the stack stops execution (in whatever block happens to be executing) without completing it's operation.

It would be similar to starting a

wait until <break condition>
stop [stack of blocks that called me v]

from a stack of blocks just before it executes.

It's an interesting idea - do we have any good use cases?
But when someone said this:

HTML-Fan wrote:

It's more or less this. Maybe the stop script x block could help:
when green flag clicked - name: script :: hat :: events
forever
do something cool :: grey
end
when green flag clicked
forever
if <condition :: grey> then
stop script [script v] :: control
end
end
And yes, it sounds like he's somehow angry or misunderstood (which may be the case).
OP replied with “no”.
I said no because it is not a loop

minecraft creepers be like:
forever
stop [this house from existing v]
end
HTML-Fan
Scratcher
1000+ posts

a finish unless block

It is!
So, do I understand you right? You just need
repeat until <condition :: grey>

end
? In that case, it's your lucky day, the block exists.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
hotdogbananaman
Scratcher
100+ posts

a finish unless block

HTML-Fan wrote:

It is!
So, do I understand you right? You just need
repeat until <condition :: grey>

end
? In that case, it's your lucky day, the block exists.
IT IS NOT A LOOP!

minecraft creepers be like:
forever
stop [this house from existing v]
end
HTML-Fan
Scratcher
1000+ posts

a finish unless block

WHAT IS NOT A LOOP??? BTW MY SHIFT AND CAPSLOCK KEY IS BROKEN ON MY KEYBOARD TOO!

Last edited by HTML-Fan (June 29, 2020 18:44:40)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
Maximouse
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

HTML-Fan wrote:

It is!
So, do I understand you right? You just need
repeat until <condition :: grey>

end
? In that case, it's your lucky day, the block exists.
IT IS NOT A LOOP!
So it's like this?
stop when <> {

} :: control


This is Maximouse's signature. Learn more about signatures.
HTML-Fan
Scratcher
1000+ posts

a finish unless block

Should it instantly stop when the condition becomes true? Wherever the code is?

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
hotdogbananaman
Scratcher
100+ posts

a finish unless block

Maximouse wrote:

hotdogbananaman wrote:

HTML-Fan wrote:

It is!
So, do I understand you right? You just need
repeat until <condition :: grey>

end
? In that case, it's your lucky day, the block exists.
IT IS NOT A LOOP!
So it's like this?
stop when <> {

} :: control
then go to the thing under it

minecraft creepers be like:
forever
stop [this house from existing v]
end
hotdogbananaman
Scratcher
100+ posts

a finish unless block

HTML-Fan wrote:

Should it instantly stop when the condition becomes true? Wherever the code is?
then go to the thig under it

minecraft creepers be like:
forever
stop [this house from existing v]
end
Maximouse
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

Maximouse wrote:

hotdogbananaman wrote:

HTML-Fan wrote:

It is!
So, do I understand you right? You just need
repeat until <condition :: grey>

end
? In that case, it's your lucky day, the block exists.
IT IS NOT A LOOP!
So it's like this?
stop when <> {

} :: control
then go to the thing under it
OK. So if I write this code
stop when <touching [mouse-pointer v]?> {
wait (1) seconds :: control
} :: control
say [Hi!]
it would say “Hi!” when either 1 second passes or you move mouse over the sprite?


This is Maximouse's signature. Learn more about signatures.
HTML-Fan
Scratcher
1000+ posts

a finish unless block

Okay. I can tell you how to do it.
Convert
when green flag clicked
finish unless <condition :: grey>{
do something:: grey
} :: control
continue :: grey
into
when green flag clicked
do something:: grey
when green flag clicked
wait until <condition :: grey>
stop [other scripts in sprite v]
broadcast [continue v]
when I receive [continue v]
continue :: grey
Or with the stop script block you can just stop the one green flag script.

Last edited by HTML-Fan (June 29, 2020 19:25:52)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/

Powered by DjangoBB