Excuse the double post, but I now also implemented the events stuff.
Both the talking and the accompanying event can be defined in the entityfile using the following commands:
(number).responsive=true #defines that the entity will respond when an opposing player stands next to him.
(number).text=Shit\! I forgot to arrange my dental plan\!\! #defines the text he will speak.
#Length is currently up to 180 characters. If this is not enough, let me know.
#Exclamation marks, hashes and some other special characters should be preceded by \'s.
(number).textevent=join #"join" will add the opponent to the player's faction.
#I also implemented "end combat" which will automatically launch a map
#switch to nextmap after the guy is done chattering.
With this being implemented, other suggestions are certainly welcome, although any lack of them won't stop me from doing stuff on my own

.