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

Please help with a multi roll macro

I am currently in a FFG warhammer 40K campaign and i am trying to automate the attack and damage roll in to 1 macro but i do not really know what i am doing. is it possable to do the following? Roll a d100 under a skill reporting an extra sucsess for each 10 under the skill number. IE 22 = 3 successes if under 48. if any successes roll 1d10 if 1d10 rolls a 10 roll under the skill again if under the skill roll another d10 that explodes on a 10.
1430506715
The Aaron
Roll20 Production Team
API Scripter
The API forum is for the JavaScript API (A Mentor level Perk). Macro questions are best placed under Specific Use where I am moving your question. (On the off chance you actually mean the API, just post so and it can be moved back.)
1430509529
Lithl
Pro
Sheet Author
API Scripter
You cannot do what you're looking for in a single macro without API assistance. You could make a couple of macros, though. Attack: [[{ceil((?{Skill|50} - d100) / 10), 0d0}kh1]] Successes Damage: [[d10]] damage Righteous Fury: [[d10!]] additional damage You'd hit "Attack", if you get any successes hit "Damage", if the roll is highlighted in green hit "Attack" again, if the second attack roll gets successes hit "Righteous Fury".
1430513186
The Aaron
Pro
API Scripter
You could also just always roll all of those and only use the ones as needed, or put them in a Roll Template: &{template:default} {{name=Make an Attack}} {{Attack=[[{ceil((?{Skill|50} - d100) / 10), 0d0}kh1]] Successes}} {{Damage=[[d10]] damage}} {{Righteous Fury=[[d10!]] additional damage}}