I just want to add 0.1 to the current initiative value of a custom entry in the turn order tracker. I'll add if/else statements later to add to a specific named entry. That part is easy. What I'm having trouble with is setting CurrentRound on the turn object and getting that back into the turn order. on("change:campaign:turnorder", function(obj, prev) {
if (!Campaign().get("turnorder")) return;
var turn_order = JSON.parse(Campaign().get("turnorder"));
if (!turn_order.length) return;
var turn = turn_order.shift();
if (turn.id == -1) {
var CurrentRound = parseInt(turn.pr);
CurrentRound = CurrentRound + 0.1;
????
return;
}
});