Scripting is the stuff that makes the game tick. When you click to talk to a npc, the engine calls ghe script attached to that character and you have to code in the reactions, the dialogue tree, how each line of dialogue links to another. Etc....
Maps have scripts as well which can control...