1
Modification Help / VCE onVariableFunction, How do I get <arg0>, <arg1> into <NAMED BRICK>?
« on: November 04, 2011, 06:10:31 AM »
VCE onVariableFunction, How do I get <arg0>, <arg1> into <NAMED BRICK>?
Can a called function reach back and touch the caller?
Wrench and edit two bricks.
Can I return a payload to the brick that called?
Am I limited to preloading the Duplicator function on the triggerbrick, and after eventbrick logic decides, pong back a command to use it?
I'm trying to reduce the event spam across a forest of triggers. Can I abstract the common payload functions and pass the calling brick instead?
Can a called function reach back and touch the caller?
Wrench and edit two bricks.
Code: [Select]
Name the first [Triggerbrick ]
[x]0 [0 ][onActivate ][<NAMED BRICK>][fireRelay ]
[Eventbrick ]
[x]1 [0 ][onActivate ][<NAMED BRICK>][VCE_callFunction ][testFunction ][<var:brick:name> ]
[Eventbrick ]
[x]2 [0 ][onActivate ][Client ][Chat Message ][feedback---trigger--- ]
Name the second [Eventbrick ]
[x]0 [0 ][onRelay ][Self ][VCE_statefunction ][testFunction ][1 3]
[x]1 [0 ][onVaribableFunction ][Client ][Chat Message ][feedback---event--- ]
[x]2 [0 ][onVaribableFunction ][Client ][Chat Message ][hairy event logic here ]
[x]3 [0 ][onVaribableFunction ][<NAMED BRICK>][set Item ][Duplicator ]
[ **** ]
****How do I get <arg0>, <arg1> into <NAMED BRICK>? Can I return a payload to the brick that called?
Am I limited to preloading the Duplicator function on the triggerbrick, and after eventbrick logic decides, pong back a command to use it?
I'm trying to reduce the event spam across a forest of triggers. Can I abstract the common payload functions and pass the calling brick instead?