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 .
×

ChatSetAttr macro problem

1610052301

Edited 1610052335
Good evening everyone, I have a problem with the ChatSetAttr script .. If I run, in a macro, an assignment like     !setattr --name Lirir --AttP|?{Power Attack Talent|0} everything works fine, but if I use in a multiline macro like     !setattr --name Lirir --AttP|?{Power Attack Talent|0}     /roll 1d20 + @{Lirir|AttP} the die roll is made before "!attr" sets the modifier. I also tried to separate the two lines into separate macros with:     !setattr --name Lirir --AttP|?{Power Attack Talent|0}     #AttackMacro1 but even so, the macro #AttackMacro1 is executed before the "!attr" Any suggestions? Thanks Stefano.
1610053237
Andreas J.
Forum Champion
Sheet Author
Translator
Yeah, it wont work with multi-line macros. You could try to put chatsetattr inside the macro, and use the embedded version. <a href="https://wiki.roll20.net/ChatSetAttr#Inline_roll_example" rel="nofollow">https://wiki.roll20.net/ChatSetAttr#Inline_roll_example</a>