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 by Roll20 Universal Monster Macro help needed

Hello everyone, I've a problem creating a universal Monster Macro... right now I came up with this and everything works like a charm except Traits and Reactions /w "@{selected|npc_name}" &{template:atk} {{range=**Saves, Actions, Traits**}} {{charname=@{selected|npc_name}}} {{desc=**Saving Throws** [Strength](~selected|strength_save) **|** [Dexterity](~selected|dexterity_save) **|** [Constitution](~selected|constitution_save) [Intelligence](~selected|intelligence_save) **|** [Wisdom](~selected|wisdom_save) **|** [Charisma](~selected|charisma_save) **-----------------------------------------------** **Actions & Attacks** [Action1](~selected|repeating_npcaction_$0_npc_action) **|** [Action2](~selected|repeating_npcaction_$1_npc_action) **|** [Action3](~selected|repeating_npcaction_$2_npc_action) [Reaction](~selected|#React1) [Trait1](~selected|#Trait1) **|** [Trait2](~selected|#Trait2) **|** [Trait3](~selected|#Trait3) **-----------------------------------------------** **[Stats](~selected|#Stats)** }} Actions work, but I can't get monster traits and reactions to open up properly: I always get a No ability was found for %{selected|#Trait1}  error message (having a Trait1-global-macro, which is working); I've tried using [Trait1](~selected|repeating_npctrait_$0_desc), but that just displays  No ability was found for %{selected|repeating_npctrait_desc} Sorry for my rather bad english, I still hope you guys can figure out my problem. Thanks a lot in advance... Rob
The #Trait1 and #Trait2...ect are global macro calls and cannot be called using the ability button format. You can either skip the global macro and just do [Trait1](~selected|repeating_npctrait_$0_desc) or change the format to [Trait1](!
#Trait1) btw if you want the name of the trait to come up use [@{selected|repeating_npctrait_$0_name}](~selected|repeating_npctrait_$0_desc) The same would go for your reactions.
Thanks for the fast reply! Unfortunatley  [@{selected|repeating_npctrait_$0_name}](~selected|repeating_npctrait_$0_desc) still gives me an error message  No ability was found for %{selected|repeating_npctrait_desc}. [Trait1](! 
#Trait1)  works but gives me a rather odd-looking pinkish button though (if I find no other solution, I'll go with that rather than having no working links at all :) ). Rob
It will give you those errors for NPCs which do not have traits or don't have as many traits as you are trying to list.
@Ed S. It will give you those errors for NPCs which do not have traits or don't have as many traits as you are trying to list. unfortunatley I'll have these errors even though traits/enoght traits are listed... if you'ld like I'll upload a screenshot Rob
Which character sheet are you using? I assumed by the macro it is the 5e OGL sheet. Also looking at your macro the Saving throw rolls you have are for PCs and will not give you the correct bonuses for NPCs.  It turns out it's pretty complicated when it comes to NPC rolls for saves and skills because the sheet uses two methods for determining the save or skill, either just the stat or the skill/save if the creature has proficiency in it. I'll look at my stuff and see what I can find that will work.
Ok, I took ca loser look and I see why you are getting the error for %{selected|repeating_npctrait_desc} and that is because the NPC trait section is not a roll. The % sign is used to call a roll and the traits are only a text field with no output option. So you will need to make a macro to take that text and output it into a roll template. I suspect that is what the #Trait1 macro does. I will tell you what I did for my game to work around all of this, I made a character named Macros and put all the special macros on that sheet so I can call the first trait and output the text in a roll template by typing [Trait1](~Macros|Trait-1). On the Macros character in the abilities section I have a macro called Trait-1 that is as follows /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc} }} I have a ton of macros on that macro character for the NPC saves and skill checks Here is the NPC_SAV_STR save @{selected|wtype}&{template:npc} {{name=@{selected|token_name}}} {{rname=^{strength-save}}} {{mod=[[ [[@{selected|npcd_str_mod} * {1@{selected|npc_str_save}0, 0}=10 + 0@{selected|npc_str_save}]][STR SAVE]]]}} {{r1=[[1d20+[[@{selected|npcd_str_mod} * {1@{selected|npc_str_save}0, 0}=10 + 0@{selected|npc_str_save}]][STR SAVE]]]}} @{selected|rtype}+[[@{selected|npcd_str_mod} * {1@{selected|npc_str_save}0, 0}=10 + 0@{selected|npc_str_save}]][STR SAVE]]]}} That gives you the correct math for the NPC saves. Check it with a creature that gets a bonus to their strength save to make sure. Here is the one for NPC_Stealth. @{selected|wtype}&{template:npc} {{name=@{selected|token_name}}} {{rname=^{stealth}}} {{mod=[[ @{selected|npcd_dex_mod} * {1@{selected|npc_stealth}0, 0}=10 + 0@{selected|npc_stealth} ]] }} {{r1=[[ 1d20+[[ @{selected|npcd_dex_mod} * {1@{selected|npc_stealth}0, 0}=10+0@{selected|npc_stealth} ]] ]]}} @{selected|rtype}+[[ @{selected|npcd_dex_mod} * {1@{selected|npc_stealth}0, 0}=10+0@{selected|npc_stealth} ]] ]]}} That should get you started down the right path. BTW Reaction#1 should use this macro /w gm &{template:desc} {{desc=**@{selected|token_name}** ***Reaction*** ----------------------------- @{selected|repeating_npcreaction_$0_desc}}} Happy rolling
Thank you! That helped me more than I can say! Referencing a new "inivisible" Master-Token was something I hadn't thought of at all... great! This opens up a whole new level of gaming for my group and me :D Rob
I'm glad it helped!