Short little script: on('ready',function(){
"use strict";
on('chat:message',function(msg){
var args, who;
if (msg.type !== "api") {
return;
}
who = getObj('player',msg.playerid).get('_displayname');
args = msg.content.split(/\s+/);
switch(args.shift()) {
case '!see':
_.chain(args)
.map(function(id){
return getObj('graphic',id);
})
.reject(_.isUndefined)
.each(function(o){
sendChat('','/w "'+who+'" [pic]('+o.get('imgsrc')+'#.png)');
});
break;
}
});
})
Then just have a macro for everyone that is: !see @{target|token_id} When they click it, it will prompt them to select a token, which will then be blown up and whispered to them: