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

Setting an Attribute's Maximum value inside a macro call

1687988010

Edited 1687988073
Hello i trying to modify attribute_max inside a macro call with setAttr if i call my macro alone it work but not in spellbook Contre => /w gm &{template:default} {{name=Contre}} {{Esquive = [Jet](! #Esquive) [Nombre](! #nbrEsquive)}} {{Parade = [Jet](! #Parade)  [Nombre](! #nbrParade) }} {{ Contre-Sort = [Jet](! #ContreSort) [Nombre](! #nbrContreSort) }} nbrEsquive => !setattr --sel --Esquive||?{nbr |} !setattr --sel --Esquive|%Esquive_max% nbrParade => !setattr --sel --Parade||?{nbr |} !setattr --sel --Parade|%Parade_max% nbrContreSort => !setattr --sel  --ContreSort||?{nbr |} !setattr --sel --ContreSort|%ContreSort_max% someone can help me please
1688014759

Edited 1688014825
Andrew R.
Pro
Sheet Author
You cannot set Attributes using the Macro language available to Free users. You need a Mod available to Pro subscribers. For example, TokenMod, ScriptCards, etc.,  You do not appear to have a Pro subscription. 
1688018069
Gauss
Forum Champion
Hi Sanji,  Does the campaign owner in your game have a Pro account?  Do they have setAttr installed into the API sandbox?
yes to both