View Single Post
Guiche007
Member
 
Join Date: May 2014
Location: Quebec, Canada
Posts: 37

Old June 25th, 2014, 07:05 PM
Here's the script:

Quote:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)

var sneak as number
if (field[xTotalLev].value < 4) then
sneak = 1
elseif (field[xTotalLev].value < 7) then
sneak = 2
elseif (field[xTotalLev].value < 10) then
sneak = 3
elseif (field[xTotalLev].value < 13) then
sneak = 4
elseif (field[xTotalLev].value < 16) then
sneak = 5
elseif (field[xTotalLev].value < 19) then
sneak = 6
else
sneak = 7
endif

hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + sneak

field[livename].text = "Sneak Attack +" & sneak & "d6"
field[CustDesc].text = "+" & sneak & "d6 to your Sneak Attack damage."
The problem that i have is that it's not only calculating the lvl of the Psychic Rogue classe but all of them. My caractere is lvl 8 (2 swordsage and 6 Psychic Rogue) normally it should count only the 6 lvl in psychic rogue for the sneak ability but it count the swordsage too.

Thanks in advance
Guiche007 is offline   #9 Reply With Quote