Here is a quick Class Special Eval script I put together. If its not quite what you want feel free to use it as a base for your own.
Phase: Post-Attributes, Priority: 20600
Quote:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.Disable] <> 0)
var iText as string
var iWis as number
iWis = hero.child[aWIS].field[aModBonus].value
iText = "+" & iWis & " Wisdom"
~ Here we are pulling the text the user entered from the
~ Durattion field to set the text.
foreach pick in hero from BaseWep where "wCategory.RangeProj"
#extradamage[eachpick,iText,eachpick.field[name].text]
nexteach
|
This applies a wisdom bonus to all projectile weapons, but not Thrown weapons. Adding thrown weapons is simply a matter of copying the last 3 lines of the script and changing "wCategory.RangeProj" to "wCategory.RangeThrowj".
Thanks go to ShadowChemosh for showing me the #extradamage macro a while back.