Nullify all perks temporarily?

Post » Mon Dec 03, 2012 7:47 am

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?
User avatar
Tarka
 
Posts: 3430
Joined: Sun Jun 10, 2007 9:22 pm

Post » Mon Dec 03, 2012 6:16 pm

There is Actor#HasPerk(Perk). You would have to track each perk individually (that would be a lot of code but if you're handy with a decent text editor it shouldn't be *too* much work). This wouldn't work with custom perks either, so you'd have to issue compatibility patches for specific mods on an ad-hoc basis.

I don't think there is a way to get back a spell list or a perk list for a particular actor as an array. Maybe SKSE has this or will have this or can have this. I would suggest going to the SKSE thread and discuss it there.
User avatar
Rude Gurl
 
Posts: 3425
Joined: Wed Aug 08, 2007 9:17 am


Return to V - Skyrim