I cracked the code. After multiple attempts, it is finally done. This is potentially amazing, and could be used for as many inputs as you want. Also you could expand it and repeat for all four inputs on the lua.
Downloads: 86 - Level ID: 8171