Jump to content

A script to add perk when item is equipped


dudeapocalypse

Recommended Posts

I have this script from Tammer's armors mod that adds a perk equipping something, but it works only on player, how I can make it to affect any NPC?

 

 

scn aaaSCPTOutfitHardboiledAddPerk

begin OnEquip Player
if (Player.HasPerk aaaPERKBonusDamageWithRevolvers != 1)
Player.AddPerk aaaPERKBonusDamageWithRevolvers
endif
end

begin OnUnequip Player
Player.RemovePerk aaaPERKBonusDamageWithRevolvers
end

Link to comment
Share on other sites

You can't add a perk to an NPC. There are scripts that add perks to NPCs in the vanilla FNV game, but they don't work. Adding a perk to an NPC does nothing.

 

You can add a perk to a companion NPC through an undocumented option to AddPerk, but you add the perk to the player and it affects all companions, and only companions.

 

See the section TIP Perks for Companions here:

https://wiki.nexusmods.com/index.php/Getting_started_creating_mods_using_GECK

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...