Note: this is not a feature request by any means. This is just something I think could be cool.
So, basically, why does scripting have to be confined to scripting.tbl? I think if it was possible to define scripts in ships.tbl or weapons.tbl, it would open up a lot of awesome possibilities.
For ships.tbl, defining scripts for stuff like "when ship turns in direction", "alters thrust", "fires weapon", etc could be the start of a comprehensive replacement for the animation code that is in the engine right now.
For weapons.tbl, being able to define script snippets that are run when a weapon is fired or impacts on a target could be a gateway to more awesome effects, not to mention more varied hit effects than just "target takes damage and gets whacked around a bit".