Added support for map scripts (e.g. scripts tarted on map entry).