Hello. I am having some issues with scripting. I'm trying to re-create the Hexblade but I have ran into some problems.
For the Hexblade Curse ability I cannot get it to increase in uses per day as the character levels. An ability that is similar is a Paladin's smite ability and it is what I used as a template. Currently, at 20th level HL is saying that I only have two uses per day of the ability.
Phase: Post-Levels Priority: 10000 Index: 4
The ability is supposed to add one use per day every 4 levels after 1st to 5/day at 17th level.
For the Aura of Unluck ability it has too many uses per day and too many rounds per use. I used the Touch of Darkness domain ability as a template since it was similar in nature.
Phase: Post-attributes Priority: 10000 Index: 1
I'm not going to lie but I think because I don't fully understand this I just kind of made some changes to certain words to make it work the way I thought it would. Anyways, the ability is supposed to be used once per day and then increases in use every 4 levels to a maximum of 3 per day at 20 (the ability is gained at 12). Then it is active for a number of rounds equal to 3 plus the Hexblade's CHA modifier.
I'm probably just off on a few things here and there. As always, any help you can provide will be greatly appreciated.
For the Hexblade Curse ability I cannot get it to increase in uses per day as the character levels. An ability that is similar is a Paladin's smite ability and it is what I used as a template. Currently, at 20th level HL is saying that I only have two uses per day of the ability.
Phase: Post-Levels Priority: 10000 Index: 4
Code:
field[trkMax].value += field[xCount].value
field[listname].text = "Hexblade Curse " & field[xIndex].value & "/day"
The ability is supposed to add one use per day every 4 levels after 1st to 5/day at 17th level.
For the Aura of Unluck ability it has too many uses per day and too many rounds per use. I used the Touch of Darkness domain ability as a template since it was similar in nature.
Phase: Post-attributes Priority: 10000 Index: 1
Code:
~uses per day = 3 + CHA mod
field[trkMax].value += 3 + hero.child[aCHA].field[aModBonus].value
var bonus as number
bonus = field[xAllLev].value / 2
field[abDuration].value += maximum(round(bonus,0,-1),1)
field[livename].text = "Aura of Unluck " & field[abDuration].value & " rounds"
I'm not going to lie but I think because I don't fully understand this I just kind of made some changes to certain words to make it work the way I thought it would. Anyways, the ability is supposed to be used once per day and then increases in use every 4 levels to a maximum of 3 per day at 20 (the ability is gained at 12). Then it is active for a number of rounds equal to 3 plus the Hexblade's CHA modifier.
I'm probably just off on a few things here and there. As always, any help you can provide will be greatly appreciated.