Discuss Scratch

112505oct15
Scratcher
29 posts

Da "Null" block!!!

Ok, so a lot of times, you want to have something run under an if/then but something else is running under the same trigger that you don't want to run with it. What do you do? The answer is the following:

null [selected script v]
The way this will work is where you pick an option (in this case selected script) and select the script to null by clicking a block. To stop just click anywhere there is no block.
Please Support!

Last edited by 112505oct15 (Feb. 27, 2016 01:40:59)

MathlyCat
Scratcher
1000+ posts

Da "Null" block!!!

wait until <not <?? :: grey>>

Does that not work?
johndeere47
Scratcher
100+ posts

Da "Null" block!!!

.

Last edited by johndeere47 (Aug. 27, 2023 01:57:57)

112505oct15
Scratcher
29 posts

Da "Null" block!!!

MathlyCat wrote:

wait until <not <?? :: grey>>

Does that not work?
nerp
MathlyCat
Scratcher
1000+ posts

Da "Null" block!!!

112505oct15 wrote:

MathlyCat wrote:

wait until <not <?? :: grey>>

Does that not work?
nerp
Then what do you want? You made it a tad too vague.
braxbroscratcher
Scratcher
1000+ posts

Da "Null" block!!!

MathlyCat wrote:

112505oct15 wrote:

MathlyCat wrote:

wait until <not <?? :: grey>>

Does that not work?
nerp
Then what do you want? You made it a tad too vague.
Null I believe means to make have no effect; it is deleting a script without deleting it.
112505oct15
Scratcher
29 posts

Da "Null" block!!!

braxbroscratcher wrote:

MathlyCat wrote:

112505oct15 wrote:

MathlyCat wrote:

wait until <not <?? :: grey>>

Does that not work?
nerp
Then what do you want? You made it a tad too vague.
Null I believe means to make have no effect; it is deleting a script without deleting it.
u right
Copycat96
Scratcher
5 posts

Da "Null" block!!!

null []
i dont know what that would do

Last edited by Copycat96 (March 10, 2022 22:44:22)

Copycat96
Scratcher
5 posts

Da "Null" block!!!

wait this would be torture
error404{}error404[]error404()

Last edited by Copycat96 (March 10, 2022 22:47:42)

mcsquaggle
Scratcher
500+ posts

Da "Null" block!!!

maybe in a new extension called script blocks:
when script [... v] is called ::extension hat //this activates whenever the selected script runs.

null [... v] ::extension //described in the OP.

return [true v] ::extension cap //this will return true/false so you can make a if then script activate if the script returned true/false.
<[... v] returned [true v]::extension> //this is paired with the "return [... v]" block.
call script [... v] ::extension cap //you may think this is just the broadcast block, but this will activate the selected script regardless
//of the hat block on top.
<does script [... v] have a [show v] block?::extension> //this can be used for block detectors if you misplaced something or you really
//want to make one
create script with name [name]{
...
} ::extension //this can create the script inside of the block. could cause moderation issues, but you
//can report a project if it abuses it.

delete script [... v] ::extension //this can be used to delete unwanted scripts

(scripts::extension) //this reports the current amount of scripts in the sprite. good if you are cloning something.
support. i will add more blocks if i can

Last edited by mcsquaggle (March 11, 2022 20:11:08)

Yellowsheep43
Scratcher
1000+ posts

Da "Null" block!!!

For those who don't know, Null is simply no value.

Null could go under “Variables” as its own color, available by default, even when there are no variables.
(null :: #fca903)
Maximouse
Scratcher
1000+ posts

Da "Null" block!!!

Yellowsheep43 wrote:

For those who don't know, Null is simply no value.

Null could go under “Variables” as its own color, available by default, even when there are no variables.
(null :: #fca903)
I think the OP wanted a block that would disable a script.
mcsquaggle
Scratcher
500+ posts

Da "Null" block!!!

Yellowsheep43 wrote:

For those who don't know, Null is simply no value.

Null could go under “Variables” as its own color, available by default, even when there are no variables.
(null :: #fca903)
the OP wanted this:
null [... v] ::extension
but this could also help:
(null :: #fca903)
reallysoftuser
Scratcher
1000+ posts

Da "Null" block!!!

This sounds like a good idea in practice, but how would you specify a script? Would you drag a script onto the dropdown, or would it open a GUI like the color picker where you could click on a script you want to null? What would the block look like after you selected a script?
Gato_Amigo111
Scratcher
500+ posts

Da "Null" block!!!

Support!
This would help me with my projects, as well as making a pause button if certain scripts could be stopped other than “all” or “this script” or “other scripts in this sprite” just from an accessibility standpoint.
7salad3salad
Scratcher
1000+ posts

Da "Null" block!!!

so like the stop block but with an extra thing?
Pandan_the_coder
Scratcher
100+ posts

Da "Null" block!!!

reallysoftuser wrote:

This sounds like a good idea in practice, but how would you specify a script? Would you drag a script onto the dropdown, or would it open a GUI like the color picker where you could click on a script you want to null? What would the block look like after you selected a script?

I don’t know, but I made a forum topic where each script has a specific name.
I_LOVE_TO_MAKE_STUFF
Scratcher
1000+ posts

Da "Null" block!!!

First, I need to understand what “null” is. I've seen it a lot in JavaScript, but I don't understand it.
mbrick2
Scratcher
1000+ posts

Da "Null" block!!!

I_LOVE_TO_MAKE_STUFF wrote:

(#18)
First, I need to understand what “null” is. I've seen it a lot in JavaScript, but I don't understand it.
Null is the value of nothingness
Euglena73
Scratcher
1000+ posts

Da "Null" block!!!

Not a bad idea, but I don't think it would be very necessary. Semi-support.

Powered by DjangoBB