Having a hard time following you, as in what is going wrong and how this is not running every tick. Need more detail.
Nonetheless, if you want to cap the strength, you could add another condition (right click, add another condition) that p_str be less than or equal to 12 (whatever) before adding some value to the variable, among other solutions.