Complex sentence: Sometimes the sword is ascribed no powers of its own, but is famous because it is the hero's sword, or because of its origin, as when a god gives it to the hero.
Split into simpler sentences: Sometimes the sword is ascribed no powers of its own. It is famous because it is the hero's sword, or because of its origin, as when a god gives it to the hero.