Discuss Scratch

The_5th_Scratcher
Scratcher
100+ posts

Naming Scripts

The Start Block is no longer a part of this suggestion.
The workaround is too simple

Blocks:

stop [script: Placeholder Name v] :: control stack

Block Uses:

Any hat block part of a project will have the ability to have the script named when right clicked.


Mockup

The stop script could be put in other scripts instead of a stop this script inside of 15 if then blocks. I

The reason there is a script: … is because the stop block already has options. If someone named a script “this script” and there was no script: before it, there would be two this scripts and a user would have to guess which one is named

Last edited by The_5th_Scratcher (June 13, 2021 16:04:59)


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

Pros: it would be way simpler to stop scripts

Cons: It would be out of the way. (Many users probably wouldn't know of its existence)

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!


Queer_Royalty
Scratcher
1000+ posts

Naming Scripts

I agree. I think that this would make it easier to control and keep track of scripts. I also fixed the block.

stop script [Placeholder Name v]

i would like to sincerely apologize for the above post.



i am stupid, weird, worthless, and in general a bad person but at least i am decent at platformers.
The_5th_Scratcher
Scratcher
100+ posts

Naming Scripts

I put script: <Placeholder name> so if someone named a script “all” it would show up as script: all and not confuse users

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!


linearlemur
Scratcher
500+ posts

Naming Scripts

Can't you just do this:

when green flag clicked
say []
stop [this script v]

when green flag clicked
think [] for (2) secs
stop [this script v]

I found out how to put letters in cloud variables! https://turbowarp.org/526557379 (I really didn't feel like sharing the project, lol)
EatNYeet
Scratcher
500+ posts

Naming Scripts

linearlemur wrote:

Can't you just do this:

when green flag clicked
say []
stop [this script v]

when green flag clicked
think [] for (2) secs
stop [this script v]
That isn't a workaround.

Still trying to figure out a signature that's funny. Oh well, something will come to me eventually.
bf-christmas
New to Scratch
15 posts

Naming Scripts

Really, why cant we just use the
stop [this script v]
block?

look at my projects and stuff once in a while
linearlemur
Scratcher
500+ posts

Naming Scripts

EatNYeet wrote:

linearlemur wrote:

Can't you just do this:

when green flag clicked
say []
stop [this script v]

when green flag clicked
think [] for (2) secs
stop [this script v]
That isn't a workaround.

Yes it is, just use stop this script for every script that you want to stop. That would be easier than going through the trouble of naming every script you want to stop.

I found out how to put letters in cloud variables! https://turbowarp.org/526557379 (I really didn't feel like sharing the project, lol)
EatNYeet
Scratcher
500+ posts

Naming Scripts

linearlemur wrote:

EatNYeet wrote:

linearlemur wrote:

Can't you just do this:

when green flag clicked
say []
stop [this script v]

when green flag clicked
think [] for (2) secs
stop [this script v]
That isn't a workaround.

Yes it is, just use stop this script for every script that you want to stop. That would be easier than going through the trouble of naming every script you want to stop.
The problem with doing this is if the stopping is conditional, then you have to copy and paste the code in every script you want to do this to, therefore leaving less room for the rest of the code.

Last edited by EatNYeet (May 28, 2021 17:10:42)


Still trying to figure out a signature that's funny. Oh well, something will come to me eventually.
The_5th_Scratcher
Scratcher
100+ posts

Naming Scripts

linearlemur wrote:

EatNYeet wrote:

That isn't a workaround.

Yes it is, just use stop this script for every script that you want to stop. That would be easier than going through the trouble of naming every script you want to stop.

<Deleted>

think [] for (2) secs
Would stop on its own. Like EatNYeet said, those aren't workarounds

Last edited by The_5th_Scratcher (May 28, 2021 18:04:18)


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

I already suggested this:

stop [script: Placeholder Name v] :: control stack

what if I add a start block to the suggestion?

start [script: Placeholder Name v] :: control stack

It would restart scripts that had already been turned off.

Pros of the start block:
- It would reduce project size because instead of a duplicate code line for a “when I receive” it would just be a single “start”
- It would give the option to reset code without 15 if then blocks

Cons:
- It could be confusing
- What would happen if the script is already 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!


Maximouse
Scratcher
1000+ posts

Naming Scripts

The_5th_Scratcher wrote:

say []
would go on forever. It would never stop. My suggestion can stop that.
The say blocks doesn't work like that. It just sets the contents of the speech bubble and continues running the code after it.


This is Maximouse's signature. Learn more about signatures.
The_5th_Scratcher
Scratcher
100+ posts

Naming Scripts

Maximouse wrote:

The say blocks doesn't work like that. It just sets the contents of the speech bubble and continues running the code after it.
Oh

Last edited by The_5th_Scratcher (May 28, 2021 18:05:19)


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

bump (Edited original post)

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

bump

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!


cavemanster
Scratcher
100+ posts

Naming Scripts

I support, as this helps to organize scripts and only stop certain scripts.
The_Imaginarium
Scratcher
1000+ posts

Naming Scripts

Nice idea, but I rarely find myself ever needing to stop scripts externally, and this would create confusion for scratchers who don't know about this feature and see inside a project with this.

Also, you would have to comment each script with it's name, unless there was another way to display it's name.

Since you say “organization” I assume we're talking about very large projects. The dropdown menu for the stop block would become unbearably long and unnecessary this way.

Because of the reasons above, no support.
The_5th_Scratcher
Scratcher
100+ posts

Naming Scripts

The_Imaginarium wrote:

The dropdown menu for the stop block would become unbearably long and unnecessary this way.
Same with the broadcast dropdown.

Last edited by The_5th_Scratcher (June 2, 2021 18:20:45)


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

Bump

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

bump

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!


Powered by DjangoBB