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 .
×
May your rolls be merry + bright! 🎄
Create a free account

newbie trying to create a macro for D&D 3.5, need help....

Hello guys! This is my first post here, so if i'm out of place, plz let me know!  I'm trying to create a macro to the spell Searing Light from the 3.5 but i'm having trouble using the "floor". The spell is supose to do 1d8 dmg /2lvl whit my macro the spell is doing at level 9 4.5d8 of dmg and is rolling 5d8 i tried the floor in a lot of ways but none seems to work, can some one help me? The macro is looking like this so far: {{ Dano = [[([[{@{arcanecasterlevel}+@{divinecasterlevel}/2,5}kl1]])d8]] }} Note: " Dano " just means damage in portuguese  trying trying
1664256130
GiGs
Pro
Sheet Author
API Scripter
I'm typing this on mobile, so forgive any typos. You need the floor function. I think you have too many [[ ]] brackets - you might not need the inner set. What are you using kl1 for? - is one or both stats limited to a value of 5? You probably need something like this {{ Dano = [[floor((@{arcanecasterlevel}+@{divinecasterlevel})/2)d8]] }} You might need to put [[ around the floor, like this {{ Dano = [[ [[floor((@{arcanecasterlevel}+@{divinecasterlevel})/2)]]d8]] }} But you probably don't need that set of brackets. Try it without them.
1664256790

Edited 1664257896
GiGs said: I'm typing this on mobile, so forgive any typos. You need the floor function. I think you have too many [[ ]] brackets - you might not need the inner set. What are you using kl1 for? - is one or both stats limited to a value of 5? You probably need something like this {{ Dano = [[floor((@{arcanecasterlevel}+@{divinecasterlevel})/2)d8]] }} You might need to put [[ around the floor, like this {{ Dano = [[ [[floor((@{arcanecasterlevel}+@{divinecasterlevel})/2)]]d8]] }} But you probably don't need that set of brackets. Try it without them. Helo GIGs, tks for the response, yes, there is a cap of 5d8.  {{ Dano = [[ [[floor((@{arcanecasterlevel}+@{divinecasterlevel})/2)]]d8]] }} This one worked to make 1d8 on each 2 lvls but now i can't apply the 5d8 cap at lvl 10
1664260893
GiGs
Pro
Sheet Author
API Scripter
Try this: {{ Dano = [[ [[{10,floor((@{arcanecasterlevel}+@{divinecasterlevel})/2)}kl1]]d8]] }}
GiGs said: Try this: {{ Dano = [[ [[{10,floor((@{arcanecasterlevel}+@{divinecasterlevel})/2)}kl1]]d8]] }} YES!!!! That worked!!!! Tks very much!!!!