There are only "when I receive" hat blocks, which seems to be what you were referring to. That is the purpose of a broadcast, to start a new script when an event is raised. (When a broadcast is, well, broadcasted)
Last edited by Harakou (2011-06-14 11:15:19)
Offline
I assume that need to have a broadcast change something in a running script (like inside a forever loop) or cause a loop to stop running (something that is pretty common to want to do).
One technique is to have the recieving broadcast change a variable. Your script could start with:
"repeat until" <somevariable=0>
(do stuff)
Then your broadcast "listening" script would be:
"When I recieve" (some message)
Set (somevariable) = 0
This will stop the other script. The action of the variable that you change, could, of course, do something inside the other script instead of stopping a repeat until loop.
Offline
Because its curved on the top and has no, lets call it connectability, on the top. You can only add programming underneath the block like so.
[blocks]<when I receive[
<move( 10 )steps>[/blocks]
As you can see, nothing can be added above it, but you can add whatever you wish to add below the block.
Last edited by CloneCommando1 (2011-06-14 12:50:14)
Offline