Ok, I'm tidying up my .user file for the Unearthed Arcana: Mystic class v2. What I have works, but its a bit kludgy, so I decided to tidy up my scripts with what I now know.
One of the Class Specials adds damage to the weapon damage of the same type as the weapon does.
This is there script I am using:
Phase: Final Phase, Priority: 10000
Everything functions properly except for gettign the weaon's damage type.
Any ideas what I am doing wrong?
One of the Class Specials adds damage to the weapon damage of the same type as the weapon does.
This is there script I am using:
Phase: Final Phase, Priority: 10000
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.Disable] <> 0)
~ If not active, get out.
doneif (field[abilActive].value = 0)
doneif (field[usrChosen1].ischosen = 0)
~ doneif (field[pChosen].ischosen = 0)
var iDice as number
var sDice as string
var sDmgType as string
iDice = field[actUser].value
sDmgType = field[usrChosen1].chosen.field[wDmgType].text
sDice = signed(iDice) & "d10 " & sDmgType
#extradamage[field[usrChosen1].chosen,sDice,field[name].text]
Everything functions properly except for gettign the weaon's damage type.
is supposed to get the damage type from the selected weapon. Unfortunately, I am getting no damage type text . . .sDmgType = field[usrChosen1].chosen.field[wDmgType].text
Any ideas what I am doing wrong?
