Hello. I would like to include a NPC (Non Player Character) script in my rpg level. can anybody send me a example or function?

greets
Daniel