Discuss Scratch
- 112505oct15
-
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:
Please Support!
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)
- johndeere47
-
100+ posts
Da "Null" block!!!
.
Last edited by johndeere47 (Aug. 27, 2023 01:57:57)
- 112505oct15
-
29 posts
Da "Null" block!!!
nerpwait until <not <?? :: grey>>
Does that not work?
- MathlyCat
-
1000+ posts
Da "Null" block!!!
Then what do you want? You made it a tad too vague.nerpwait until <not <?? :: grey>>
Does that not work?
- braxbroscratcher
-
1000+ posts
Da "Null" block!!!
Null I believe means to make have no effect; it is deleting a script without deleting it.Then what do you want? You made it a tad too vague.nerpwait until <not <?? :: grey>>
Does that not work?
- 112505oct15
-
29 posts
Da "Null" block!!!
u rightNull I believe means to make have no effect; it is deleting a script without deleting it.Then what do you want? You made it a tad too vague.nerpwait until <not <?? :: grey>>
Does that not work?
- Copycat96
-
5 posts
Da "Null" block!!!
null []i dont know what that would do
Last edited by Copycat96 (March 10, 2022 22:44:22)
- Copycat96
-
5 posts
Da "Null" block!!!
wait this would be torture
error404{}error404[]error404()
Last edited by Copycat96 (March 10, 2022 22:47:42)
- mcsquaggle
-
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.support. i will add more blocks if i can
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.
Last edited by mcsquaggle (March 11, 2022 20:11:08)
- Yellowsheep43
-
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 could go under “Variables” as its own color, available by default, even when there are no variables.
(null :: #fca903)
- Maximouse
-
1000+ posts
Da "Null" block!!!
I think the OP wanted a block that would disable a script. 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)
- mcsquaggle
-
500+ posts
Da "Null" block!!!
the OP wanted this: 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)
null [... v] ::extensionbut this could also help:
(null :: #fca903)
- reallysoftuser
-
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
-
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.
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
-
1000+ posts
Da "Null" block!!!
so like the stop block but with an extra thing?
- Pandan_the_coder
-
100+ 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?
I don’t know, but I made a forum topic where each script has a specific name.
- I_LOVE_TO_MAKE_STUFF
-
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.
- Euglena73
-
1000+ posts
Da "Null" block!!!
Not a bad idea, but I don't think it would be very necessary. Semi-support.