We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To trigger this Event block
{ opcode: 'whenArrived', blockType: BlockType.EVENT, text: 'When robot arrive [LOCATION]', func: 'whenArrived', arguments: { LOCATION: { type: ArgumentType.STRING, defaultValue: "location", menu: 'LOCATION', } }, isEdgeActivated: false, }
I am calling this runtime.startHats("robot_whenArrived", { LOCATION: location }, target);
runtime.startHats("robot_whenArrived", { LOCATION: location }, target);
I expect that the menu can acceptReporters and startHats will still works with reporter block as arguments.
Only blocks with items selected from menu can be triggered by startHats.
startHats
It cannot take reporters as arguments.
Using reporter as argument will make hatFields[matchField] undefined in this check
hatFields[matchField]
scratch-vm/src/engine/runtime.js
Lines 1841 to 1851 in 91dadad
The text was updated successfully, but these errors were encountered:
This is probably a duplicate of #1922.
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
To trigger this Event block
I am calling this
runtime.startHats("robot_whenArrived", { LOCATION: location }, target);
I expect that the menu can acceptReporters and startHats will still works with reporter block as arguments.
Actual Behavior
Only blocks with items selected from menu can be triggered by
startHats
.It cannot take reporters as arguments.
Steps to Reproduce
Using reporter as argument will make
hatFields[matchField]
undefined in this checkscratch-vm/src/engine/runtime.js
Lines 1841 to 1851 in 91dadad
The text was updated successfully, but these errors were encountered: