| Blockland Forums > Modification Help |
| VCE onVariableFunction, How do I get <arg0>, <arg1> into <NAMED BRICK>? |
| (1/1) |
| nalem:
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. --- Code: ---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 ] [ **** ] --- End code --- ****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? |
| mp7964:
This forum is for Torquescript problems, not problems with the eventing system. |
| Navigation |
| Message Index |