Ha! I appreciate the confidence, Joshua! I do need to get some more string manipulation functionality into the Metascript Toolbox, but for this one I think you could manage with just the Plugger replace() function. Assuming the max HP for a formula like "2d8+6" would be 22, then the way to get that from the toolbox would be: {&math {&eval}replace(--source|@{selected|npc_hpformula} --find|d|*){&/eval} } To see that output to the console, start it with a bang (!) and include a {&simple}: !{&math {&eval}replace(--source|@{selected|npc_hpformula} --find|d|*){&/eval} }{&simple} Putting that in the TokenMod line, you don't need the {&simple} (since that stops the message from continuing on to TokenMod, which is what we want). This command sets the bar1_max value to be the result of the npcformula: !token-mod --set bar1_max|{&math {&eval}replace(--source|@{selected|npc_hpformula} --find|d|*){&/eval} } Solution But, to make this most efficient -- to make it so you wouldn't have to select specific NPCs based on their creature type -- you can use a {&select} statement to get your NPC tokens on the page, a forselected operation to iterate over those tokens, and a Fetch retrieval of the individual token's npc_hpformula: !forselected(^) token-mod --set bar1_max|{^&math {^&eval}replace(--source|@^(selected.npc_hpformula) --find|d|*){^&/eval} } {&select *, +npc} Extended Solution That only gets you the max value for bar1. If you also wanted to get each individual token an individual value for the current value of bar1, you can set it in the same TokenMod command we are iterating. Here is a version that writes the max value like we did, just above, but which then also *rolls* the formula to see what the current value should be -- and all on a token-basis. !forselected(^) token-mod --set bar1_max|{^&math {^&eval}replace(--source|@^(selected.npc_hpformula) --find|d|*){^&/eval} } bar1_value|{^&r}@^(selected.npc_hpformula){^&/r} More Cowbell: Really Exploring the Space There are different approaches to getting the current/max values for a given creature. Options for Deriving Max Value Take the maximum possible value of the hp formula (as if every die had maxed out). This is what we did, above. Or... Roll the formula for max (a specific max for this instance of this creature type), or... Use the formula to roll for current, but use that value as the max value, too. Options for Deriving Current Value Use the formula and roll for *actual* current HP. Or... Once you've derived a max HP value for this token, roll some number of dice to subtract that many hits and use that as the current value. Or... Roll for Current value using the HP formula, and use the value as both The above "extended solution" is just one way of using the formula to derive max and current values. If it doesn't fit what you're doing, post back with the rule you'd rather follow (just a verbal explanation), and we can tweak the command line to make that happen.