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

D&D 3.5 macro help for caster

i have some custom spells that deal damage and bonus damage every two levels. what i have so far is this Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0in; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} &{template:DnD35StdRoll} {{spellflage=true}} {{name=@{character_name} }} {{subtags=casts Electric Jolt}} {{range= Close [[25+(5*(@{casterlevel}/2)-2.5)]]}} {{saving throw=none}} {{spell resist.= yes}} {{Caster level check: = [[ 1d20+@{casterlevel}+@{spellpen} ]] vs spell resistance.}} {{compcheck= Conc: [[ {1d20 + [[ @{concentration} ]] }>?{Concentration DC=15+Spell Level or 10+Damage Received|16} ]] }} {{succeedcheck=Success! She casts her spell!}} {{failcheck=She fails :( }} {{damage=[[1d3+(1*(@{casterlevel}/2)-2.5)]]}} my DM says it is calculating wrong due to the -2.5 at the end. how would i go about creating something like a floor function in the macro?
<a href="https://wiki.roll20.net/Dice_Reference#Rounding_Rolls_and_Math_Functions" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Rounding_Rolls_and_Math_Functions</a> is what you are looking for.&nbsp;
Thanks, solved my issue too!