Finally figured out what I was trying to do and what to ask regarding this issue. So part of an Edge from Hellfost setting. The Augment Staff Edge.
I have broken the options out into different Edges, all work except the damage boosting one.
So I don't get any errors but the damage portion not working. I have tried two different methods.
Method one script: (Pre-Traits 5000)
Method two script: (Init 3000)
So I am stumped at the moment. Most other feats and on Code Examples are for bonus damage, which I can do easy enough. It is boosting the actual damage.
I have broken the options out into different Edges, all work except the damage boosting one.
The staff ’s damage increases to Str+d6 and has AP 1. This Edge may be taken twice, with the damage rising to Str+d8 and AP 2 the second time it is chosen. The usual rules for minimum Strength apply, however.
So I don't get any errors but the damage portion not working. I have tried two different methods.
Method one script: (Pre-Traits 5000)
Code:
foreach pick in hero from WeapMelee
if (eachpick.tagis[User.Staff] <> 0) then
eachpick.field[wpDamage].text = "Str+d6"
eachpick.field[wpPiercing].value += 1
endif
nexteach
Method two script: (Init 3000)
Code:
perform hero.child[wpKNStaff].setfocus
focus.field[livename].text = "Staff"
if (focus.tagis[WeaponDie.?] <> 0) then
var newdie as number
newdie = focus.tagvalue[WeaponDie.?] + 1
perform focus.delete[WeaponDie.?]
perform focus.assignstr["WeaponDie." & newdie]
else
perform focus.assign[WeaponDie.2]
endif
So I am stumped at the moment. Most other feats and on Code Examples are for bonus damage, which I can do easy enough. It is boosting the actual damage.