I remember/forgot about that story. I think I blended them because I was trying to remember how they tamed the rough and tumbles that hang out near the dungeon.
I feel like the other option, rather than having the prince stay at the village, is for the MC to create firearms and show them to the prince, and that buys the prince's allegiance and swings the invaders onto his side, because he has even better tech than the black orbs.