senterpat Posted February 6, 2014 Share Posted February 6, 2014 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 More sharing options...
jazzisparis Posted February 6, 2014 Share Posted February 6, 2014 The syntax of this function is:SetName "New Name" ObjectEditorIDSo, for example, suppose you wanted to rename Sugar Bombs to Frosted Flakes:SetName "Frosted Flakes" SugarBombs01Hope this clears it up a little for you. Link to comment Share on other sites More sharing options...
senterpat Posted February 6, 2014 Author Share Posted February 6, 2014 :/ 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 :pThanks again, you're always the one who helps me when I have a problem :D Link to comment Share on other sites More sharing options...
jazzisparis Posted February 6, 2014 Share Posted February 6, 2014 I don't believe you can, seeing as adding an item to a leveled list is irreversible. Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted February 6, 2014 Share Posted February 6, 2014 Modifying leveled lists via script is irreversible. They are still best edited by hand in GECK, and merged with a patch by the user. Link to comment Share on other sites More sharing options...
senterpat Posted February 7, 2014 Author Share Posted February 7, 2014 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 OnAddif myGlobalSetting == 1additem AlternateItemRemovemeendifend I'll probably try it out anyways. Need to find some sort of work around :-/ Link to comment Share on other sites More sharing options...
jazzisparis Posted February 7, 2014 Share Posted February 7, 2014 To what problem is this work around intended for? You didn't say. There may be a better way. I suspect calling RemoveMe in an OnAdd block will result in a CTD. Link to comment Share on other sites More sharing options...
senterpat Posted February 8, 2014 Author Share Posted February 8, 2014 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 More sharing options...
Recommended Posts