My personal opinion:

The engine can be considered part of the main code. I don't think this should be any trouble for a programmer, there are many good game engines written in Pascal available.

Scripts seem more supplemental code to me. The scripting engine on the other hand, is a hard question. I would consider it part of the main code, but I know there are not much available scripting engines written in Pascal yet, so this would pose a barrier.