On a serious note... if you setting up script that installs token-action/characters such... having an un-install is really nice. createMacros = function(playerid) { var macrosFound; _.each(moduleMacros, function(obj) { macrosFound = findObjs({ _type: "macro", name: obj.name}); if (macrosFound.length === 0) { createObj("macro", { name: obj.name, _playerid: playerid, visibleto: playerid, action: obj.action, istokenaction: obj.istokenaction }); } }); },
removeMacros = function() { var macrosFound; _.each(moduleMacros, function(obj) { macrosFound = findObjs({ _type: "macro", name: obj.name}); if (macrosFound.length !== 0) { macrosFound[0].remove(); } }); },