Deleted82339623User Posted June 15, 2020 Share Posted June 15, 2020 So, I know that you can't dynamically add Perks to NPC's like adding it to racial powers and whatnot or magiceffects. So, I thought about the SilverPerk for Silver weapons which is a perk that is added and removed by script when the weapon is equiped or unequipped. Does this script affect the NPC's as well? I have a custom weapon with the exact same script as the silversword one, except I changed it to add my own custom perk to my weapon. And while it seems to work for me, I don't think followers or any other NPC are actually getting the perk. So, I wanted to know if NPC's like Silver Hand can actually get the Perks or do they get nothing? Link to comment Share on other sites More sharing options...
maxarturo Posted June 16, 2020 Share Posted June 16, 2020 The "SilverSwordScript" will add the perk to any NPC that will equip the object that the script is living in. Vanilla script: Scriptname SilverSwordScript extends ObjectReference Perk Property SilverPerk auto Event OnEquipped(Actor akActor) akActor.AddPerk(SilverPerk) EndEvent Event OnUnEquipped(Actor akActor) akActor.RemovePerk(SilverPerk) EndEvent Link to comment Share on other sites More sharing options...
Deleted82339623User Posted June 16, 2020 Author Share Posted June 16, 2020 The "SilverSwordScript" will add the perk to any NPC that will equip the object that the script is living in.Vanilla script:Scriptname SilverSwordScript extends ObjectReference Perk Property SilverPerk auto Event OnEquipped(Actor akActor)akActor.AddPerk(SilverPerk)EndEvent Event OnUnEquipped(Actor akActor)akActor.RemovePerk(SilverPerk)EndEvent Ah. So anyone can get it then? Is there a way for me to confirm that an NPC has the perk given by the srcipt in game? Link to comment Share on other sites More sharing options...
Deleted82339623User Posted June 16, 2020 Author Share Posted June 16, 2020 (edited) Okay, nvm. Had an issue but I fixed it. Edited June 16, 2020 by Guest Link to comment Share on other sites More sharing options...
Deleted82339623User Posted June 16, 2020 Author Share Posted June 16, 2020 Okay, things are super wrong here and I don't know why. First, I can't find the SilverPerk or my Perk at all in game. I type help SilverPerk and nothing shows up, neither does mine. Silver Swords adds the perk to NPC's and myself, although my weapon won't add anything for some reason even though it's using the same script, just changed to include my perk and it gave zero errors when compilling. So, what's going on? Link to comment Share on other sites More sharing options...
maxarturo Posted June 18, 2020 Share Posted June 18, 2020 A) The 'Silver Perk' works only with weapons that have the keyword "WeaponMaterialSilver". B) The 'SilverPerk' is Hidden. C) "just changed to include my perk and it gave zero errors when compilling" For what i can understand, you have 'Edited' the vanilla script !, this is a big NO NO. Either you add your perk through the properties on the vanilla script, or you create a 'New Custom' script to do what you want. Link to comment Share on other sites More sharing options...
Deleted82339623User Posted September 9, 2020 Author Share Posted September 9, 2020 A) The 'Silver Perk' works only with weapons that have the keyword "WeaponMaterialSilver".B) The 'SilverPerk' is Hidden.C) "just changed to include my perk and it gave zero errors when compilling"For what i can understand, you have 'Edited' the vanilla script !, this is a big NO NO.Either you add your perk through the properties on the vanilla script, or you create a 'New Custom' script to do what you want. Sorry for the super late reply, but could you explain this better? What are the actual steps that I need to take to make this script work? Link to comment Share on other sites More sharing options...
lofgren Posted September 13, 2020 Share Posted September 13, 2020 Perks cannot be given to NPCs by script, unless some new discovery has been made in the year or so I have been absent from the scene. Link to comment Share on other sites More sharing options...
Recommended Posts