![]() |
Eventlog and object description - 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: Eventlog and object description (/showthread.php?tid=6069) |
Eventlog and object description - stianj - 04.08.2025 Hi! I'm using the eventlog script from https://forum.logicmachine.net/showthread.php?tid=350 Works fine! But I'd want to log when doors and windows are opened/closed. Instead of having an event script on each object, I'm thinking of using a group tag. But is it possible to use the object description in the script? So I can write "Bedroom window" in the object description, and then use the grouptag script to write to the log "Bedrom window opened" or "Bedroom window closed" (and obviously the same for all other windows/doors..?) RE: Eventlog and object description - admin - 04.08.2025 Use this: Code: obj = grp.find(event.dst) |