the sudo code for apply a bonus to damage equal to the character's Intelligence bonus with all firearms is something like:
find intelligence modifier and store in variable.
find all fire arms, and iterate over those (a for each loop)
apply damage modifier to said weapon.
end the for each loop
and you would need to set the timing of that command correctly, Somewhere after post attributes probably.
|