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 .
×

Ray of Enfeeblement macro

Just used an hour to figure out how to calculate the RoE damage via a makro using variables. Just wanted to share it because I didn't find a macro like this via google. [[1d6 + floor(@{level}/2)+(floor(@{level}/2)-5)*floor(1/floor((@{level}/10+1))-1)]] If somone knows how to shorten this a bit I'm open for an upgrade.
wouldn't you just use [[1d6+({floor(@{level}/2),5}dh1)]]?
yes that works. I just did not know the right commands. What does the 'dh1' do?
1417448586

Edited 1417448618
Lithl
Pro
Sheet Author
API Scripter
dh1 drops the highest 1 element from the group. Essentially, {A, B}dh1 is min(A, B). You can also use kl1 for "keep lowest 1."
Ok, thanks. Just a little bit easier than mine solution XD.
1417492941
vÍnce
Pro
Sheet Author
Zepth said: wouldn't you just use [[1d6+({floor(@{level}/2),5}dh1)]]? Thanks for this Zepth. I knew I had seen this macro some where. I beat my head on this for a little while last night and gave up. ;-( Luckily I have a hard head.