Your first flow

This walkthrough builds a small flow: when you press a button, it picks a random intensity and vibrates your shockers with it. It takes about five minutes, and it only ever vibrates. When you're done it will look like this:

Manual TriggerTriggeredRandomExecuteDoneValueIntegerVibrateExecuteIntensityDurationDevice IDsShocker IDsDone

Before you start, make sure at least one shocker shows Active on the Devices page. If you haven't yet, read safety controls as well.

1. Create the flow

  1. Click Flows in the sidebar.
  2. Click New above your flow list. MultiShock creates a flow called "New Flow", opens it, and switches the left panel to Nodes.
  3. Click the flow name at the top right of the toolbar and rename it, for example to "Random buzz".

2. Add the nodes

  1. In the Nodes tab, type manual in Search nodes, then drag Manual Trigger onto the canvas.
  2. Search for random and drag Random to the right of it.
  3. Search for vibrate and drag Vibrate to the right of that.

To move a node later, drag it.

3. Wire them together

Drag from each output pin on the right of a node to an input pin on the left of the next one:

  1. Manual Trigger → Triggered to Random → Execute.
  2. Random → Done to Vibrate → Execute.
  3. Random → Integer to Vibrate → Intensity.

The first two wires are green Flow pins: they set the order things happen in. The third carries a number. See how nodes work for what the pin colors mean.

Tip: you can also drag a wire from a pin and let go on empty canvas. MultiShock lists the nodes that fit, and wires up the one you pick.

4. Set the properties

Click a node to see its settings in the property panel on the right.

  1. Click Random and set Minimum to 20 and Maximum to 50.
  2. Click Vibrate and check Duration (seconds). The default of 1 second is fine. Leave Target on All Shockers to vibrate every active shocker.

Vibrate's own Intensity setting isn't used here, because the wired Intensity input takes its place. Each shocker's Power limit still scales the result.

5. Save and run

  1. Click Save in the toolbar.
  2. Click Run. The status next to the flow name changes to Running, and the flow is locked for editing while it runs.
  3. Click the lightning button that appears in the toolbar, Fire the trigger once, right now. Your shockers vibrate at a random intensity between 20 and 50.

Click the lightning button a few times, and hover over a node to see how long its last run took. To see which number Random picked, stop the flow and add a Display node after Vibrate: wire Vibrate → Done to its Execute, and Random → Integer to its Value. Run the flow again, and Display shows each number on the canvas.

When you're done, click Stop. If you leave a flow running, it keeps running when you leave the editor and starts again the next time you open MultiShock.

Where to go next

Contributors

Thank you to everyone who has helped improve this documentation.