Can You Dinamically Change Item Stats?

Hello everyone!

I come to you requesting help to answer the following question:

Considering all the available modding tools, is it possible to dinamically change item stats?

As an example, would you be able to increase a weapon’s damage based on the number of hits/kills you perform?

I know this might seem a bit odd, but I am currently developing a study related to ARPGs and player agency so any help would be greatly appreciated!

Thanks in advance :))