i have a trait i'm trying to put in place that adds damage, variable on level like sneak attack. the damage is only added once per day, here is the text of it:
Once per day as a free action, if you use a spell or effect of the necromancy school, you can choose to add +1 to the DC of that spell’s or effect’s saving throw. If that subject fails its save against that spell or effect you deal an additional 1d6 points of damage for every 4 character levels you possess (to a maximum of +5d6 at 20th level).
i tried looking at sneak attack to get an idea how to get the d6 damage to show on the Special tab, but that just confused me more. haha.
since i couldn't really grasp what was going on, i tried just coping the 2 eval scripts i found in sneak attack and put them on my trait, but it errors when i add it to the hero. sneak attack scripts:
final 10000
field[abValue].value += field[xCount].value
render 10000
field[listname].text = "Sneak Attack " & signed(field[xIndex].value) & "d6"
and the error i get ('trKTDDvyJn' is unique ID of my trait):
Attempt to access field 'xCount' that does not exist for thing 'trKTDDvyJn'
Attempt to access field 'xIndex' that does not exist for thing 'trKTDDvyJn'
Attempt to access field 'listname' that does not exist for thing 'trKTDDvyJn'
i couldn't figure out where it was grabbing those values from in the sneak attack so i expected it not to work for me. but how do i get the text of the trait on the 'special' tab to show the increasing +d6 dmg like the sneak attack ability does?
Once per day as a free action, if you use a spell or effect of the necromancy school, you can choose to add +1 to the DC of that spell’s or effect’s saving throw. If that subject fails its save against that spell or effect you deal an additional 1d6 points of damage for every 4 character levels you possess (to a maximum of +5d6 at 20th level).
i tried looking at sneak attack to get an idea how to get the d6 damage to show on the Special tab, but that just confused me more. haha.
since i couldn't really grasp what was going on, i tried just coping the 2 eval scripts i found in sneak attack and put them on my trait, but it errors when i add it to the hero. sneak attack scripts:
final 10000
field[abValue].value += field[xCount].value
render 10000
field[listname].text = "Sneak Attack " & signed(field[xIndex].value) & "d6"
and the error i get ('trKTDDvyJn' is unique ID of my trait):
Attempt to access field 'xCount' that does not exist for thing 'trKTDDvyJn'
Attempt to access field 'xIndex' that does not exist for thing 'trKTDDvyJn'
Attempt to access field 'listname' that does not exist for thing 'trKTDDvyJn'
i couldn't figure out where it was grabbing those values from in the sneak attack so i expected it not to work for me. but how do i get the text of the trait on the 'special' tab to show the increasing +d6 dmg like the sneak attack ability does?