To override the temp HP stored in bar_1 only if the new roll is higher than the existing value, we probably need to use more than just TokenMod . Simple version: TokeMod command to set new value of bar_1 for the selected character, ignoring the existing values: !token-mod --set bar1_value|[[1d6]] Advanced Version: Using Fetch + some more of the Meta-Toolbox scripts like APILogic together with TokenMod should make this possible, but there are probably multiple ways to do this.