Thanks for the quick reply. I've updated the files that's linked to .css and .html. On
line 407 to 417 I have a list of all weapon types. I wanted to use that
as an attribute that the attack button on line 431 can use to know if
the strength modifier should be used or not. Currently, the damage
modifier is added to the roll. I'm no proper coder but what I want is that I click the button, the sheet checks if the attribute at line 407 is either one of H:A , S:A , P:A or not. If it is I want the roll to just be @{weapon_dmg}
(an attribute on line 427 which contains the number and kind dice that
should be rolled for the weapons damage). If it's one of the other
weapon types I want it to roll the formula I listed in my original post. I've looked into the sheet worker a little but I couldn't figure out how to make it change the damage formula. I will also shorten the list as you've shown. I'll don't know how in depth you need the explanation to be, but the system is pretty complex. To explain the relevant parts of the system as thoroughly as possible. All weapons have a damage type and a skill type. All weapon list their own dice that should be rolled.
The damage types are Hacking, Stabbing and Pounding. The skill types
are S (strength), SA (average of strength and agility) and A (Agility).
The skill types tells which combination Hand-Eye Coordination and
Agility should be used for the Weapon skill, and if the percentile
modifier from Strength should be applied. Agility does not modify damage
in any way, only Strength. The percentile bonus from Strength is
determined by a table on page 77-80 in the fatal pdf. For clarity it is
the second edition I'm running.