How exactly is an undead created by Tyr, say, going to turn into a Worm That Walks? It's an alternate way of "being brought back after death".
https://www.d20srd.org/srd/epic/mons...mThatWalks.htm
A character can't do it to themselves - someone else needs to do it to them. And it only works on spellcasters.Worm That Walks Characters
By making eldritch preparations on a burial plot, a powerful spellcaster can improve the likelihood of a worm that walks emerging from the ground. The body is buried in an elaborate ritual that, the spellcaster hopes, will attract a critical mass of worms or maggots. The spellcaster performing the ritual must spend 10,000 gp in rare reagents for the ceremony. Furthermore, the ritual drains 2,000 XP from the spell-caster and requires the following spells: limited wish, polymorph any object, summon swarm (heightened to 7th level), and sympathy. Even if the ritual is performed correctly, there is only a chance that the deceased spellcaster will arise as a worm that walks. For each prepared but uncast arcane spell the deceased had at the moment of death (or unused spell slots if a spontaneous caster), there’s a 1% chance that a worm that walks will slither from the grave soil in 1d4 days. Some worms that walk arise spontaneously from ordinary burial plots, but such an event is exceedingly rare. And an epic spell can create worms that walk every time without fail.