Fix inverted dialogue functions (NotClass etc.)

The comparison present is useless for these functions.
Add dialogue function: NotLocal
Coding style consistence
Workaround to have dialogues until actor detection is implemented for NPCs
Merge remote-tracking branch 'potatoesmaster/dialogue' into next
silencing some warnings