Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Macro for listing potions in inventory

I am using the 5e sheet and my party tends to collect a lot of potions I am wondering if its possible to make a macro to list out potions in everyone's inventory?
cordell m. said: I am using the 5e sheet and my party tends to collect a lot of potions I am wondering if its possible to make a macro to list out potions in everyone's inventory? If you can come up with anything that can get the players to use their expendables, you will be the smartest DM on earth and imo deserve a nobel prize or something.
I use a fairly common 5E houserule that healing potions can be used as a bonus action, which means my players don't have to spend their full action to heal themselves in combat.  And I've made it pretty clear that they'll get more potions if they get used, so they're actually pretty decent about using them. Now for the rest of the items they get, including the ones that aren't even limited use... that's a whole different story haha.
cordell m. said: I am using the 5e sheet and my party tends to collect a lot of potions I am wondering if its possible to make a macro to list out potions in everyone's inventory? I don't know of any way other than a custom API script (requires the game creator to have a Roll20 Pro subscription) to list only potions. But you can use  this macro  to list out all of a character's inventory. Make sure you read through the entire thread, as there's a little bit of setup using a 'macro mule character' required to get the unequipped items to show up properly.
1644878094
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
There are some options to help with potion (and other consumable) handling. Here is my favorite: Deck of Cards to Track Player Resources  - Gozer the Gozerian If you don't want to make your own deck, there are some great options in the Marketplace .
thanks, for my campaigns, my players either use resources or die, I am stingy with rests so potions are the only way to heal in some cases. I give out plenty and they are encouraged to use them.  I have noticed in the official materials that "potion of healing" is the most common magic item found for treasure, so someone creating this content expected those potions to be given out freely. I explain it to my players like, imagine potions of healing are like finding a soda beverage in a post apocalyptic world, you would definitely drink it.
Ok I finished it using those examples, I really like how this turned out. So for anyone that runs across this, here is what I did first, have the consumables listed first on the character sheets, its easy to drag and drop the item order then change the quantity to reflect the number or charges, as you can see I added 6 next to necklace of fireball Then modify Jarren's macro above to your liking. I didn't want to click the token so I just replaced the text with the character name. I will be doing this as a 1 click inventory of everyone so I needed each name instead of clicking each token. personal choice in that case. /w gm &{template:npcaction} {{rname=@{Test character|}}}  {{description= [-- Items --](" style="text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; color: #7e2d40;font-weight: bold; white-space: pre; display: none; display: block@{Test character|repeating_inventory_$0_itemname|max};) [@{Test character|repeating_inventory_$0_itemname} (@{Test character|repeating_inventory_$0_itemcount}) ](" style="text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; color: black;display: none; display: block@{Test character|repeating_inventory_$0_itemname|max};) [@{Test character|repeating_inventory_$1_itemname} (@{Test character|repeating_inventory_$1_itemcount}) ](" style="text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; color: black;display: none; display: block@{Test character|repeating_inventory_$1_itemname|max};) [@{Test character|repeating_inventory_$2_itemname} (@{Test character|repeating_inventory_$2_itemcount}) ](" style="text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; color: black;display: none; display: block@{Test character|repeating_inventory_$2_itemname|max};) [@{Test character|repeating_inventory_$3_itemname} (@{Test character|repeating_inventory_$3_itemcount}) ](" style="text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; color: black;display: none; display: block@{Test character|repeating_inventory_$3_itemname|max};)  }} &{noerror}