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

!modattr API question about macro.

I have this macro, when i use on a player token as GM, it works perfectly, but when the player use this macro don't auto heal. I might have to give permissions to the players for the use of the API commands? if so, how can I do it? thanks :) !?{Number of points to Heal|@{selected|class_resource}} !token-mod --ids @{target|Who is Healed|token_id} --set bar3_value|+[[{?{Number of points to Heal},[[@{target|Who is Healed|hp|max}-@{target|Who is Healed|hp}]]}kl1]] !modattr --silent --name @{selected|token_name} --class_resource|-[[{?{Number of points to Heal},[[@{target|Who is Healed|hp|max}-@{target|Who is Healed|hp}]]}kl1]] &{template:atkdmg} {{desc=You can spend 5 HP's to Cure one Disease, or Neutralize one Poison. Using [[{?{Number of points to Heal},[[@{target|Who is Healed|hp|max}-@{target|Who is Healed|hp}]]}kl1]] points.}} {{charname=@{selected|token_name}}} {{normal=1}} {{mod=on ***@{target|Who is Healed|token_name}***}} {{rname=LAY ON HANDS }} {{attack=1}} {{r1=[[{?{Number of points to Heal},[[@{target|Who is Healed|hp|max}-@{target|Who is Healed|hp}]]}kl1]]}} {{dmg1flag=1}} {{damage=1}} {{dmg1=[[@{selected|class_resource}-[[{?{Number of points to Heal},[[@{target|Who is Healed|hp|max}-@{target|Who is Healed|hp}]]}kl1]]]]}}{{dmg1type=points left}} !roll20AM --audio,play,nomenu|Lay on hands
maybe i need to use the following?  --config players-can-ids|on
1611532718

Edited 1611532770
I think that the solution is in.... !token-mod --help and then  turn on the "Players can IDs" correctly?
I think it should work now.    !token-mod --config