Mad Hamish
Well-known member
I'm trying to add a competence bonus to ranged attacks
(I'm looking at building the Channel Vigor options)
I've tried
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Add to our ranged attack bonus
#applybonus[BonComp, hero.child[basAttackR], 4]
and
#competencebonus[hero.child[basAttackR], 4]
and I get
Attempt to access field 'BonComp' that does not exist for thing 'basAttackR'
for either of them
If I change it to
#competencebonus[hero.child[Attack], 4]
that works on all attacks
Could somebody please let me know what I'm doing wrong?
(I'm looking at building the Channel Vigor options)
I've tried
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Add to our ranged attack bonus
#applybonus[BonComp, hero.child[basAttackR], 4]
and
#competencebonus[hero.child[basAttackR], 4]
and I get
Attempt to access field 'BonComp' that does not exist for thing 'basAttackR'
for either of them
If I change it to
#competencebonus[hero.child[Attack], 4]
that works on all attacks
Could somebody please let me know what I'm doing wrong?