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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Linking Macros inside of Macros?

Don't know if this is the correct place to put this, but I couldn't find anything about it anywhere else. Is it possible to link a macro inside of another macro. For instance the thief's sneak attack, if the initial attack is successful the thief then gets a sneak attack (certain restrictions apply), would you be able to link a sneak attack macro inside of the original attack?
1428440040
The Aaron
Roll20 Production Team
API Scripter
This is just fine! You can find what you're looking for in the wiki here: <a href="https://wiki.roll20.net/Macros#Nesting_Macros" rel="nofollow">https://wiki.roll20.net/Macros#Nesting_Macros</a> The practical upshot is you can refer to macros by name using the # on the front. Note that abilities (often thought of as character macros) are prefaced with a %.
Thank you "The Aaron"! I will try that right away.
Ok, just tried that but it's not pulling anything up. It just puts "%Sneak Attack" in the description of chat box.
1428445737
Gen Kitty
Forum Champion
Doublecheck that you're specifying the character name when referencing an attribute For example: %{Legius|Acid-Orb-R-@W}
Ahh, I see. I didn't know the formula for that. Will try again. Thank you "GenKitty".
That worked, thanks everyone.
Hope someone answers me. I Currently Have a ranger with multiple attacks, so I am trying to program various macros with weapon base attack as #BAB: Name: BAB [[1d20cs19 + 8[BAB] + @{Character Name|STR-mod} + 1[Magico] + 1[Weapon Focus] + ?{AttackMod|0}]]] I want to use a a base macros in order to have an easier time calculating for al my attacks, using the following formula for two weapon fighting's first attack: Name: TWFA [[#BAB-2]] That would be for the first two attacks in a full attack round using two weapons, each preceding attack would have the penalties in accordance to its order. The problem that i asm having is that it does not adjust the result, it only shows the result of the attack followed by a -2
Ok, I just realized that as long as you don't capsule the #BAB formula (the command [[macro]] outputs a fixed result number), you can modifiy it within another macro