17.03.2023, 12:29
You will need another similar script mapped to input 2 groups.
Code:
value2 = event.getvalue()
addr1 = event.dstraw - 14
value1 = grp.getvalue(addr1)
outaddr = event.dstraw + 20
if value1 == 0 then
grp.write(outaddr, 0)
elseif value1 == 1 and value2 == 0 then
grp.write(outaddr, 1)
elseif value1 == 1 and value2 == 85 then
grp.write(outaddr, 2)
end