Manalishi66
Well-known member
Trying to add the Shadow Assassins "Daggermaster" ability but ran into a problem. The ability grants a +1 bonus (attack and damage) when using any light weapon, the bolas and shuriken at 5th. Then +2 at 9th, +3 at 13th and finally +4 at 17th. My script so far is....
var bonus as number
bonus = field[xCount].value
bonus = round(bonus, 0,1)
field[listname].text = "Daggermaster +" & bonus
field[livename].text = "Daggermaster +" & bonus
~ Loop through all weapons of a specific fighter type
foreach pick in hero from BaseWep where "wClass.Light"
~ Set the bonus on each weapon found
eachpick.field[Bonus].value = bonus
nexteach
the problem is the bonus adds +4 at 5th instead of +1, +8 at 8th instead of +2, etc. How do I fix this and also how to I add the shuriken and bolas too?. Also daggermaster is bootstraped at the above mentioned levels. Please help me finish this.
Thanks!
Donald
var bonus as number
bonus = field[xCount].value
bonus = round(bonus, 0,1)
field[listname].text = "Daggermaster +" & bonus
field[livename].text = "Daggermaster +" & bonus
~ Loop through all weapons of a specific fighter type
foreach pick in hero from BaseWep where "wClass.Light"
~ Set the bonus on each weapon found
eachpick.field[Bonus].value = bonus
nexteach
the problem is the bonus adds +4 at 5th instead of +1, +8 at 8th instead of +2, etc. How do I fix this and also how to I add the shuriken and bolas too?. Also daggermaster is bootstraped at the above mentioned levels. Please help me finish this.
Thanks!
Donald