I'm trying to macro the divination spell, but I'm having trouble getting the divination roll to do what I want. Divination is 70+lvl % chance of success. I'm trying to roll a d100 vs 30 - lvl. I can't seem to get the syntax correct. &{template:DnD35StdRoll} {{spellflag=true}} {{name= @{character_name} casts [Divination]( <a href="http://www.d20srd.org/srd/spells/divination.htm" rel="nofollow">http://www.d20srd.org/srd/spells/divination.htm</a>)} } {{School:=Divination }} {{Level:=4}} {Compnts:=V,S,M}} {{Casting Time:= 1 std action}} {{Range:= Personal}} {{Target:= (Self) }} {{Duration:= Instantaneous}} {{Saving Throw:= Will for Negate DC [[ @{spelldc4} + @{sf-divination} ]]}} {{Spell Resist.:= Yes }} {{ Caster level check: = [[1d20+@{casterlevel}+@{spellpen}]] vs spell resistance.}} {{Divination Check: = [[1d100>30-@{selected|casterlevel}]]}} {{succeedcheck=Successful Divination! Your god is willing!}} {{failcheck=You failed :( }} {{notes=Similar to augury but more powerful, a divination spell can provide you with a useful piece of advice in reply to a question concerning a specific goal, event, or activity that is to occur within one week. The advice can be as simple as a short phrase, or it might take the form of a cryptic rhyme or omen. If your party doesn’t act on the information, the conditions may change so that the information is no longer useful. The base chance for a correct divination is 70% + 1% per caster level, to a maximum of 90%. Requires incense and a sacrificial offering appropriate to your religion, together worth at least 25 gp. }}