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

Splitting output then adding it together

1405244933

Edited 1405244966
Is it possible with a macro to do something similar to: So-and-so attacks and rolls: [[@{selected|repeating_weapon_0_attack}]] + [[@{selected|repeating_weapon_0_attack-ability}]] + [[3df]] for a total of [[????]] to hit! What would go in the [[????]] to add or sum all of the other dice rolls on that line? Is this even possible or is this the realm of the API?
1405248444

Edited 1405248459
You really want it in a natural sentence? Otherwise, if you just write "/roll @{selected|repeating_weapon_0_attack}+@{selected|repeating_weapon_0_attack-ability}+3df", you'd get almost the same output.
1405261316
The Aaron
Roll20 Production Team
API Scripter
You'd need the API for that. Macros have no way of storing a value for later use.
Generally you'll see multiple attacks split up intentionally. (depending on the game system; if the enemy dies from the first swing, you can use the next swing against something else) ie: instead of weapon0+weapon0=both weapons..... /me ATTACKS! [DualWield] Hit1:[[@{selected|repeating_weapon_0_attack}]] Dmg1:[[@{selected|repeating_weapon_0_dmg}]] Hit2:[[@{selected|repeating_weapon_0_attack}]] Dmg2:[[@{selected|repeating_weapon_0_dmg}]]