I think I am heading in the right direction but something obviously wrong with the code. So I have an Edge Sykes-FairBairn that gives a +1 Fighting if armed with a knife. Thought maybe I could script it so it could be an Activated Ability.
I came up with this:
But when I compile I get an error message:
I only have the three 'knife' weapons listed above. So am I over-complicating this somehow?
Cheers.
I came up with this:
Code:
if (field[abilActive].value <> 0) then
~go through all weapons and find any that are "knives"
foreach pick in hero where "thingid.Weapon"
if (hero.tagis[Weapon.wpRKBayo1] + hero.tagis[Weapon.wpRKBowie] + hero.tagis[Weapon.wpRKKBar] <> 0) then
perform #traitroll[skFighting,+,1,"Sykes-Fairbairn"]
endif
nexteach
endif
But when I compile I get an error message:
Tag 'Weapon.wpRKBayo1' not defined
I only have the three 'knife' weapons listed above. So am I over-complicating this somehow?
Cheers.