This is NOT the ask and wait block.
So I want a block like (ask for [dropdown \/] with [] [] < >)
And two blocks like {When [dropdown \/] asked Params: () () < >}
And [answer []]
{} = hat block
() = reporter block
[] = command block
The Params thing in when asked are reporters that you can drag from the hat, like byob.
The < > thing can add and remove spaces.
Answer [] "throws" back a value so it reports something.
Edit: this is like defs and returns and parameters in python
Last edited by iTweak0r (2011-11-29 11:09:42)
Offline
soo... like [brodcast script with () and/or () brodcasting with 'dropdown' ] ?
Offline
christian2000 wrote:
soo... like [brodcast script with () and/or () brodcasting with 'dropdown' ] ?
No ask [] with [] [] <> is a reporter.
Like reporter broadcasts with parameters
Offline
ok i get it now!
Offline
Do you edit Scratch source code? This sounds a lot like a CustomMenu...
I think it would be a better idea for the Params area to be a list dropdown, because I doubt the ST will make the little < > buttons that BYOB blocks such as (the list [] [] < > ) have.
Last edited by Greenatic (2011-11-28 17:28:51)
Offline
this IS possible, if you have a variable for each paramater in a sprite with scripts for each function, and also a global variable called return for returning stuff, like this:
{when i receive [something v}
if <something>
{
(do something)
set [return v] to (something)
stop script
}
(do something else)
set [return v] to (something else)
Offline
joefarebrother wrote:
this IS possible, if you have a variable for each paramater in a sprite with scripts for each function, and also a global variable called return for returning stuff, like this:
{when i receive [something v}
if <something>
{
(do something)
set [return v] to (something)
stop script
}
(do something else)
set [return v] to (something else)
Ya but this would make that easier.
Offline