I'm sure you fine folks are as tired of hearing from me as I am asking. I found the below script on how to calculate half character level.
~ Calculate half character level minimum 1
field[abValue].value += maximum(round(field[xTotalLev].value/2,0,-1),1)
I'd like to actually figure this for class level, I tried the following but I find that the penalty gets set to the last digit in the string. The above was written for pathfinder and the fields found there. For those wondering this is for figuring the mutation score of a Blood Hunter. I'd like to add the mutagens as adjustments to the character and a number of them require figuring the mutation score which is class level divided by 4 rounded down with a minimum of 1. I have tried a couple of different variations but always come up with it giving a penalty of 0. Any ideas on what I'm doing wrong or a better way to figure the mutation score and use it to determine the penalty or bonus depending on the mutagen?
hero.child[Initiative].field[Penalty].value -= maximum(round(hero.child[Totals].field[tTotLevel].value/4,0,-1),3)
J
~ Calculate half character level minimum 1
field[abValue].value += maximum(round(field[xTotalLev].value/2,0,-1),1)
I'd like to actually figure this for class level, I tried the following but I find that the penalty gets set to the last digit in the string. The above was written for pathfinder and the fields found there. For those wondering this is for figuring the mutation score of a Blood Hunter. I'd like to add the mutagens as adjustments to the character and a number of them require figuring the mutation score which is class level divided by 4 rounded down with a minimum of 1. I have tried a couple of different variations but always come up with it giving a penalty of 0. Any ideas on what I'm doing wrong or a better way to figure the mutation score and use it to determine the penalty or bonus depending on the mutagen?
hero.child[Initiative].field[Penalty].value -= maximum(round(hero.child[Totals].field[tTotLevel].value/4,0,-1),3)
J