
I'm working on creating characters through chatbox input, and I'm nearly done. What I presently lack is a good way to get a character dragged over onto the map. So the current process would be... 1) Run '!createme Name' 2) Drag from Character pane to map. 3) Run '!setme (data)'... Can I roll '2' into '1'? Here's 'createme': on('chat:message', function(msg) {
if(msg.type == 'api' && msg.content.indexOf('!createme ') != -1) {
var name = msg.content.substring(9);
var curPageId = Campaign().get("playerpageid");
var character = createObj('character', {
name: name,
bio: '',
gmnotes: '',
archived: false,
inplayerjournals: msg.playerid,
controlledby: msg.playerid,
avatar: '<a href="https://s3.amazonaws.com/files.d20.io/images/5356582/kSzAxQqNOBlRlEKPRwKlUg/thumb.png?1409327289" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/5356582/kSzAxQqNOBlRlEKPRwKlUg/thumb.png?1409327289</a>'
});
};
});
Thanks Aaron for the formatting tip