my 1 liner does work!
Proof of concept...
[{"id":"7b69f526.621aec","type":"inject","z":"56fa9896.d15ed8","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":80,"wires":[["a6091beb.8838a8"]]},{"id":"2868a3fb.7658ec","type":"inject","z":"56fa9896.d15ed8","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":120,"wires":[["a6091beb.8838a8"]]},{"id":"d9d7ecc3.46f0c","type":"inject","z":"56fa9896.d15ed8","name":"","topic":"","payload":"3","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":200,"wires":[["a6091beb.8838a8"]]},{"id":"94be3aca.6d5bf8","type":"inject","z":"56fa9896.d15ed8","name":"","topic":"","payload":"2","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":160,"wires":[["a6091beb.8838a8"]]},{"id":"a6091beb.8838a8","type":"function","z":"56fa9896.d15ed8","name":"","func":"return [ {payload : msg.payload == 0 ? 1 : 0}, {payload : msg.payload == 1 ? 1 : 0}, {payload : msg.payload == 2 ? 1 : 0}, {payload : msg.payload == 3 ? 1 : 0}];","outputs":4,"noerr":0,"x":350,"y":120,"wires":[["afe798d4.320b58"],["f2c45dcf.5cdad"],["25c8acdb.ebe174"],["7eadb353.c3a5dc"]]},{"id":"afe798d4.320b58","type":"debug","z":"56fa9896.d15ed8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":530,"y":80,"wires":[]},{"id":"f2c45dcf.5cdad","type":"debug","z":"56fa9896.d15ed8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":530,"y":120,"wires":[]},{"id":"25c8acdb.ebe174","type":"debug","z":"56fa9896.d15ed8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":530,"y":160,"wires":[]},{"id":"7eadb353.c3a5dc","type":"debug","z":"56fa9896.d15ed8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":530,"y":200,"wires":[]}]
That is if I'm guessing your requirements correctly.
What this does is send a message on every output BUT only one of the payloadds will be 1, the others will be 0