For Pokemon platinum theres a move modifier code but it only lets you mod TM01 which is f. punch How would you change said code to modify a different TM so Pokemon that cant learn tm01 learn dif.moves?

Just use this code, Pokemon can learn all TM's:

02075908 00d400d4
0207590c 00d400d4
020759a4 e0044d00
020759a8 ffffffff