Discuss Scratch

Yanderan
Scratcher
100+ posts

The ability to put event blocks in define scripts

I think this would be very useful
JavierR100
Scratcher
500+ posts

The ability to put event blocks in define scripts

Can you explain?
Do you mean like this:
definewhengfclicked
or this?
define.... . .ifwhengfclickedthenwhenclickedwhenclickedsetwhengfclickedtowhengfclicked
JavierR100
Scratcher
500+ posts

The ability to put event blocks in define scripts

whoops, i mean like this?
define...insert events blocks here
Yanderan
Scratcher
100+ posts

The ability to put event blocks in define scripts

JavierR100 wrote:

Can you explain?
Do you mean like this:
definewhengfclicked
or this?
define.... . .ifwhengfclickedthenwhenclickedwhenclickedsetwhengfclickedtowhengfclicked
Yeah. A bit like #2
GlassGalaxy
Scratcher
500+ posts

The ability to put event blocks in define scripts

Like this…?

define...whenclickedwhatevermorestuff

But wouldn't I just be able to do this?

define...whatevermorestuffwhenclicked. . .
Jonathan50
Scratcher
1000+ posts

The ability to put event blocks in define scripts

You can already put events blocks in custom blocks:
definefoobroadcast...andwait

If you mean putting hat blocks in custom blocks, what will that do?
Sheep_maker
Scratcher
1000+ posts

The ability to put event blocks in define scripts

What would the event block do? Would it trigger the custom block when the event happens, like this:
whenclickedfoodefinefoo
TNGC_TEST
Scratcher
33 posts

The ability to put event blocks in define scripts

you don't need it because the defined block can be attached to an event block
JavierR100
Scratcher
500+ posts

The ability to put event blocks in define scripts

Bump?
Ziggy741
Scratcher
1000+ posts

The ability to put event blocks in define scripts

What would it be used for?
Yanderan
Scratcher
100+ posts

The ability to put event blocks in define scripts

So you could put the hat block right underneath the define block. I can't show you an exact image, but you can try to show me one
Ziggy741
Scratcher
1000+ posts

The ability to put event blocks in define scripts

Yanderan wrote:

So you could put the hat block right underneath the define block. I can't show you an exact image, but you can try to show me one
What would it do?
Yanderan
Scratcher
100+ posts

The ability to put event blocks in define scripts

Ziggy741 wrote:

Yanderan wrote:

So you could put the hat block right underneath the define block. I can't show you an exact image, but you can try to show me one
What would it do?
So for example, if you made a custom block called “hjfuvrhgutghtu” with a
whenclicked
on top of the define script (under the define block itself), then you just be able to place the block alone and when you click the green flag, it would run!
alexphan
Scratcher
1000+ posts

The ability to put event blocks in define scripts

Yanderan wrote:

Ziggy741 wrote:

Yanderan wrote:

So you could put the hat block right underneath the define block. I can't show you an exact image, but you can try to show me one
What would it do?
So for example, if you made a custom block called “hjfuvrhgutghtu” with a
whenclicked
on top of the define script (under the define block itself), then you just be able to place the block alone and when you click the green flag, it would run!
So basically

whenclickedhjfuvrhgutghtudefinehjfuvrhgutghtudostuff
Ziggy741
Scratcher
1000+ posts

The ability to put event blocks in define scripts

alexphan wrote:

Yanderan wrote:

Ziggy741 wrote:

Yanderan wrote:

So you could put the hat block right underneath the define block. I can't show you an exact image, but you can try to show me one
What would it do?
So for example, if you made a custom block called “hjfuvrhgutghtu” with a
whenclicked
on top of the define script (under the define block itself), then you just be able to place the block alone and when you click the green flag, it would run!
So basically

whenclickedhjfuvrhgutghtudefinehjfuvrhgutghtudostuff
So the thing would just run the green flag?
Yanderan
Scratcher
100+ posts

The ability to put event blocks in define scripts

Ziggy741 wrote:

alexphan wrote:

Yanderan wrote:

Ziggy741 wrote:

Yanderan wrote:

So you could put the hat block right underneath the define block. I can't show you an exact image, but you can try to show me one
What would it do?
So for example, if you made a custom block called “hjfuvrhgutghtu” with a
whenclicked
on top of the define script (under the define block itself), then you just be able to place the block alone and when you click the green flag, it would run!
So basically

whenclickedhjfuvrhgutghtudefinehjfuvrhgutghtudostuff
So the thing would just run the green flag?
Sort of.
Ziggy741
Scratcher
1000+ posts

The ability to put event blocks in define scripts

Yanderan wrote:

Ziggy741 wrote:

alexphan wrote:

Yanderan wrote:

Ziggy741 wrote:

Yanderan wrote:

So you could put the hat block right underneath the define block. I can't show you an exact image, but you can try to show me one
What would it do?
So for example, if you made a custom block called “hjfuvrhgutghtu” with a
whenclicked
on top of the define script (under the define block itself), then you just be able to place the block alone and when you click the green flag, it would run!
So basically

whenclickedhjfuvrhgutghtudefinehjfuvrhgutghtudostuff
So the thing would just run the green flag?
Sort of.
Okay.
Sigton
Scratcher
1000+ posts

The ability to put event blocks in define scripts

Yanderan wrote:

Sort of.
What do you mean by “sort of”?

Sigton
iiHoopsL
Scratcher
30 posts

The ability to put event blocks in define scripts

I was looking through this thread because i need to find out if there is a way to do this for a project:
defineReceivedNextRoundaskthis is supposed to be an eventandwaitaskthen i need to put a script hereandwait

and then make a seperate script looking like:
whenIreceiveNextRoundforeverifReceivedNextRoundthenStuffs


Can anyone help me out?

Last edited by iiHoopsL (March 27, 2021 23:45:10)

IDontNoWatIAm
Scratcher
500+ posts

The ability to put event blocks in define scripts

iiHoopsL wrote:

I was looking through this thread because i need to find out if there is a way to do this for a project:
defineReceivedNextRoundaskthis is supposed to be an eventandwaitaskthen i need to put a script hereandwait

and then make a seperate script looking like:
whenIreceiveNextRoundforeverifReceivedNextRoundthenStuffs


Can anyone help me out?
Why not ask in Help With Scripts?

Powered by DjangoBB