There should be an "OR" block that allows for multiple recievings of broadcasts. ( When I receive <broadcast or broadcast2 > ) It would make the scripts a lot more organized, instead of duplicating everything for a single changed variable.
Offline
I see how this could be useful...
Rather than having two identical scripts that start on different broadcasts, you only need one.
Offline
I know how to broadcast one of two things, if that helps. Here is an example.<when green flag clicked><broadcast[ <pick randon(1)to(2)> ]and wait c>
Offline
I could see how this could be useful, like if you had a broadcast script that needed to be carried out under two different circumstances, but there were other, separate actions for those same broadcasts.
Offline
I know:
{When anything recived, save the broadcast in [variable dropdown] and run:}
or instead of the dropdown it could be an upvar like in BYOB
Offline
Don't they already have an OR block in the Operators category?
Offline
You can easily reproduce the functionality of that block like this:
[blocks]
<when I receive[ action!
do stuff
<when I receive[ action2!
<broadcast[ action ]and wait c>
[/blocks]
Then you can use action! and action2! to achieve the same thing, without duplicating the code.
Offline
LS97 wrote:
You can easily reproduce the functionality of that block like this:
[blocks]
<when I receive[ action!
do stuff
<when I receive[ action2!
<broadcast[ action ]and wait c>
[/blocks]
Then you can use action! and action2! to achieve the same thing, without duplicating the code.
This is what I'm doing!
Offline