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

My d100 rolls using certain qualifiers are only turning up as 1. Any idea how to fix this?

I'm attempting to recreate Fire Emblem's combat system for tabletops. Their to hit roll for a basic weapon like an Iron Sword works like this: Hit: [[1d100cf<[[[[100]] - {90+@{Name|INT-mod}+@{Name|CHA-mod}+0}]]]] This makes any roll that turns up as less than or equal to (100 - (the to hit)) a critical fail, simply to indicate failure regardless of an opponent's evasion, but in any case where the Int and Cha mods make the numbers where a critical fail would occur negative, it just turns up as 1 with no information on the roll itself. Turning the < into a > creates the same result. What am I doing wrong for the result of the dice roll to not be turning up, and how can I fix it? Please and thank you!
1514436161

Edited 1514436209
A roll's critical fumble points cannot take negative numbers as arguments, or that roll will fail, as you've experienced. You can ensure positive fumble points with the help of a {}kh1 function , e.g. [[ 1d100cf<[[{100 - (90 + @{Name|INT-mod} + @{Name|CHA-mod} + 0), 0}kh1]] ]]
That works, thank you for your help!