Discuss Scratch
- Discussion Forums
- » Suggestions
- » Helpful Workarounds for Frequently Suggested Blocks!
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
What? so wrong XDdefine go to x: (x) y: (y) z: (z)
go to x: (x) y: (y)
set size to (z)
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
the block you want: I'm thinking up a block calledany number in ()::reporter operatorsThis block checks to see if a variable or answer to a question contains a number e.g.any number in (answer)::reporter operatorsIt is for the operators category
any number in (☁ score)::reporter operators
(answer) contains number?::sensing booleanWorkaround:
<<<<<<<<<(text) contains (1)?>> or <<(text) contains (2)?>>>> or <<(text) contains (3)?>>>> or <<<<(text) contains (4)?>> or <<(text) contains (5)?>>>>>> or <<<<<<(text) contains (6)?>> or <<(text) contains (7)?>>>> or <<<<(text) contains (8)?>> or <<<<(text) contains (9)?>> or <<(text) contains (0)?>>>>>>>>>It's too long to see in the forum so this is the code of the scratchblocks:
<<<<<<<<<(text) contains (1)?>> or <<(text) contains (2)?>>>> or <<(text) contains (3)?>>>> or <<<<(text) contains (4)?>> or <<(text) contains (5)?>>>>>> or <<<<<<(text) contains (6)?>> or <<(text) contains (7)?>>>> or <<<<(text) contains (8)?>> or <<<<(text) contains (9)?>> or <<(text) contains (0)?>>>>>>>>>
Last edited by 1080GBA (March 2, 2022 02:25:44)
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
say (if <> then [true] else [false] :: operators)can be made withsay <. . .>
if <...> then
say [true]
else
say [false]
end
Last edited by 1080GBA (Feb. 28, 2022 14:18:13)
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
Here's a worKarounD ForOMG it works??hexadecimal (Hexadecimal Number :: grey) in decimal :: operators reporter(join [0x] (Hexadecimal Number :: grey)) + (0)
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
Workaround: i wish they added a stop all scrips in sprite block like this:stop [all scrips in sprite]
stop [other scripts in sprite v]
stop [this script v]
Last edited by 1080GBA (Feb. 28, 2022 13:42:09)
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
I made ()^() and return blocks((A)^(B)::operators) // blockSorry for bad formatting, this is my first post. And also, add an ability to create custom reporters and booleans.
//Workaround
repeat (B)
set [A v] to ((A)*(A))
end
set [answer v] to (A)
return (answer :: variables) :: control cap
((A)^(B)::operators) // blockdoesn't work for negative powers
//Workaround
set [answer v] to (1)
repeat (B)
set [answer v] to ((answer :: variables)*(A))
end

