Auto-translated
The screenshot shows how to change the name of a town. Changing the specialization is done in a similar way.
If you need the hero Andreas to be in a dungeon, I can't help you directly. You could create a script that teleports an existing Andreas to the dungeon (OBJECT_TOUCH_TRIGGER). That is, Andreas is already on the map, but belongs to another player (so he is not visible). When he touches the dungeon, he "changes" allegiance and teleports to it, effectively freeing himself.