what is scripting? i've heard a little about it but overall the concept is new to me. doesnt it have to do with the dialog in a game and such? or/and does it have to with triggering events in a game? such as opening a door or walking into a trap?

if anyone has any simple examples somewhere i could download and look over i would be a very happy programmer

thanks all,
drewski