Adding Perks to a player

Post » Mon Jun 18, 2012 3:42 am

Adding perks to a player seems easy enough, but I just can't seem to get it working. Do new perks require a new script, or a script attached to the item? All I'm trying to do is; if a player has item x equipped, give them a set perk.
User avatar
BaNK.RoLL
 
Posts: 3451
Joined: Sun Nov 18, 2007 3:55 pm

Post » Sun Jun 17, 2012 11:00 pm

Do you mean a special unique item or a certain class of items? Like is the perk tied to a special iron sword you plan to place somewhere or should the perk apply whenever any sword is used?

In first case just add a script to that particular item which grants the perk to the player upon the OnEquipped Event and removes the perk again on an OnUnequipped event.
User avatar
Laura Samson
 
Posts: 3337
Joined: Wed Aug 29, 2007 6:36 pm

Post » Mon Jun 18, 2012 2:59 am

Yep it's a new Item. A shield. I've tried mirroring the default spiked shield with a new spell, and perk but it doesn't seem to work.

Under dunTargeOfTheBloodedPerk (default), all it has under Perk Entries is if it's equipped or not. (which seems right) but when I try this for the new shield its a no-go.
User avatar
Christine Pane
 
Posts: 3306
Joined: Mon Apr 23, 2007 2:14 am


Return to V - Skyrim