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

[5e OGL] Reference NPC Actions In a Roll

I have been trying to figure out how to directly reference NPC actions, reactions, and spells. I want to create a macro that I can apply to all NPCs, allowing me to roll their various abilities (especially attacks) without needing to open up the character sheets. For full characters, I can use [@{selected|repeating_attack_$0_atkname}](~selected|repeating_attack_$0_attack). I haven't been able to figure out how to do the same for NPCs and their actions. I've been trying to look through the html on github, but no luck so far. I'm don't really know much about that anyways, so other than ctrl-f for similar things, I dont know exactly what to look for. Thank you very much for your assistance.
I use this macro for NPC attacks  /w gm&{template:npcatk} {{name=@{selected|npc_name}}} {{rname=Actions}} {{r1=[[4]] }} {{normal=1}} {{description=1:[@{selected|repeating_npcaction_$0_name}](~selected|repeating_npcaction_$0_npc_action) 2:[@{selected|repeating_npcaction_$1_name}](~selected|repeating_npcaction_$1_npc_action) 3:[@{selected|repeating_npcaction_$2_name}](~selected|repeating_npcaction_$2_npc_action) 4:[@{selected|repeating_npcaction_$3_name}](~selected|repeating_npcaction_$3_npc_action) }} You can access their traits using this macro /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc} }} Make a macro on a character sheet with the above and name it Trait-1 Then you can get a nice output for them using this macro /w gm&{template:npcatk} {{name=@{selected|npc_name}}} {{rname=Traits}} {{r1=[[2]] }} {{normal=1}} {{description=1:[@{selected|repeating_npctrait_$0_name}](~Macros|Trait-1) 2:[@{selected|repeating_npctrait_$1_name}](~Macros|Trait-2) }} Macros is my macro character sheet.  Adjust the number of lines based on how many actions or traits and NPC has.  A universal macro can work but you will get better results if you do a quick adjustment and make them individually for each creature. Otherwise you will get spammed with errors. Enjoy!
Excellent. That is exactly what I was looking for. Turns out the biggest thing I was having trouble figuring out was that I need "_npc_action" on the end of the ability calls. I kept trying different things, but hadn't figured it out yet. Thank you very much.