- Aadish_1759
-
1000+ posts
Helpful Workarounds for Frequently Suggested Blocks!
For negative, you can set answer to 1/A in the beginning and set A toI made ()^() and return blocks((A)^(B)::operators) // blockSorry for bad formatting, this is my first post. And also, add an ability to create custom reporters and booleans.
//Workaround
repeat (B)
set [A v] to ((A)*(A))
end
set [answer v] to (A)
return (answer :: variables) :: control cap((A)^(B)::operators) // blockdoesn't work for negative powers
//Workaround
set [answer v] to (1)
repeat (B)
set [answer v] to ((answer :: variables)*(A))
end
([abs v] of (A))
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
this is better?please don't blockspam. -snip-
workaround for (version) :define scratch version
if <[0] < [a]> then
set [version v] to [version is: 2.0/3.0]
change [version v] by [10]
if <(version) = [NaN]> then
set [version v] to [2.0]
else
set [version v] to [3.0]
stop [this script v]
end
else
set [version v] to [1.4]
stop [this script v]
end
set [version v] to [older than 1.4]
define scratch version
if <[0] < [a]> then
set [version v] to [version is: 2.0/3.0]
change [version v] by [10]
if <(version) = [NaN]> then
set [version v] to [2.0]
else
set [version v] to [3.0]
end
else
if <<[0]<[a]>=(false)> then
set [version v] to [1.4]
else
if <<[0]<[a]>=()> then
set [version v] to [older than 1.4]
end
end
end
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
but only works when power is -1For negative, you can set answer to 1/A in the beginning and set A toI made ()^() and return blocks((A)^(B)::operators) // blockSorry for bad formatting, this is my first post. And also, add an ability to create custom reporters and booleans.
//Workaround
repeat (B)
set [A v] to ((A)*(A))
end
set [answer v] to (A)
return (answer :: variables) :: control cap((A)^(B)::operators) // blockdoesn't work for negative powers
//Workaround
set [answer v] to (1)
repeat (B)
set [answer v] to ((answer :: variables)*(A))
end([abs v] of (A))
Last edited by 1080GBA (Feb. 28, 2022 15:08:38)
- Aadish_1759
-
1000+ posts
Helpful Workarounds for Frequently Suggested Blocks!
(#1051)Have you tried it?but only works when power is -1For negative, you can set answer to 1/A in the beginning and set A toI made ()^() and return blocks((A)^(B)::operators) // blockSorry for bad formatting, this is my first post. And also, add an ability to create custom reporters and booleans.
//Workaround
repeat (B)
set [A v] to ((A)*(A))
end
set [answer v] to (A)
return (answer :: variables) :: control cap((A)^(B)::operators) // blockdoesn't work for negative powers
//Workaround
set [answer v] to (1)
repeat (B)
set [answer v] to ((answer :: variables)*(A))
end([abs v] of (A))
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
is there a workaround for this:(scratcher rank::sensing)so you can tell between ST NS and S
Yes, this project explains it.
(scratcher status::sensing)Can it detect teacher accounts
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
message deleted. read below Workaround for:(# of clones of [sprite1 v]::control)Is whenever you make a clone:when I start as a cloneAnd at start:
change [# of clones of sprite1 v] by (1)//for all sprites | replace sprite1 with sprite namewhen green flag clickedAnd when finished with clones:
set [# of clones of sprite1 v] to [0]set [# of clones of sprite1 v] to [0]When making clone of another sprite:
delete this clonecreate clone of [sprite2 v]or in sprite2:
change [# of clones of sprite2 v] by (1)when I start as a cloneAnd (along with either of the above 2 options | in sprite2):
change [# of clones of sprite2 v] by (1)set [# of clones of sprite2 v] to (0)
delete this clone
Last edited by 1080GBA (March 1, 2022 01:17:08)
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
now it works on power -2 and -1(#1051)Have you tried it?but only works when power is -1For negative, you can set answer to 1/A in the beginning and set A toI made ()^() and return blocks((A)^(B)::operators) // blockSorry for bad formatting, this is my first post. And also, add an ability to create custom reporters and booleans.
//Workaround
repeat (B)
set [A v] to ((A)*(A))
end
set [answer v] to (A)
return (answer :: variables) :: control cap((A)^(B)::operators) // blockdoesn't work for negative powers
//Workaround
set [answer v] to (1)
repeat (B)
set [answer v] to ((answer :: variables)*(A))
end([abs v] of (A))
((Base) ^ (Power)::operators)//Block we want
//I tried this:
set [Answer v] to (1)
if <(Power) > (-1)> then
repeat (Power)
set [Answer v] to ((Answer::variables) * (Base))
end
else
set [Answer v] to ((Answer::variables) / ([abs v] of ((Base) * (Power))))//Doesn't work on power -3
end
Last edited by 1080GBA (March 1, 2022 00:53:06)
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
Workaround for:(# of clones of [sprite1 v]::control)Is whenever you make a clone:when I start as a cloneAnd at start:
change [# of clones of sprite1 v] by (1)//for all sprites | replace sprite1 with sprite namewhen green flag clickedAnd when finished with clones:
set [# of clones of sprite1 v] to [0]set [# of clones of sprite1 v] to [0]When making clone of another sprite:
delete this clonecreate clone of [sprite2 v]or in sprite2:
change [# of clones of sprite2 v] by (1)when I start as a cloneAnd (along with either of the above 2 options | in sprite2):
change [# of clones of sprite2 v] by (1)set [# of clones of sprite2 v] to (0)
delete this clone
nah, due to the 300 clone limit, the variable will keep going up even if cloning has stopped
should be like this:
when green flag clicked
set [clones v] to (0)
forever
reset timer
end
create clone of [myself v]
when I start as a clone//make sure the clone is made successfully before changing clones by 1
change [clones v] by (1)
change [clones v] by (-1)
delete this clone
when [timer v] > (0.1)
forever
reset timer
end
when [timer v] > (0.1)
set [clones v] to (0)
Last edited by 1080GBA (March 1, 2022 01:04:29)
- k0d3rrr
-
1000+ posts
Helpful Workarounds for Frequently Suggested Blocks!
Although this isn't suggested much, there's a three-block workaround for delete all sprites:
broadcast [delete all CLONES not sprites my mistake v] // Because broadcasts can be sent to all clones from the main sprite, this deletes all clones.
when I receive [delete all CLONES not sprites my mistake v]
delete this clone
Last edited by k0d3rrr (March 1, 2022 02:02:21)
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
LoL: for<true :: operators>or<false :: operators>you do for true<[1] = [1]>and for false<[1] = [-1]>
<true::operators>or
<not <>>//workaround for <true>
<false::operators>
<<> and <>>//workarounds for <false>
<<> or <>>
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
Although this isn't suggested much, there's a three-block workaround for delete all sprites:broadcast [delete all sprites v] // Because broadcasts can be sent to all clones from the main sprite, this deletes all clones.
when I receive [delete all sprites v]
delete this clone
when I receive [delete all clones, not sprites v]
delete this clone
- k0d3rrr
-
1000+ posts
Helpful Workarounds for Frequently Suggested Blocks!
My mistake. I didn't notice.Although this isn't suggested much, there's a three-block workaround for delete all sprites:broadcast [delete all sprites v] // Because broadcasts can be sent to all clones from the main sprite, this deletes all clones.
when I receive [delete all sprites v]
delete this clonewhen I receive [delete all clones, not sprites v]
delete this clone
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
Block:
stop running script [When I receieve message 1 v]::control//stop a specific scriptIs there a workaround
Last edited by 1080GBA (March 1, 2022 02:16:53)
- 1080GBA
-
500+ posts
Helpful Workarounds for Frequently Suggested Blocks!
Use this:(dictation :: extension)These are dictation blocks!
start dictation :: extension
stop dictation :: extension
when dictation [starts v] :: extension hat
(loudness)with very complicated scripts
Last edited by 1080GBA (March 1, 2022 05:21:04)
- Discussion Forums
- » Suggestions
-
» Helpful Workarounds for Frequently Suggested Blocks!