How to add a perk via a script when an item is equipped

Post » Thu Aug 07, 2014 8:29 am

So, I've randomly decided to try making a set of glasses that gives the player Rex's Search and Mark perk when you equip them (why, I'm not really sure, but I suppose it's more a case of 'Why not' than 'Why'), but I can't figure out how to actually make them. I know I need to find a set of glasses, create a copy, then attach a script to them. For best results, that script needs to check to see if I have the perk Search and Mark when I equip them. If I do, the script does nothing. If I don't, then it gives me the Search and Mark perk. When I unequip them, it would have to check if it gave me the perk or if I already had it when I equipped the item. If it gave it to me, it removes the perk. If it didn't give me the perk, then it doesn't take it away.

The problem is that none of the guides I'm finding when I look on Google tells me what I need to do. I've seen mention of some script commands, but when I look in the Geck, there appears to be no 'Script' box, so I don't seem to be able to attach a script to an item. How would I go about attaching the relevant script to the item?

User avatar
brenden casey
 
Posts: 3400
Joined: Mon Sep 17, 2007 9:58 pm

Return to Fallout: New Vegas