Jump to content

Setname Help


senterpat

Recommended Posts

Hi, so I'm try to make some of my items in my mods name's toggleable, I've completed most of it, but I have an Issue that I can't find a solution to. The problem is some of the items have a space in the name, for example, Sierra Madre Martini, it registers Sierra as the name, and Madre as the base item. I've tried enclosing it in parenthesis, brackets, quotations. Does anyone know if this can be done?

Link to comment
Share on other sites

The syntax of this function is:
SetName "New Name" ObjectEditorID

So, for example, suppose you wanted to rename Sugar Bombs to Frosted Flakes:
SetName "Frosted Flakes" SugarBombs01

Hope this clears it up a little for you.

Link to comment
Share on other sites

:/ I had tried that, and it didn't work. But I went ahead and did it again and it's compiling fine. Thanks again Jazzis, since you're here I wonder if you know of a way to remove an item from leveled lists. Removeitem won't compile on a leveled list, I also tried using a negative count with AddItemToLeveledList, but I ended up with thousands of items showing up in the container. Also tried ListRemoveForm, but it seems it only works with FormLists. Trying to make my mod compatibles getting to be real headache :p

Thanks again, you're always the one who helps me when I have a problem :D

Link to comment
Share on other sites

Damn I was afraid of that. I was hoping there was some NVSE function I didn't know about.

Do you guys know if and OnAdd block would be usable to replace items distributed on leveled lists?

ie

 

begin OnAdd
if myGlobalSetting == 1
additem AlternateItem
Removeme
endif
end

 

I'll probably try it out anyways. Need to find some sort of work around :-/

Link to comment
Share on other sites

It's for a setting to turn off a portion of this mod http://www.nexusmods.com/newvegas/mods/50817/?

 

I'd like to add an option to disable parts of the mod, namely the alcohol and cigarette variants.

As of now the way I'm doing it is by changing the name of the items to a Vanilla name, and then I have an onAdd script attached to everything that replaces it with the drink it's named at the moment. The problem with this method is that there's a chance of finding two items named the same, but not stacked up in the container. Not a big deal, but I'd like to not have to deal with it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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