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

Trying to print an item's name to chat

I'm not certain if I'm going about this the right way, but I assumed this would work. I am trying to make a macro that prints to remind me about items in a character's inventory and it's not finding it. /w gm @{inventoryname0} This should theoretically print the name attribute for the first thing in their inventory, right? Instead I get an error: No attribute was found for @{<CharName>|inventoryname0} There is an item in their inventory and it has a name. Is there something I'm missing? or something I could check? Thanks for any help or insight
What character sheet are you using?
DND 5e OGL (sorry, forgot to say)
For the first item's name you can use @{repeating_inventory_$0_itemname} This is because the inventory is a repeating section. Access those attributes, outside of a value inside the repeating section requires you to prepend the attribute with the section name (repeating_inventory) and the index ($X where X starts at 0) of the item you want to access..
ohhh. I thought it might be but the wiki said "note that this is not a repeating action" ...but maybe that was for something else or it hasn't been updated. But it works now! Thanks!