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

Inline attack macro question

Hey everyone, Im working on an inline macro that will show what AC a character actually hit with his attack roll. Right now i have this.... /em Attack roll I HIT AC [[+?{THACO} - 1d20 -?{Modifier|0}]] Spits out this player Attack roll I hit AC 3 ( for instance) Was hoping to use this to clean up the chat box , and make the to hit roll easily referenced. This allows the player to input a positive modifier if he has one . But a negative modifier is where im having trouble. So far if i use the thaco as a positive number and the attack roll and the positive modifier as a negative it gives a actual AC that was hit. although a negative modifier is unusable in this instance. Any recommendations ?
HIT AC [[+?{THACO} - 1d20 -?{PosModifier|0}+?{NEGModifier|0}]] This allows the negative modifier to work , but now i have two different input blocks...
1404566932
Lithl
Pro
Sheet Author
API Scripter
Try 1d20 - (?{Modifier|0}) . If the modifier is, for example, -1, it comes out to d20-(-1), which works when I test it.
oh thanks , i was also trying this , which still failed on a negative modifier[[@{selected|THAC0} - 1d20 - @{selected|MeleeBonus}]] ill try to see what happens the last one eliminated the input boxes for the attribute , which is even easier , if everyone fills out there sheet
[[@{selected|THAC0} - 1d20 - (@{selected|MeleeBonus})]] Thanks a bunch ... this works wonderfully , no input boxes and nice and clean on the chat screen.
/em @{Selected|Character_Name} HITS AC [[@{selected|THAC0} - 1d20 - (@{selected|MeleeBonus})]] Finished product .. Thanks for the tip.
I use: /em @{selected|token_name} attacks @{target|token_name} hits AC: [[@{selected|bar3} - (1d20 + ?{Strength To Hit Adl|0} + ?{Magic Adj|0})]] /em @{target|token_name}'s AC: @{target|bar2} /gmroll [[1D100]]
1404616094

Edited 1404616156
Old School Fool
Sheet Author
is there anyway for the system to tell you if that d20 roll is a 1 or a 20 for auto hits and misses ? with everything inline , i figured it be nice to know about those, without scrolling over the result.
This worked out nicely with only having to input 1 variable that was not in the character sheet, ie partial cover ect. /em @{Selected|Character_Name} Attacks @{Target|Token_Name} with @{Selected|MeleeWeapon1Name} @{Selected|Character_Name} HITS AC [[@{selected|THAC0} - 1d20 - (@{selected|MeleeBonus})-(@{Selected|MeleeWeapon1MagicBonus}) -(?{VariableModifier|0})]] Thanks al e. i do like the token targeting aspect of that, although now ill have to name all my minions lol
1404622368
Lithl
Pro
Sheet Author
API Scripter
If an inline roll rolls a 1, the box will have a red outline. If the inline rolls max value (20 for a d20), the box will have a green outline. If the inline roll has multiple dice and you have both a 1 and a max, the box will have a blue outline.
1404622969

Edited 1404633948
Old School Fool
Sheet Author
Here is the Attack macro with Damage on the end. player has to select target , select variable to hit and select variable to damage. Made a nice clean 2 chat box roll. /em @{Selected|Character_Name} Attacks @{Target|Token_Name} with @{Selected|MeleeWeapon1Name} @{Selected|Character_Name} HITS AC[[@{selected|THAC0}-1d20 - (@{selected|MeleeBonus})-(@{Selected|MeleeWeapon1MagicBonus}) -(?{VariableModifierToHit|0})]] /em @{Selected|Character_Name} Deals [[@{Selected|MeleeWeapon1Damage1}+@{selected|DmgBonus}+@{Selected|MeleeWeapon1MagicBonus}+?{VariableModifierToDamage|0})]] Damage to @{Target|Token_Name}
Well dont i feel sheepish , i didnt even realize the red / green mechanic on the roll... looks like this one is ready to roll. Thank you .