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

Issue with macro I created.

Hi there. So I created a little macro using Tokenmod that seemed to work perfectly when I tested it.  Basically it's for looting.  I make Bar2 Max the loot contained within the token, the player can target that token to loot, it will tell them what to put in their inventory and then change Bar 2 Max to "Nothing of Interest" so the next person who checks it won't find anything. The script is: /w @{selected|character_name} has taken @{target|loot|bar2|max}.  Add items to inventory now. !token-mod --ids @{target|loot|token_id} --set bar2_max|"Nothing of interest" Like I said, it worked perfectly when I tried it before the session.  I even set my chat to "As Player" and clicked "Join as player" and it worked perfectly. However, when an actual player uses it, it tells them what they are looting but does not change Bar 2 Max to "Nothing of Interest". I'm certain it's because players don't have the same permissions as GM's but I have no idea what I could possibly change to fix it.  Any help would be greatly appreciated.
1551471293
Ziechael
Forum Champion
Sheet Author
API Scripter
You are spot on, you need to enable Players Can IDs. Run !token-mod --help and set it to on.
My god it was so simple. Thank you very much! I was at my wits end trying to figure out my mistake.
1551482518
Ziechael
Forum Champion
Sheet Author
API Scripter
You are welcome, its what the forums are for :) We've all been there at some point!
1551495961
GiGs
Pro
Sheet Author
API Scripter
If you want a slightly more robust way to do this, here are two scripts: Loot from Ability (my rudimentary script, may update it one day) Robin Kuiper's LazyLoot : for 5eOGL, create loot tables, let players take loot and add to inventory automatically.