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

D&D 5e OGL - Macro templates combined with sheet actions

Hello all together, I am new to the system and I am working on monster sheet templates at the moment. I found a lot of helpful material on various platforms - thanks @ all. For the monster templates I am using ability macros on the token to safe some time for common uses. Until now I could solve all the problems with some research but the following makes me wonder: Macro:   &{template:atkdmg} %{selected|repeating_npcaction_$0_npc_action} I can use the roll template for Attack & Damage to display some awesome information. But when I use the roll template in combination with the dynamic references I do get minimal output only. Is there a possibility to get more details about sheet actions? Or can I change my macro to enhance the output? Thanks in advance p.s.: If I execute the action and go up in the chat textarea I get the following: @{Goblin|wtype}&{template:npcaction} {{attack=1}} {{damage=1}} {{dmg1flag=1}}  @{Goblin|npc_name_flag} {{rname=Scimitar}} {{r1=[[@{Goblin|d20}+(4+0)]]}} @{Goblin|rtype}+(4+0)]]}} {{dmg1=[[1d6 + 2+0]]}} {{dmg1type=slashing}} {{dmg2=[[+0]]}} {{dmg2type=}} {{crit1=[[1d6+0]]}} {{crit2=[[+0]]}} {{description=}} @{Goblin|charname_output} I am able to manipulate this macro. But if I want to extract the attack modificator to add the {{mod=}} parameter for example (+4 here), there is just a number in the macro and not a reusable variable.
Are you just trying to use a character ability to reference  the action on the sheet? If so, you just need to call the action with the ability: %{selected|repeating_npcaction_$0_npc_action} This action already contains the chat output (whisper/public) information as well as the appropriate template to use (&{template:atkdmg} for example). If this is not what you were attempting, could you provide some more information so that we can help you?
Hi Kyle, Thanks for your quick response. I will try to clarify my situation. I would like to show some images but the input box freezes everytime I try to upload images. Sheet output @{Goblin|wtype}&{template:npcaction} {{attack=1}} {{damage=1}} {{dmg1flag=1}}  @{Goblin|npc_name_flag} {{rname=Scimitar}} {{r1=[[@{Goblin|d20}+(4+0)]]}} @{Goblin|rtype}+(4+0)]]}} {{dmg1=[[1d6 + 2+0]]}} {{dmg1type=slashing}} {{dmg2=[[+0]]}} {{dmg2type=}} {{crit1=[[1d6+0]]}} {{crit2=[[+0]]}} {{description=}} @{Goblin|charname_output} This is what the sheet uses when I click on the action in the character sheet with the following result: Simple macro /w gm &{template:atkdmg} %{selected|repeating_npcaction_$0_npc_action} This macro changes the above output to somthing like this but with a damage roll: Combined macro (for testing) /w gm &{template:atkdmg} {{attack=1}} {{damage=2}} {{dmg1flag=1}}  @{Goblin|npc_name_flag} {{rname=Scimitar}} {{r1=[[@{Goblin|d20}+(4+0)]]}} @{Goblin|rtype}+(4+0)]]}} {{dmg1=[[1d6 + 2+0]]}} {{dmg1type=slashing}} {{dmg2=[[+0]]}} {{dmg2type=}} {{crit1=[[1d6+0]]}} {{crit2=[[+0]]}} {{description=}} {{@{Goblin|charname_output}}} Now it gets confusing for me. There are several attributes given that are not even shown in the output. Because of the template:atkdmg I expected a specific output but I only do get the 'Simple macro' output with one or two more information but a similar layout. (Sorry upload of images not possible right now) Desired macro ( Attack & Damage ) /w gm &{template:atkdmg} {{mod=mod}} {{rname=rname}} {{r1=r1}} {{always=1}} {{r2=r2}} {{attack=1}} {{range=range}} {{damage=1}} {{dmg1flag=1}} {{dmg1=dmg1}} {{dmg1type=dmg1type}} {{dmg2flag=1}} {{dmg2=dmg2}} {{dmg2type=dmg2type}} {{crit1=crit1}} {{crit2=crit2}} {{save=1}} {{saveattr=saveattr}} {{savedesc=savedesc}} {{savedc=savedc}} {{desc=desc}} {{hldmg=hldmg}} {{spelllevel=spelllevel}} ammo=ammo {{charname=charname}} What I realy want to have is the following output: I know that I do not need every entry for every attack/spell, but it would be nice to have the felxibility to decide by myself. Conclusion It would be nice if I could read variables like ' attr_attack_tohit0' or something similar to write my own macro that delivers the desired, detailed output. It would even be better if I could use the 'Simple macro' option from above with a few tweaks to get the output in the template I requested (in this case atkdmg). Is something like this possible? Do I miss something?