Hi reader! Trying to help my GM out - we use TurnMarker1 in the game and we wanted a way to remove certain Token Markers at the start of a PC/NPC turn. I found the below from Three of Swords (original post here: <a href="https://app.roll20.net/forum/post/1513795/script-automatically-remove-status-markers-from-tokens" rel="nofollow">https://app.roll20.net/forum/post/1513795/script-automatically-remove-status-markers-from-tokens</a>) which I adapted to remove the Token Markers we wanted for our game... //Currently this script will remove Held Actions and Reaction Used status marker when a
//combatant's turn comes up using the Turn Tracker.
//Add or remove any status effects you want to be cleared to the array (list) below.
var statusMarkersToBeRemoved = [
"status_dd-heldaction::4328823",
"status_reaction-used::6483760",
]
on('change:campaign:turnorder', function(obj) {
var c = Campaign();
var pre_turnorder = c.get('turnorder');
var turn_order;
if (!pre_turnorder) {
return;
}
try {
turn_order = JSON.parse(c.get('turnorder'));
} catch (e) {
log(e);
return;
}
if (!turn_order.length) {
return;
}
var turn = turn_order.shift();
var currentToken = getObj('graphic', turn.id);
statusMarkersToBeRemoved.forEach(function(opts) {
if (currentToken.get(opts)) {
currentToken.set (opts,false);
}
})
}); However, the MOD only removes the specified Token Markers when we use the R20 turn tracker, and would like to have it work with TurnMarker1 - any suggestions would be greatly appreciated, even if it involves another solution! Thanks for your time!