My goal is to create a new game mod akin to Resident Evil's Mercenary mode. Essentially, no matter what character walks in, they will have the same health, magicka, stamina, skills, perks, spells, etc. as any other player. A script memorizes everything you have as far as that goes, and your stats and such go back to normal at the end of the mode. I have a clear idea of how to do everything, with the exception of perks.
There are no GetNumPerks and GetNthPerk functions as far as I can find, so I have no idea what to do. My only thought is that I make a perk that nullifies all other perks, but I can't think of how to do that either. I want this to work not only with vanilla, but any custom perks the player might have.
Any ideas?
EDIT:GAH! I thought I was in the creation kit forum. Someone move this please?