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

Limitation of roll, example [[{10d1,15-1d10}kl1]]

1488062914

Edited 1488064361
I want to limit spell damage for low level spells. Spell damage is calculated from INT of character and other modification so i want to limit dmg if character is highly inted, but uses low level spells. i have made simple macro and it seems work fine [[{10d1,15-1d10}kl1]] So i made a harder spell &{template:default} ?{Spell? | Fire, {{name=Fire&#125&#125 {{DMG=[[{100d1&#44floor((3d@{INT}+1d@{WIT})@{FireMagic}@{MagicDMG}@{target|Target1|DefM}@{target|Target1|DefF})&#125kl1]] | Relax, {{name=Relax&#125&#125 {{Relax=**Smile** } }} So it does floor( (3dINT+1dWIT) *Fire magic mastery *All magic mastery *BossMagicDefence *Fire defence) My problem is that first part 100d1 cannot be replaced with just 100 and rolling 100d1 dices is a bit wrong (it can cause lags for my game and the whole server) so i want to optimize it. If anyone can offer anything else please offer, or tell how to replace 100d1, or maybe i have somewhere a mistake, it will be nice to hear your opinion, because right now i will rewrite all spells macros and i don't wont to rewrite 240 spells multiple time.
0d0+100 to replace 100d1
SkyCaptainXIII said: 0d0+100 to replace 100d1 Simple easy why didn't i thought about it ))) Do i need to use any () or [[]] for 0d0+100 part? It seems working fine without, but i wanted to ask just in case.
Since it's within its own subroll expression, no brackets needed. Grouped Rolls talks a bit about these "limitations" of Grouped Rolls.
Ok thank you i am just new to the whole function, that's why i ask)