Logic Machine Forum
Eventscript not trigger a new event - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Eventscript not trigger a new event (/showthread.php?tid=4967)



Eventscript not trigger a new event - Morten L - 14.09.2023

Hi, i have two setpoints that can be changed locally.
When one change, i want to update the other to be the same.

Im trying to do this with just two event scripts updating each other, but ofc it goes into loop.
But im certain ive read about a way to have a script not trigger a new event.
Am i right, or am i misremembering and have to use an intermediary value ?


RE: Eventscript not trigger a new event - admin - 14.09.2023

This script won't run if it is triggered by another event script.
Code:
if event.sender ~= 'se' then
  value = event.getvalue()
  grp.checkwrite('0/0/2', value)
end



RE: Eventscript not trigger a new event - Morten L - 14.09.2023

Perfect, thank you so much