This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Event Scripting
#6
event.dstraw can be used for this. Be careful not to create am infinite script loop. Only input1 objects must be mapped to the event script tag.
Code:
value1 = event.getvalue()

addr2 = event.dstraw + 14
value2 = grp.getvalue(addr2)

outaddr = event.dstraw + 34

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
Reply


Messages In This Thread
Event Scripting - by Ibrahim - 17.03.2023, 08:45
RE: Event Scripting - by admin - 17.03.2023, 08:56
RE: Event Scripting - by Ibrahim - 17.03.2023, 09:24
RE: Event Scripting - by Erwin van der Zwart - 17.03.2023, 09:39
RE: Event Scripting - by Ibrahim - 17.03.2023, 11:43
RE: Event Scripting - by admin - 17.03.2023, 12:02
RE: Event Scripting - by Ibrahim - 17.03.2023, 12:23
RE: Event Scripting - by admin - 17.03.2023, 12:29
RE: Event Scripting - by Ibrahim - 17.03.2023, 12:35

Forum Jump: