This will probably work in either version -
Say you have a piece of gear that gives you a particular Strength when equipped (for example is a d12+1)
Code:
Pre-Traits/5100
var strdiff as number
var curr as number
if (field[grIsEquip].value <> 0) then
~ get current values
curr = #traitbonus[attrStr] + #traitcreation[attrStr] + #traituser[attrStr]
~ set strength to d12+1
strdiff = 7 - curr
#traitinplay[attrStr] += strdiff
endif