Topic Information

a finish unless block by hotdogbananaman in Suggestions

Posts: 336

1: hotdogbananaman wrote at 9:52:29 PM 21/6/20204147474
this is a block that will look like this
finish unless ()

end
and will make it finish whatever you put in it unless something happens
this can be used for if you need to do something were you jump and go into an objecte but dont want to go down at the part where you respawn or if it is saying something but you need to end it when the player pushes something but you can't do that otherwise
2: mlcreater wrote at 10:02:03 PM 21/6/20204147512
repeat until <not <>>

end
right?
3: fdreerf wrote at 10:04:14 PM 21/6/20204147524
I'm confused on what you are saying.
What does “finish” mean?
What does this block do differently than repeat until?
4: hotdogbananaman wrote at 10:04:24 PM 21/6/20204147526

mlcreater wrote:

repeat until <not <>>

end
right?
no, it when you put blocks in it, it will not finish the script if a sertain thing happens and anything happening in the script will also stop
5: hotdogbananaman wrote at 10:05:24 PM 21/6/20204147530

fdreerf wrote:

I'm confused on what you are saying.
What does “finish” mean?
What does this block do differently than repeat until?
the reapet until was an example for what it will look like, when something happens it will not finish the script and anything in the script will stop
6: fdreerf wrote at 10:06:27 PM 21/6/20204147540
if <...> then
stop [this script v]
end
7: hotdogbananaman wrote at 10:09:20 PM 21/6/20204147555

fdreerf wrote:

if <...> then
stop [this script v]
end
but with that the script will not happen unless that happens, so there is nothing to stop
8: fdreerf wrote at 10:12:58 PM 21/6/20204147564
if <...> then
stop [other scripts in sprite v]
end
[/quote]
9: D-ScratchNinja wrote at 10:27:19 PM 21/6/20204147615
Is this like a “repeat while” loop, but it stops as soon as the condition is false?
10: mlcreater wrote at 10:30:46 PM 21/6/20204147636

D-ScratchNinja wrote:

Is this like a “repeat while” loop, but it stops as soon as the condition is false?
If so, then,

mlcreater wrote:

repeat until <not <>>

end
right?
11: hotdogbananaman wrote at 10:30:55 PM 21/6/20204147637

D-ScratchNinja wrote:

Is this like a “repeat while” loop, but it stops as soon as the condition is false?
no, the reapet until thing was something showing HOW IT WILL LOOK and has nothin to do with the function, it is not a loop and will stop the script and everything in it will stop when something happens and
if <> then
stop [script v]
end
will not work because then since the thing only activated when it happens making there to be nothing to stop
12: hotdogbananaman wrote at 10:31:56 PM 21/6/20204147641

mlcreater wrote:

D-ScratchNinja wrote:

Is this like a “repeat while” loop, but it stops as soon as the condition is false?
If so, then,

mlcreater wrote:

repeat until <not <>>

end
right?
no, see my responce to that one
13: Wyan100 wrote at 11:07:15 PM 21/6/20204147727
I don't understand, but I would appreciate it if you took the time to spell your words correctly.
14: AnAccount_StopAsking wrote at 11:09:29 PM 21/6/20204147734
I veer backwards and yawn, juggling cards. I'm pretty confused. “What's this?” I ask.
15: hotdogbananaman wrote at 11:12:13 PM 21/6/20204147743

AnAccount_StopAsking wrote:

I veer backwards and yawn, juggling cards. I'm pretty confused. “What's this?” I ask.
it will stop the script if something happens, like maybe it is saying something and then stops in the middle when you go to next level, but the differentce with just stopping the script is when you do that it will go to whatever is under the block
16: Super_Scratch_Bros20 wrote at 11:12:42 PM 21/6/20204147747

Wyan100 wrote:

I don't understand, but I would appreciate it if you took the time to spell your words correctly.

AnAccount_StopAsking wrote:

I veer backwards and yawn, juggling cards. I'm pretty confused. “What's this?” I ask.

I'm pretty sure that this is a loop that runs the script, but if a certain boolean block occurs, this will stop the script.

I don't know about this one yet. Like the forever if block, I don't think that this is easy for some beginners to grasp.
17: hotdogbananaman wrote at 11:13:59 PM 21/6/20204147750

Wyan100 wrote:

I don't understand, but I would appreciate it if you took the time to spell your words correctly.
mabye
18: hotdogbananaman wrote at 11:14:59 PM 21/6/20204147755

Super_Scratch_Bros20 wrote:

Wyan100 wrote:

I don't understand, but I would appreciate it if you took the time to spell your words correctly.

AnAccount_StopAsking wrote:

I veer backwards and yawn, juggling cards. I'm pretty confused. “What's this?” I ask.

I'm pretty sure that this is a loop that runs the script, but if a certain boolean block occurs, this will stop the script.

I don't know about this one yet. Like the forever if block, I don't think that this is easy for some beginners to grasp.
I have said this 100 times IT. IS. NOT. A. LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOPP
19: skymover1239 wrote at 11:25:26 PM 21/6/20204147777
So like this?
wait until <something is true :: sensing>
Any code below the block will not run unless the condition is true.
20: hotdogbananaman wrote at 11:27:52 PM 21/6/20204147782

skymover1239 wrote:

So like this?
wait until <something is true :: sensing>
Any code below the block will not run unless the condition is true.
no, finish the script until something is true