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

roll templates in macros?

This might be the wrong forum to ask this but... I am trying to use a roll template in a macro and having difficulty and wondering if it's even possible. The example shows something like this: &{template:default} {{name=Test With Ability}} {{attack= %{Character_Name|attack} }} {{damage= #damagemacro }} Using that as a basis I tried to setup something like this: &{template:default} {{name=Attack 1}} {{attack= %{selected|attack}}} {{damage=#damage1}} But it doesn't seem to work with @{selected} or %{selected}... "No attribute was found for @{selected|attack}" or "No ability was found for %{selected|attack}". and the output is just: Attack 1 Attack selected|attack Damage #damage1 Aam I going at this wrong? Was trying to make a macro on a "Template Creature" for basic attacks that was formatted nicely like the ones you can run off a "character sheet". Trying to avoid having to bring up a actual sheet for the creature to run an attack and just use the "popup" macros (show as token action)
The token still needs to be linked to a sheet to use the @{selected|whatever}. You can use a single sheet with a rollable table to make several types of monsters to a single sheet and a set of macros. 
al e. said: The token still needs to be linked to a sheet to use the @{selected|whatever}. You can use a single sheet with a rollable table to make several types of monsters to a single sheet and a set of macros.&nbsp; Getting to the macro isn't the problem. It's the running of it. The macro is on a sheet that is attached to the token. Here is what I mean: <a href="http://i.imgur.com/kxqSbri.png" rel="nofollow">http://i.imgur.com/kxqSbri.png</a> <a href="http://i.imgur.com/0k71OZS.png" rel="nofollow">http://i.imgur.com/0k71OZS.png</a> Hopefully I'm not misunderstanding you.
Celestian said: But it doesn't seem to work with @{selected} or %{selected}... "No attribute was found for @{selected|attack}" or "No ability was found for %{selected|attack}". On the Attributes & Abilities Tab of the selected Character , could you verify that you have an Attribute or Ability named 'attack'? If you have a Macro named 'damage1', place a space after that macro's call. i.e. {{damage=#damage1 }}
Silvyre said: On the Attributes & Abilities Tab of the selected Character , could you verify that you have an Attribute or Ability named 'attack'?&nbsp;If you have a Macro named 'damage1', place a space after that macro's call. i.e. {{damage=#damage1 }} Perhaps this will help. Here is what I have right now. <a href="http://i.imgur.com/R12B7Jk.png" rel="nofollow">http://i.imgur.com/R12B7Jk.png</a> With that I can get a good "ac hit" but the damage1 bit is just showing up as&nbsp; <a href="http://i.imgur.com/WlrSEiK.png" rel="nofollow">http://i.imgur.com/WlrSEiK.png</a>
1468112901

Edited 1468112976
Here is what ended up working for me. <a href="http://i.imgur.com/PnMd7GF.png" rel="nofollow">http://i.imgur.com/PnMd7GF.png</a> Atk runs attack1 and damage1 and displays it with token name, attack name followed by Hit AC and Damage done. Thanks for the tips, they got me working in the right direction.