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

3.5 breath weapon macro

how do i round down to the nearest 5 in a macro which has a range of 5ft/hit die the character has which is then enlarged to 150%
here is what i have so far and the cooldown entry is not showing and i dont know why &{template:DnD35StdRoll} {{name=@{character_name} }} {{skillcatflag=true}} {{DC:[[10+2+@{con-mod}+?{heighten|yes,1|no,0}*7]]}} {{Damage:[[2d8]] or 16 if maximized}} {{Range:[[5*@{level})*?{Enlarged|yes,1.5|no,1}]]}} {{Cooldown:[[1d4+(?{heighten}*7)+?{Maximized|yes,3|no,0}+?{Clinging|yes,1|no,0}+?{Lingering|yes,2+?{number of rounds|no,0} ]] }}
For the rounding I think [[5*round(@{level}*?{Enlarged|yes,1.5|no,1})]] would do the trick. As for why the cooldown entry is not showing, I believe its because you have a nested roll query inside your 'Lingering' query. You can fix this by replacing the pipes, commas and right curly brackets inside the number of rounds query with their HTML equivalents. So replace | with &#124; and , with &#44; and } with &#125; that should hopefully fix this issue. Nested Roll Queries are explained better and in more detail here:&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a> if you want to have a look.
while the round function works i need it to round down not just round to the nearest it should be 35 instead of 40 i will have to look at the html entities separately&nbsp;
Sorry, I missed your wording in the first post try&nbsp;[[5*floor(@{level}*?{Enlarged|yes,1.5|no,1}-1e-5)]] instead.