Doesn't seem like it'd be that hard, set a property called turns, set it equal to whatever your turncount is, run a between battle script to compare your current turncount to the stored turncount, if they're 29, equip the magnet and reset the counter ...
I don't care to use one, but maybe...