Added dynamic loading of NPC scripts.