One of the goals of the SDK is to split many of the default scripts up into a lot of methods thus allowing easier customization.
This naturally causes a lot of compatibility problems, but meh.
Anyway. You might be able to modify the parse tree directly or you might be able to read and modify the original method in question.
If you are able to either of these ways it will probably not be simple what you have to do. I'm only guessing, I haven't researched.