
I'm trying to make a calculation that would make it that whenever a character has a certain attribute its divided by two for a bonus (Round down), with a minimum bonus of 1.
So essentially I need something to give a value of 0, if the Attribute is 0.
1 if the attribute is 1,2 or 3.
And then go on simply dividing the number for all other values by 2, and rounding down.
I made this:
floor((@{customa4-mod}-2)/2)+ceil(@{customa4-mod}/100))*(ceil(@{customa4-mod}/100)
and a proxy worked fine in excel, however, it just doesn't need to work in roll20. Any tips?
So essentially I need something to give a value of 0, if the Attribute is 0.
1 if the attribute is 1,2 or 3.
And then go on simply dividing the number for all other values by 2, and rounding down.
I made this:
floor((@{customa4-mod}-2)/2)+ceil(@{customa4-mod}/100))*(ceil(@{customa4-mod}/100)
and a proxy worked fine in excel, however, it just doesn't need to work in roll20. Any tips?