Changed  setting a variable to a script-group

This seems more efficient to me, since the entire raw 005 event was
inside an if statement. Moving from that to a script-group (/help
groups) seems better as it wouldn't call the script every time the 005
event is triggered.