Right now your TEXT events are under the { }'s of your JOIN event. You need to make them stand alone.

You also have a bunch of syntax that looks incorrect, but I'm not sure all the things I see as mistakes are actually mistakes :-P

Then you need to find a way to only have your text events trigger if there's an encounter going on