Discuss Scratch
- fdreerf
- Scratcher
1000+ posts
Naming Scripts
I don't think the start script block is necessary, it just sounds like broadcasting with extra steps.
Hyped for MS-DOS 11.0
- The_5th_Scratcher
- Scratcher
100+ posts
Naming Scripts
I don't think the start script block is necessary, it just sounds like broadcasting with extra steps.
Broadcasting to start a long script can take a lot more space in a project file
Thank you for taking the time to read this post.
Sorry, you have to wait 60 seconds between posts. | I'm on the scratch wiki! | Naming Scripts | Var Sensing | Tracing Shop | Fifth's Adventure
Winston Churchill said:
We make a living by what we get, but we make a life by what we give.
The 5th Scratcher
User #62532525, Cat Owner, Minecrafter, much more…
This is my current profile pic!
- DarthVader4Life
- Scratcher
1000+ posts
Naming Scripts
You mean, broadcasts can take the space of one block more than a start script.I don't think the start script block is necessary, it just sounds like broadcasting with extra steps.
Broadcasting to start a long script can take a lot more space in a project file
Be Moist Also, here's a helpful link to Ocular
I am DV4L, Erector of Text Walls, Typer of Long Posts, Creator of Mini-mod posts
The kumquats have eaten this line, so I have to have a new way to repel them.
Had a bad day or are feeling bored? Watch this to make your day better in an interesting way.
Do you think you've been banned unfairly? Then you'd be wrong. The ST aren't children, so quit acting like they are.
I am DV4L, Erector of Text Walls, Typer of Long Posts, Creator of Mini-mod posts
The kumquats have eaten this line, so I have to have a new way to repel them.
Had a bad day or are feeling bored? Watch this to make your day better in an interesting way.
Do you think you've been banned unfairly? Then you'd be wrong. The ST aren't children, so quit acting like they are.
- PGBFLITE6373
- Scratcher
1000+ posts
Naming Scripts
It just one block for one file, it won't change much. I honestly don't see the point of this if you can just use brodcastsI don't think the start script block is necessary, it just sounds like broadcasting with extra steps.
Broadcasting to start a long script can take a lot more space in a project file
—————————————————————————————————————————————————————————————————
How to make siggie
- The_5th_Scratcher
- Scratcher
100+ posts
Naming Scripts
You mean, broadcasts can take the space of one block more than a start script.
It just one block for one file, it won't change much. I honestly don't see the point of this if you can just use brodcasts
Which is smaller?
when I receive [Script v]
start [script: 1 v] ::control
or
when I receive [Script v]
...
...
...
...
...
Thank you for taking the time to read this post.
Sorry, you have to wait 60 seconds between posts. | I'm on the scratch wiki! | Naming Scripts | Var Sensing | Tracing Shop | Fifth's Adventure
Winston Churchill said:
We make a living by what we get, but we make a life by what we give.
The 5th Scratcher
User #62532525, Cat Owner, Minecrafter, much more…
This is my current profile pic!
- -Rex-
- Scratcher
500+ posts
Naming Scripts
Which is smaller?when I receive [Script v]
start [script: 1 v] ::control
orwhen I receive [Script v]
...
...
...
...
...
when I receive [Script v]Seems small enough to me. IMO the only reason to add this feature would be if you could have multiple instances/threads of a script running, but your suggestion implies the opposite due to the stop script block.
broadcast [script: 1 v]
- robloxdude10
- Scratcher
1000+ posts
Naming Scripts
removed - i acciedentally posted twice
Last edited by robloxdude10 (June 9, 2021 17:30:30)
i have moved accounts you can find me here
- robloxdude10
- Scratcher
1000+ posts
Naming Scripts
Please remove the supporters list. It's unneeded and takes up space.
i have moved accounts you can find me here
- The_5th_Scratcher
- Scratcher
100+ posts
Naming Scripts
Seems small enough to me. IMO the only reason to add this feature would be if you could have multiple instances/threads of a script running, but your suggestion implies the opposite due to the stop script block.
1. What does imo stand for?
2. the “stop” is a completely different block than the start
Thank you for taking the time to read this post.
Sorry, you have to wait 60 seconds between posts. | I'm on the scratch wiki! | Naming Scripts | Var Sensing | Tracing Shop | Fifth's Adventure
Winston Churchill said:
We make a living by what we get, but we make a life by what we give.
The 5th Scratcher
User #62532525, Cat Owner, Minecrafter, much more…
This is my current profile pic!
- fdreerf
- Scratcher
1000+ posts
Naming Scripts
In my opinion.Seems small enough to me. IMO the only reason to add this feature would be if you could have multiple instances/threads of a script running, but your suggestion implies the opposite due to the stop script block.
1. What does imo stand for?
Hyped for MS-DOS 11.0
- -Rex-
- Scratcher
500+ posts
Naming Scripts
I'm saying that being able to start and stop scripts by label is already what broadcasts do. If you could start a script on a separate thread (unlike a custom block) with as many instances as you'd like (unlike broadcasts), this suggestion would be much more useful, because it its current form I fail to see any functional difference between this and broadcasts.Seems small enough to me. IMO the only reason to add this feature would be if you could have multiple instances/threads of a script running, but your suggestion implies the opposite due to the stop script block.
1. What does imo stand for?
2. the “stop” is a completely different block than the start
Last edited by -Rex- (June 12, 2021 21:08:36)
- Thingied
- Scratcher
1000+ posts
Naming Scripts
Stop Script Block
Semi support because you'll have to put a lot of checks to see if a variable is 1 or not if you have a lot of loops (unless the script is running without screen refresh then not a problem)
Start Script Block
No support because broadcasting is a thing.
Semi support because you'll have to put a lot of checks to see if a variable is 1 or not if you have a lot of loops (unless the script is running without screen refresh then not a problem)
Start Script Block
No support because broadcasting is a thing.
- PkmnQ
- Scratcher
1000+ posts
Naming Scripts
You can just do this:You mean, broadcasts can take the space of one block more than a start script.It just one block for one file, it won't change much. I honestly don't see the point of this if you can just use brodcasts
Which is smaller?when I receive [Script v]
start [script: 1 v] ::control
orwhen I receive [Script v]
...
...
...
...
...
whatever hat is used for script 1 :: events hat
broadcast [Script v]
Last edited by PkmnQ (June 13, 2021 03:19:54)
This is an account that exists.
Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary
- The_5th_Scratcher
- Scratcher
100+ posts
Naming Scripts
Removed start block from the suggestion
Thank you for taking the time to read this post.
Sorry, you have to wait 60 seconds between posts. | I'm on the scratch wiki! | Naming Scripts | Var Sensing | Tracing Shop | Fifth's Adventure
Winston Churchill said:
We make a living by what we get, but we make a life by what we give.
The 5th Scratcher
User #62532525, Cat Owner, Minecrafter, much more…
This is my current profile pic!
- -Rex-
- Scratcher
500+ posts
Naming Scripts
Both blocks can already be implemented using broadcasts, not just the start script block.
Edit: this does not work with multiple “when I receive” blocks, but that can be fixed with an appropriate wait block placed where a when I receive script is told to stop. I do not think this is a major issue, since the block name “stop script” doesn’t make much sense with multiple scripts with the same name.
define start script (script name)
set [var v] to (item # of (script name) in [scripts to stop v] :: list reporter)
if <(var) > [0]> then
delete (var) of [scripts to stop v]
else
broadcast (script name)
end
define stop script (script name)
if <not <[scripts to stop v] contains (script name) ?>> then
add (script name) to [scripts to stop v]
broadcast (script name)
end
when I receive [example script v]
set [var v] to (item # of [example script] in [scripts to stop v] :: list reporter)
if <(var) > [0]> then
delete (var) of [scripts to stop v]
stop [this script v]
end
...
Edit: this does not work with multiple “when I receive” blocks, but that can be fixed with an appropriate wait block placed where a when I receive script is told to stop. I do not think this is a major issue, since the block name “stop script” doesn’t make much sense with multiple scripts with the same name.
Last edited by -Rex- (June 21, 2021 19:45:35)
- The_5th_Scratcher
- Scratcher
100+ posts
Naming Scripts
Both blocks can already be implemented using broadcasts, not just the start script block.
I've removed the start block from the suggestion. I don't think those workarounds are simple enough to have this suggestion rejected.
Thank you for taking the time to read this post.
Sorry, you have to wait 60 seconds between posts. | I'm on the scratch wiki! | Naming Scripts | Var Sensing | Tracing Shop | Fifth's Adventure
Winston Churchill said:
We make a living by what we get, but we make a life by what we give.
The 5th Scratcher
User #62532525, Cat Owner, Minecrafter, much more…
This is my current profile pic!
- The_5th_Scratcher
- Scratcher
100+ posts
Naming Scripts
define stop script (script name)
if <not <[scripts to stop v] contains (script name) ?>> then
add (script name) to [scripts to stop v]
broadcast (script name)
endwhen I receive [example script v]
set [var v] to (item # of [example script] in [scripts to stop v] :: list reporter)
if <(var) > [0]> then
delete (var) of [scripts to stop v]
stop [this script v]
end
...
This is not a workaround. It would only check to stop the script the second it was started.
Thank you for taking the time to read this post.
Sorry, you have to wait 60 seconds between posts. | I'm on the scratch wiki! | Naming Scripts | Var Sensing | Tracing Shop | Fifth's Adventure
Winston Churchill said:
We make a living by what we get, but we make a life by what we give.
The 5th Scratcher
User #62532525, Cat Owner, Minecrafter, much more…
This is my current profile pic!
- The_5th_Scratcher
- Scratcher
100+ posts
Naming Scripts
This is not a workaround. It would only check to stop the script the second it was started. -snip-
The code would stop immediately before running.
Thank you for taking the time to read this post.
Sorry, you have to wait 60 seconds between posts. | I'm on the scratch wiki! | Naming Scripts | Var Sensing | Tracing Shop | Fifth's Adventure
Winston Churchill said:
We make a living by what we get, but we make a life by what we give.
The 5th Scratcher
User #62532525, Cat Owner, Minecrafter, much more…
This is my current profile pic!
- -Rex-
- Scratcher
500+ posts
Naming Scripts
It works fine for me: https://scratch.mit.edu/projects/544382874/This is not a workaround. It would only check to stop the script the second it was started. -snip-
The code would stop immediately before running.