Would it be possible to change the script from this thread <a href="https://app.roll20.net/forum/post/201089/script-ca" rel="nofollow">https://app.roll20.net/forum/post/201089/script-ca</a>... so that the token does not have to belong to a player in order for them to use the !carry command? The issue is that this script doesn't work if the token is linked to a character sheet (and permission settings configured properly there), it only works with generic tokens and permission settings within said tokens - otherwise it spits out the 'this token does not belong to you' error. Of course, the GM can always use the command but I want my players to give lightsources or important items to other characters on their own accord (and no more squabbling who still carries an item or not or who was first) without my help. So, do I just remove this part or does this break the script? // You must be in control of your token and the carried token.
if((myToken.get("controlledby").indexOf(getPlayer(msg.who).get("_id")) !== -1) || msg.who.indexOf("(GM)") !== -1) {
for(var i in arrCopy) {
var carriedToken = arrCopy[i];
log(carriedToken);
_dropCmd(myToken, carriedToken);
sendChat(msg.who, "/em : " + myTokenName + " dropped " + carriedToken.get("name"));
}
}
else {
sendChat(msg.who, "/w " + msg.who + " " + myTokenName + " does not belong to you!");
}
}