Thanks for the replies. My plan is to make all NPC's randomly generated, with different kind of "stats" to represent their personalties, and their actions and reactions would be based on those. So you could make a lot of checks, if the npc has a cetain stat 'lower' than X while being attacked. > Flee - otherwize fight back. Another stat higher than X while being robbed, > Do this or that.
I guess this will be some trial and error to get the desired results. The game it self also will be based on trial and error to succeed, to learn the traits of the different "personalites" by trial and error to win the game.
Would it make sence to make all those checks global? As every NPC would react... just react differently based on their stats?