trying to make a penalty based off of this:
"This power also causes you to constantly suffer the same penalty to your Diplomacy checks as other characters are unsettled by your very nature. At every four levels beyond 1st (5th, 9th, 13th, and 17th) this penalty increases by 1."
i've got this so far but it is not quite right. doesn't do the level increment right and its adding a positive number to the Penalty field which then is adding to the total instead of subtracting (it also doesn't display the penalty in the popup text box showing how the total is calculated when you mouse over the skill):
hero.child[skDiplo].field[Penalty].value = maximum(round(hero.child[Totals].field[tTotLevel].value/4,0,-1),1)
"This power also causes you to constantly suffer the same penalty to your Diplomacy checks as other characters are unsettled by your very nature. At every four levels beyond 1st (5th, 9th, 13th, and 17th) this penalty increases by 1."
i've got this so far but it is not quite right. doesn't do the level increment right and its adding a positive number to the Penalty field which then is adding to the total instead of subtracting (it also doesn't display the penalty in the popup text box showing how the total is calculated when you mouse over the skill):
hero.child[skDiplo].field[Penalty].value = maximum(round(hero.child[Totals].field[tTotLevel].value/4,0,-1),1)