View Single Post
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old September 20th, 2016, 08:14 AM
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.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #4 Reply With Quote