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

Macro issue with charactertemplates

Hi everyone I'm having a problem with my macros. I have the following situation Template Goblin 1 - attributes: - AT - Waffe - Actions: - Attack @{selected|token_name} greifft mit @{selected|Waffe} an /gmroll d20< @{selected|AT} Template Goblin 2 - attributes: - AT - Waffe - Actions: - Attack @{selected|token_name} greifft mit @{selected|Waffe} an /gmroll d20< @{selected|AT} Same for Wolf and Pirate. I Created around 10 tokens for each and mapped them to those (some are mapped 2 times) So we have Pirate Cap (linked to Pirate 1) Pirate cole (linked to Pirate 2) Pirate zar (linked to Pirate 1) Wolf 1 (linked to Wolf) Wolf 2 (linked to Wolf) Wolf 3 (linked to Wolf) The problem is that only the one of the wolfes is working Does anyone know how to fix this? Thank you regards, Tehral
In what way are your Characters or Macros not working?
Silvyre said: In what way are your Characters or Macros not working? Thanks for the fast reply. They are all the same they work with all the wolf tokens but when I use the other tokens I get this error message: "There was an error with your formula. Please try again."
1474743646
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Might help to see the wolf macro.
Scott C. said: Might help to see the wolf macro. That would be @{selected|token_name} greifft mit @{selected|Waffe} an /gmroll d20< @{selected|AT} all of those templates have this macro
Right above the "There was an error with your formula. Please try again." message, do you get another error message? Namely, "No character was found for 'selected'" or "No attribute was found for @{selected|AT}"?
Silvyre said: Right above the "There was an error with your formula. Please try again." message, do you get another error message? Namely, "No character was found for 'selected'" or "No attribute was found for @{selected|AT}"? No there is no message above. I also just removed all Macros out of the templates and added them as global macros. They all work now. But still would be nice to have them as before.
Were you using these macros before as Token Actions ?
Ah, I figured out what's wrong. /gmroll d20< @{selected|AT} Change this to: /gmroll d20<@{selected|AT}
Silvyre said: Ah, I figured out what's wrong. /gmroll d20< @{selected|AT} Change this to: /gmroll d20<@{selected|AT} Yes I used them as Token actions Ah that's a copy error it's actually /gmroll d20<@{selected|AT}  in the action Just checked it still not working. I think it's having some problems with copy templates
What's the value of @{selected|AT}? When you enter @{selected|AT} into the Text Chat, what does it return?
Silvyre said: What's the value of @{selected|AT}? When you enter @{selected|AT} into the Text Chat, what does it return? "12?"
1474749371

Edited 1474749376
Tehral said: "12?" Notice how "/gmroll d20<12?" returns an error? This is the issue. Remove the question mark and you will be fine.
Silvyre said: Tehral said: "12?" Notice how "/gmroll d20<12?" returns an error? This is the issue. Remove the question mark and you will be fine. Thank you for the help, I did choose the other methode with the global action now as it is better to manage :) But still thank you for your help :)