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 .
×
Why do rogues wear leather armor? Because it’s made of hide. 🥷

[help] !setattr not working

Hello.&nbsp; !setattr do nothing for me. I've trued all the examples from <a href="https://wiki.roll20.net/Script:ChatSetAttr" rel="nofollow">https://wiki.roll20.net/Script:ChatSetAttr</a>. &nbsp;And they do nothing. No effect. I'm issuing the command through chat or though macros - no effect. I have pro subscription and&nbsp;!npchp command works fine for me. What am i doing wrong?&nbsp; Actually i'm trying to distribute exp among players, but i need a complete control over experience as i add it to the pool myself and i choose an exact characters who will recieve some, as players have some characters in control who do not share experience. So Easy Experience and Experience Tracker are not for me. I just don't want to open each character shit and add experience manually (as i do it now). I want press button, enter ammount and get all selected or named characters recieve an experience. Have had so much hope for !setattr, but this command do nothing for some reason.&nbsp;
1641325540
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Could you post the code you have tried, even if it is not working properly? It's easier to make suggestions that way. Also, we'll need to know which sheet you are using, since every sheet uses its own attribute names.
Maybe an obvious question, but have you installed the ChatSetAttr script in the game, and is the API running?
Without seeing the command its hard to diagnose your problem but my top assumptions are: 1.&nbsp; You never installed the script. 2.&nbsp; You are using !setattr without the --mod or !modattr OR you are using !setbattr/!modbattr in a field that has no maximum.&nbsp;&nbsp; 3.&nbsp; Your syntax is just wrong.&nbsp;&nbsp; 4.&nbsp; You are not using case sensitivity or proper spaces in the commands.&nbsp;&nbsp; 5.&nbsp; Some or all of the players have a character in their name that breaks chatsetattr.&nbsp;&nbsp;
1641393060
Andreas J.
Forum Champion
Sheet Author
Translator
Try call the&nbsp; !setattr-config command. If that does nothing, there is some issue with your installation of the API, or APIs in general for that game. Did you verify if any other APIs work in your game, or is it only ChatSetAttr? Sometimes the API sandbox crashed and you aren't notified, which only becomes apparent when you try use API that previously worked. Restarting the API sandbox should make it work again.
Maybe an obvious question, but have you installed the ChatSetAttr script in the game, and is the API running? This is it. Simple as that. Thanks all for your help! :D