I'm trying to make this work in reverse so that I end up with DR =1.7*DT. I'm using a mod that adds DT AND DR to armor and wanted to try and make a script to do it for custom armors added by other mods. I've been banging my head against this for a few hours but no matter what I do it keeps setting the DR to 0.
the main things i did were: ConVal := Round(getElementNativeValues(e,'DNAM\DT')*CONrat)/100;
and: if (DontProcessAR = 0) then begin
AddMessage('Authorized: Changing AR Value from: ' + IntToStr(ARval) + ' to: ' + IntToStr(CONval));
SetElementNativeValues(e,'DNAM\AR',CONval);
end;