Spell Worm

Enchantment (Compulsion) [Mind-Affecting]
Spellcraft DC: 45
Components: V, S
Casting Time: 1 standard action
Range: 75 ft.
Target: One living creature
Duration: 20 hours or until completed
Saving Throw: Will negates
Spell Resistance: Yes
To Develop: 405,000 gp; 9 days; 16,200 XP. Seed: compel (DC 19). Factors: unobtrusive (ad hoc +6 DC), 1-action casting time (+20 DC).
On a failed save, the subject must spend a standard action each round abandoning his or her highest-level spell (or losing his or her highest-level unused spell slot). Each round, the subject eliminates another spell or spell slot, moving to lower-level spells once all the higher-level spells are gone. In the case of prepared spells, the subject decides which spells to abandon at each level. If the subject has more than one standard action allowed in the round, he or she may spend those actions as he or she desires. The subject doesn't realize the spells or spell slots are gone until he or she tries to cast a spell and finds it unavailable. Abandoning a spell slot or losing a spell is standard action, but it does not draw an attack of opportunity. It is a purely mental exercise not obvious to observers.