Does "addperk" console command work for NPC's?

Post » Mon May 21, 2012 2:35 pm

By adding using the "player.addperk" command, I can successfully give myself a perk.

If I click on an NPC and use the "addperk" command, I can't get the intended effect.

Am I missing something or is it not really working?


*EDIT*

My perk causes a bleeding effect which has a spell flag of 0x0025. Could that be the cause?
User avatar
krystal sowten
 
Posts: 3367
Joined: Fri Mar 09, 2007 6:25 pm

Post » Mon May 21, 2012 9:46 am

It should do are you sure you have the right flags set for the perk effect(s)? I think NPCs use perks not sure though.
User avatar
Cheryl Rice
 
Posts: 3412
Joined: Sat Aug 11, 2007 7:44 am

Post » Mon May 21, 2012 8:25 pm

That's a good question, haha! Do you happen to know where I could find info on the various flags? :-)
User avatar
Cartoon
 
Posts: 3350
Joined: Mon Jun 25, 2007 4:31 pm

Post » Mon May 21, 2012 4:12 pm

Well looking at the perks using SkyEdit it seems to me perks are only for the player.
User avatar
Victoria Bartel
 
Posts: 3325
Joined: Tue Apr 10, 2007 10:20 am

Post » Mon May 21, 2012 3:52 pm

Hmm, that's not good :-P

When I used the "addperk" command on NPC's, there was no error or message, so I assumed it gave them the perk. It's a rather simple bleeding effect. They just never cause bleeding, haha!

I think Plutoman was talking about giving NPC's perks, though I'm not sure if his are truly perks or if they just act like perks. Quite interesting :-P
User avatar
Lizbeth Ruiz
 
Posts: 3358
Joined: Fri Aug 24, 2007 1:35 pm

Post » Mon May 21, 2012 5:01 am

yeah i was a bit sad to learn NPCs can't use perks. I was trying to give my follower the perk that lets you not set off pressure plates.
User avatar
Lindsay Dunn
 
Posts: 3247
Joined: Sun Sep 10, 2006 9:34 am

Post » Mon May 21, 2012 6:26 am

You sent me a PM, but I'll respond here for general knowledge.

If you open up NPC records inside tessnip or tesvsnip (preferably the latter), you can see that NPC's do indeed have perks attached to them. The problem being that they will likely need to be attached out of the game or through a script, rather than a command. I've got a program set up that allows them to be added via a text file through some various configuration. I'll send you off a test version Kage.
User avatar
Cathrin Hummel
 
Posts: 3399
Joined: Mon Apr 16, 2007 7:16 pm

Post » Mon May 21, 2012 3:48 pm

Sounds great! Thank you so very much! :-D
User avatar
Nicola
 
Posts: 3365
Joined: Wed Jul 19, 2006 7:57 am

Post » Mon May 21, 2012 6:17 pm

You sent me a PM, but I'll respond here for general knowledge.

If you open up NPC records inside tessnip or tesvsnip (preferably the latter), you can see that NPC's do indeed have perks attached to them. The problem being that they will likely need to be attached out of the game or through a script, rather than a command. I've got a program set up that allows them to be added via a text file through some various configuration. I'll send you off a test version Kage.

Pluto can I obtain that as well? I would really like to do something like that. I want every NPC to have the block runner perk (not being able to run and block is very annoying).
User avatar
Richus Dude
 
Posts: 3381
Joined: Fri Jun 16, 2006 1:17 am

Post » Mon May 21, 2012 7:45 pm

The way it was in FO3, you could add any perk to an NPC, but most had no effect. The perk "hooks" are not triggered. In a few circumstances the perk was implemented through a script instead of a perk hook, and those would work as "npc.hasperk XXXX" would return true in the script.
User avatar
Sammykins
 
Posts: 3330
Joined: Fri Jun 23, 2006 10:48 am


Return to V - Skyrim