How to make npc do certain actions?

Seriously… i need to do some wiki research before i start a thread… anyway im an idiot… goodbye