Somehow Make Goblin's allies

Hey so i was thinking, what if you could befriend the goblin encampments/tribes instead of killing or paying tribute to them. Maybe a diplomat class or a way to try to become allies if you have given them enough stuff. To the point where they will help you if your town is being attacked, or maybe you guys could trade stuff too. Just an idea