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

Macro help (D&D 3.5)

First time posting on here and figures it would be a question. I am rather new to building/editing macros within the script rolld20 uses, and was wondering if someone could provide feedback. I need some help editing this macro and understanding the change in syntax to make it run. The macro functions perfectly, but I wanted to edit it further to remove some unnecessary hassle. I have tried changing certain parts myself and researching it, but I am giving myself a headache. I would greatly appreciate the help. So here we have a functional macro template for D&D 3.5: &{template:DnD35Attack} {{name=@{selected|token_name}}} {{subtags=attacks @{target|token_name} with its claws and fangs! }} {{npcflag=true}} {{attack1=A1: [[ {d20cs>?{attack 1 crit range?|20}+?{attack 1 bonus|12}}>@{target|armorclass} ]] hit; }} {{critconfirm1=Crit!: [[ {d20+?{attack 1 bonus|12}}>@{target|armorclass} ]] hit }} {{fumbleroll=Fumble: [[ d20 ]] }} {{damage1=D1:?{attack 1 damage?| [[ 1d6+5 ]] } }} {{critdmg1=+?{attack 1 addt'l crit damage?| [[ 1d6+5 ]] } crit dmg }} {{fullattackflag= [[ ?{Full Attack?|No, 0d1|Yes, d1} ]] }}  {{attack2=A2: [[ {d20cs>?{attack 2 crit range?|20}+?{attack 2 bonus|12}}>@{target|armorclass} ]] hit; }} {{critconfirm2=Crit!: [[ {d20+?{attack 2 bonus|12}}>@{target|armorclass} ]] hit }} {{fumbleroll=Fumble: [[ d20 ]] }} {{damage2=D2:?{damage 2?| [[ 1d6+5 ]] } }} {{critdmg2=+?{addt'l crit damage 2?| [[ 1d6+5 ]] } crit dmg }}  {{attack3=A3: [[ {d20cs>?{attack 3 crit range?|20}+?{attack 3 bonus|7}}>@{target|armorclass} ]] hit; }} {{critconfirm3=Crit!: [[ {d20+?{attack 3 bonus|7}}>@{target|armorclass} ]] hit }} {{fumbleroll=Fumble: [[ d20 ]] }} {{damage3=D3:?{damage 3?| [[ 1d6+2 ]] } }} {{critdmg3=+?{addt'l crit damage 3?| [[ 2d6+4 ]] } crit dmg }} Here is the outcome of the macro on a target: What I am trying to do (and need help with) is learning how to remove the ? functions so that I don't have to check boxes every time. I am building these into specific NPCs and most of these functions will not change (and if they do your help should allow me to edit it). I have tried removing the ?s and some of the syntax to make it function without the variables, but something in the macro breaks and it wont function. I cannot for the life of me figure out which part. If someone has the time and inclination, and could rewrite the above macro with proper syntax without the ? ? annotations (and maybe highlight the change? :) ) I could see where I am going wrong with the changes. The  {{fullattackflag= [[ ?{Full Attack?|No, 0d1|Yes, d1} ]] }} is fine and can be ignored , but the crit range, attack bonus, critconfirm etc are breaking the macros function when I change them (alone or in tandem) and I am about to pull my hair out lol. Any help is appreciated. Or direction towards a link. Or Dark Chocolate Roasted Pistachio Toffees from Trader Joe's. Those also help.
1554780162
Ziechael
Forum Champion
Sheet Author
API Scripter
Hi Brandon, are you just plain removing the queries or replacing them with hard-coded values? Just removing them will break the template. I never used the npc sheet in my 3.5e game so if you could show me your most recent attempt I could try to point you in the right direction ;)