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

New to macros. I think I broke this one.

So I'm brand new to this and am equally exited and perplexed by the macros. I found one I like but i think i broke it and then lost the original scipt. once i put in the information it doesn't give results. can anyone see why that is? /emas As a result of the successful hits, you receive a total of [[(?{Number of hits}D?{Damage Dice})+([[?{Number of hits}*?{Damage Mod}]]) ]] HP's of damage!
1674735271
Ziechael
Forum Champion
Sheet Author
API Scripter
Seems to work fine for me as posted... are you calling it from a character ability or a collection macro? You may have a leading space that is causing issues.
Logan K. said: Thank you for getting back to me. I'm afraid I'm still pretty new to this and am not following the terminology. The goal was to get multiple damage rolls. When i run the macro it asks the right questions (how many attacks, damage dice, modifyer) but it doesn't post the actual results. If the code is intact I'm not sure what I'm doing wrong. Could you walk me through how you use it where it gives results?  Works for me, too: I copy/pasted your macro right into the chat window: But I'm assuming you created a macro in the Collection Tab.  I tried that and it also works for me.  Maybe if you explain how you're using it?
1674799608
GiGs
Pro
Sheet Author
API Scripter
Are you entering something like D6 in the damage dice? You should just be entering a number there for the number of sides. I'd change the macro to show that expressly, like: /emas As a result of the successful hits, you receive a total of [[(?{Number of hits}D?{Die Sides})+([[?{Number of hits}*?{Damage Mod}]]) ]] HP's of damage! Also, can you edit your last post, and go to the end of your post and press backspace repeatedly, to get rid of all the extra lines so we don't have to scroll as far?
1674801913

Edited 1674802079
Thank you for getting back to me about this. i used the edited script GiGs sent and it works perfectly. also sorry about all the returns on my reply. Yeah it was definitely a case of idiot operator error. I was hitting d before the dice number and that was what was killing it You all are awesome, thank you all
1674840311
Ziechael
Forum Champion
Sheet Author
API Scripter
We've all been there, glad it was an easy fix! Happy rolling
1674840857
GiGs
Pro
Sheet Author
API Scripter
Logan Kale said: Yeah it was definitely a case of idiot operator error. I was hitting d before the dice number and that was what was killing it Don't feel bad about that. I only guessed what the problem might be because I did the same thing :)