Event Script assosiated grp_address - 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: Event Script assosiated grp_address (/showthread.php?tid=2140) |
Event Script assosiated grp_address - DarthPaul - 04.07.2019 Hello Can anyone help me with the LUA script for the assosiated Group address?. For group address 1/1/1, I have a event script. I need the variable Test to be "1/1/1" Something like: Test = script.params(_SCRIPTNAME) log(Test) --- Which should log 1/1/1 This I would like to log the assosiated group address.. But I can't fint the LUA for this Plan is to copt many Scripts, and refer to the original grp.adress, and then if XX write grp.adress + eg. 10 without editing inside the script. RE: Event Script assosiated grp_address - admin - 04.07.2019 event.dst contains group address that executed the script If you need multiple scripts doing the same logic you should use one script mapped to a tag instead. RE: Event Script assosiated grp_address - DarthPaul - 05.07.2019 Worked Perfectly. event.dst with the use og tag was just what I was looking for. Thanks again admin :-) |