addspell/removespell codes

Post » Tue May 17, 2011 1:22 pm

Sorry if this has been asked a million times - searches were unproductive.

I'm a total scripting newbie, and I'm trying to use the player.addspell and removespell commands, but I can't find a list of the codes anywhere. I found one for just plain Fallout online, but I haven't found one for NV. Specifically, I'm looking to add a low light vision effect.
User avatar
Hella Beast
 
Posts: 3434
Joined: Mon Jul 16, 2007 2:50 am

Post » Tue May 17, 2011 5:28 am

You don't need to know the formID (this is the 8 digit hexadecimal code associated with each form) to reference an object via script, although you can view them by expanding the hidden formID column in the GECK's object tree, which is just to the right of the editorID column.

Instead of the formID, you should refer to a form via its editorID in a script. For example (this is taken straight from the GECK Wiki, as I don't have New Vegas installed so can't check for myself):
player.AddSpell StealthBoyInvisibilitySpell

Cipscis
User avatar
Kelsey Hall
 
Posts: 3355
Joined: Sat Dec 16, 2006 8:10 pm


Return to Fallout: New Vegas