Sandwich said:
I'm not even aware of what Metascripts are ha
![](https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExdWRyMmM0ZmZrZW9nb292ZXNkdnJkdXpjb3pldXpicGc3NXdoc3YwYSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/o5WWcOWtyvRxC/giphy.gif)
I...
I just... need a second...
Metascripts work with other scripts to provide functionality otherwise unavailable on Roll20. You can watch this video to learn more.
If you want to do what I'm about to show, you'll need to install the Metascript Toolbox (available in the 1-click). The Toolbox is a set of scripts that perform discrete jobs. One handles special operations with selected tokens, one provides IF/THEN logical constructions to command lines, one provides access to game information not normally available to macros, etc.
Starting with what Jarren showed, we'll move the report out to it's own command in a ZeroFrame batch (ZeroFrame is part of the Toolbox).
!{{
!token-mod --set bar1_value|+[[?{Healing Potion?|Regular,2d4+2|Greater,4d4 + 4|Superior,8d4 + 8|Supreme,10d4 + 20}]]!
(^){^&template:simple}({)rname=Healing Potion(}) ({)r1={^&math @^(selected.bar1)-@(selected.bar1)} (}) ({)normal=1(})({)charname=@{selected|token_name} (})
}}
I also use Fetch (another Metascript) to get info from the token, and MathOps (yep, another Metascript) to perform math at the appropriate time.
There's probably more you could do to pretty it up or to convey more information (and the Toolbox can help with that, should you like), but this gets the basic idea across.