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

I have an question about macros

1491279269

Edited 1491281372
I want to create macros that don't directly link to the character sheet.  I want to do somewhat basic so I can try to understand each step better.  So if anyone can translate the following to a macro command without directing to the character sheet.  I'm using the macro maker only.  3.5e What I want is this:  Attack with a weapon that does 1d8 damage with a +3 to hit and crits on a 20x3, insert a popup box Y/N for Flanking, Power Attack (2-handed vs 1-handed) and sneak attack (which doesn't add on a crit) - damage is 1d8+3 + sneak attack (currently 1d6). I want to use this due to how much changes I'm constantly doing due to stats changing, size and other things.  So I can just make these as seperate macros without accessing the character sheet and set them up for the 5 different weapons I have and all the stat changes that happen with certain spells and the like.  I just want to be able to change the numerical vaules real quick in the macro to represent what I currently am doing.  Example if I get a bull strength all I need to change is the +3 to +5 to hit, and the +3 damage to +7 (2-handed) Thanks for any help.
1491292628

Edited 1491292645
Not an expert with macros; but do you mean something like this: /me Swings Axe - Hits AC: [[d20+3+?{Bonus to hit|0|1|2|3|4|5|6}]] Damage: [[d8+?{Damage Bonus|3|7}+?{Crit|0|1}d8+?{Sneak|0|1}d6 ]] You would probably need to seperate out the 'to hit', and 'damage' as you won't know if you critted until after you rolled.
1491293528

Edited 1491293559
This is sorta what I came up with it's not 100% perfect but it's doing a little of what I wanted.  I found the c.confirm on someone elses and plugged it in and it solved my critical problem and sneak attack.  If it was a x3 or x4 I just have to add more ( 1d6+7) + 1d6+7) = (1d6+7) Example.  /me Thunder Punches! - Bludgeoning Damage /roll 1d20+6+ ?{Flank (1=yes)|0}*2[Flank] vs AC /roll 1d6+7+ ?{Sneak Attack? (yes=1)|0*[[1d6]]}[Sneak Attk] {{C.Confirm:[[1d20 + 6[AttackBonus] ]] Addt'l Crit Damage:[[ ( 1d6 + 7[STR] ) ]]}}
1491294522
Tetsuo
Forum Champion
You could simplify both the flank and sneak like so: ?{Flank|Yes, 1|No, 0} ?{Sneak|Yes, 1|No, 0}
1491310203
Andrew C
Marketplace Creator
So for starters, if you're doing D&D3.5E, then Diana P's sheet has a Template for attacks. It also already has 5 weapon slots (at least) so your weapon options could be done quickly, plus you could have a 'menu macro' happen using a standard template. Note: I store AC of tokens in Bar 2, HP in Bar 1, Speed in Bar 3. Attack: [[1d20+6[Mods]+?{Flank|No,0|Yes,2}[Flank] ]] Damage: [[1d6 + 7[Mods]+[[?{Sneak Attack|No,0|Yes,1d6}]][Sneak Att] ]] Confirm: [[1d20+6[Mods]+?{Flank|No,0|Yes,2}[Flank] ]] vs @{target|bar 2}AC Crit Damage: [[1d6+7[Mods] ]] Damage. If you were using Diana P's Sheet... Note: @{weapon1attackcalc} belongs on the sheet on the Weapons Tab, so do the other 'weapon1(thing)' items. &{template:DnD35Attack} {{name=@{selected|token_name} }} {{subtags=attacks @{target|token_name} with a @{weapon1name} vs @{target|bar 2} AC }} {{pcflag=true}} {{attack1= [[ @{weapon1attackcalc} ]] }} {{critconfirm1=Crit!: [[ @{weapon1attackcalc} ]] }} {{fumbleroll=Fumble: [[ d20 ]] }} {{damage1=[[ @{weapon1damage} ]] dmg }} {{critdmg1=+ [[ @{weapon1crit} ]] crit dmg}} {{fullattackflag= [[?{Full Attack?|No, 0d1|Yes, d1} ]] }} {{attack2=A2: [[ @{weapon1attackcalc}-5 ]] }} {{critconfirm2=Crit!: [[ @{weapon1attackcalc}-5 ]] }} {{damage2=D2: [[ @{weapon1damage} ]] }} {{critdmg2=+ [[ @{weapon1crit} ]] }} {{attack3=A3: [[ @{weapon1attackcalc}-10 ]] }} {{critconfirm3=Crit!: [[ @{weapon1attackcalc}-10 ]] }} {{damage3=D3: [[ @{weapon1damage} ]] }} {{critdmg3=+ [[ @{weapon1crit} ]] }} {{attack4=A4: [[ @{weapon1attackcalc}-15 ]] }} {{critconfirm4=Crit!: [[ @{weapon1attackcalc}-15 ]] }} {{damage4=D4: [[ @{weapon1damage} ]] }} {{critdmg4=+ [[ @{weapon1crit} ]] }} @{weapon1attackcalc} 1d20cs>@{weapon1critmin} +@{bab}[BAB] +@{epicattackbonus}[Epic AB] + @{weapon1stat}[Ability] +@{size}[size] +@{weapon1enh}[Weapon Enh] +@{weapon1focus}[Weapon Focus]+[[?{Charge|No,0|Yes,1}*2]][Charge] + [[?{Flank|No,0|Yes,1}*2]][Flank] +?{Power Attack (use negative for chosen penalty)|0}[Pwr Attk] +?{Additional Attack Bonus?|0}[Ad'l Atk Bon] @{weapon1damage} 1d6 + @{weapon1damagestat}[Weapon Dmg Ability] +@{weapon1enh}[Weapon Enh] +@{weapon1specialize}[Weapon Spec] +[[?{Power Attack (use negative for chosen penalty)}*(-1)]][Pwr Attk] +?{Additional Damage Bonus?|0}[Ad'l Dmg Bon]+?{Sneak Attack|No,0|Yes,[[ [[ceil(@{level}/2)]]d6]][Sneak Att] } @{weapon1crit} [[ (@{weapon1critmult}-1) ]]d6 + [[ (@{weapon1critmult}-1) ]] *( @{weapon1damagestat}[Weapon Dmg Ability] +@{weapon1enh}[Weapon Enh] +@{weapon1specialize}[Weapon Spec] +[[?{Power Attack (use negative for chosen penalty)}*(-1)]][Pwr Attk] +?{Additional Damage Bonus?|0}[Ad'l Dmg Bon])