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

Need help with Macros for NPCs and Players

So I'm working making macros for my NPCs and Players and while most of them are working, some are not working the way that I need them too. Here are the major codes I'm having issues with, (most i got from this video&nbsp; <a href="https://www.youtube.com/watch?v=rrbqdkGIa00&t=1s" rel="nofollow">https://www.youtube.com/watch?v=rrbqdkGIa00&t=1s</a> ) The Main issue with these is that it is not PMing the DM correctly or keep coming up with an error message. I'm also having issues with spell damage rolls on spells that require the target to make a save/check like burning hands were the spell doesn't roll for damage. I'm not a coder nor have I had much experience with Coding so any help or advice is greatly appreciated. The fallowing code is for an NPCs spellcaster that my players have come to help, but this issue is for every creature that uses this Template I made. For Traits like a Goblins Nimble escape. /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}} For Reaction /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npcreaction_$0_name}}} {{description=@{selected|repeating_npcreaction_$0_desc}}} For Saveing Throws /w gm &{template:default} {{name=Saving Throws}} {{Str Save= [[1d20+@{npcd_str_mod}]] | [[1d20+@{npcd_str_mod}]]}} {{Dex Save= [[1d20+@{npcd_dex_mod}]] | [[1d20+@{npcd_dex_mod}]]}} {{Con Save= [[1d20+@{npcd_con_mod}]] | [[1d20+@{npcd_con_mod}]]}} {{Int Save= [[1d20+@{npcd_int_mod}]] | [[1d20+@{npcd_int_mod}]]}} {{Wis Save= [[1d20+@{npcd_wis_mod}]] | [[1d20+@{npcd_wis_mod}]]}} {{Cha Save= [[1d20+@{npcd_cha_mod}]] | [[1d20+@{npcd_cha_mod}]]}} For Spells (were they dont PM the Dm or dont do so with out the /w gm in frount of every &{template:defult}) Cantrips /w gm &{template:default}{{name=**@{selected|token_name}'s Spells List** }}{{Cantrips= [@{repeating_spell-cantrip_$0_spellname}](~selected|repeating_spell-cantrip_$0_spell) }} Any Leveled Spell &{template:default}{{name=**@{selected|token_name}'s Spells List** }}{{1st= [@{repeating_spell-1_$0_spellname}](~selected|repeating_spell-1_$0_spell) }} All of this is for the 5E SRD (OGL) Character sheet.
1510183845

Edited 1510184107
Are the issues you're having due to the line breaks? For example: /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}} should be formatted as this instead: {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}} should be formatted as this instead: /w gm &{template:npcaction} {{name=@{selected|npc_name}}}{{rname=@{selected|repeating_npctrait_$0_name}}}{{description=@{selected|repeating_npctrait_$0_desc}}} Make sure there are no line breaks in the entries, or else it won't show up correctly. I set up a quick sample campaign with a goblin and was able to get Nimble Escape to show up correctly once the line breaks were removed from your example. Also be sure, when testing, that the creature you're testing *has* the function you're testing for. A standard goblin has no reactions, so the reactions bit won't work and will produce an error.&nbsp; However, the error should return properly formatted.
I went ahead and re-did the entries for you. Make sure, when combining sections, to paste them with no line breaks between the }} and {{. It's okay to have breaks inside the brackes but that can sometimes make the display a little wonky. If you have questions on how to use these, let me know. I tested on both Ochre Jelly and Acolyte to ensure they work. I tested the spell entry for Sacred Flame and it did roll damage for me. Can you elaborate on what, exactly, you're attempting to accomplish? Curly bracket example: {{ stuff goes here }}{{ More stuff }} Traits: /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}} Reaction: /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npcreaction_$0_name}}} {{description=@{selected|repeating_npcreaction_$0_desc}}} Spells: /w gm &{template:default}{{name=**@{selected|character_name}'s Spells List**}}{{Cantrips:= [@{selected|repeating_spell-cantrip_$0_spellname}](~selected|repeating_spell-cantrip_$0_spell)}}{{1st=[@{selected|repeating_spell-1_$0_spellname}](~selected|repeating_spell-1_$0_spell)}} Save throws: /w gm &{template:default}{{name=Saving Throws for @{selected|character_name}}} {{Str Save=[[@{selected|d20}+[[@{selected|strength_mod}]]]] | [[@{selected|d20}+[[@{selected|strength}]]]]}}{{Dex Save=[[@{selected|d20}+[[@{selected|dexterity_mod}]]]] | [[@{selected|d20}+[[@{selected|dexterity_mod}]]]]}}{{Con Save=[[@{selected|d20}+[[@{selected|constitution_mod}]]]] | [[@{selected|d20}+[[@{selected|constitution_mod}]]]]}}{{Int Save=[[@{selected|d20}+[[@{selected|intelligence_mod}]]]] | [[@{selected|d20}+[[@{selected|intelligence_mod}]]]]}}{{Wis Save=[[@{selected|d20}+[[@{selected|wisdom_mod}]]]] | [[@{selected|d20}+[[@{selected|wisdom_mod}]]]]}}{{Cha Save=[[@{selected|d20}+[[@{selected|charisma_mod}]]]] | [[@{selected|d20}+[[@{selected|charisma_mod}]]]]}}
1510207138

Edited 1510207741
First off Thank you, everything is running much smother and working the way they should be. As for the spell issue I was having with burning hands and such that two has been solved. With the old code for when it would not roll anything and for a bit i was resigning myself to just manually rolling for them until It got solved. However that has been fixed thanks to your edits, had to go and re add all the spells like burning hands sacred flame fireball and the like but they are now rolling their glories damage as they should. The only major issue I am getting now is with the stats macro which I did not post in the opening topic. /w gm &{template:default} {{name=Stats}} {{Armor Class= @{selected|npc_AC} @{selected|npcd_actype}}} {{Hit Dice= @{selected|npc_hpformula} | [[@{selected|npc_hpformula}]]}} {{Speed= @{selected|npc_speed}}} {{Senses=@{selected|npc_senses}}} For the most part this works just fine giving me all the information on AC movement speed and HP with a random roll for different stronger or weaker foes. However a few things are not working correctly, as shown in this here. These are the Goblin stats(for simplicity) The same thing is happening for Perception as well but only worse... Screenshot Perception code. %{Selected|npc_perception} @{selected|wtype}&{template:npc} {{name=@{selected|npc_name}}} {{rname=Perception}} {{mod=@{selected|npc_perception}}} {{r1=[[1d20+@{selected|npc_perception}]]}} @{selected|rtype}+@{selected|npc_perception}]]}} Again I'm not a coder so I am making do the best I can, and apologies for my ineptitude.
1510237454

Edited 1510238341
Works for both PC and NPC &{template:npcaction} {{name=@{Selected|character_name}}} {{rname=Perception}} {{description=[[ 1d20 + [[@{selected|perception_bonus}]]]] | [[ 1d20 + [[@{selected|perception_bonus}]]]] }} [[@{Selected|passive_wisdom}]] for passive