Change multiple macros/actions

Is there a way to change multiple actions in a macro slightly? For example when using Applescript, if I "get static text 1" from table 4 the next action would be identical except making take 4 into table 5.

Not natively within Keyboard Maestro, but Keyboard Maestro is scriptable and macros are encodable in XML, and both provide avenues for making changes across a range of macros.

I believe there was a macro that let you perform search&replace on the selected macro’s XML. It's not really something I'd recommend, but it is possible.

It is difficult to say given your brief statement without any examples.

Please read:
Tip: How Do I Get The Best Answer in the Shortest Time?