Jump to content

If we add clothing to the clothing vendor list, does it conflict with other mods that do the same?


Recommended Posts

Hi, I'm new to FO4 modding and am unsure whether adding new clothing items to the clothing vendor list so that it's available at the various clothing traders (eg Fallon's Basement, Lucas, settlement clothing vendors), conflicts with other modders' mods that also add items to that list. Do the various mods overwrite each other, or does the game merge their vendor lists? If they all overwrite each other, that's really problematic - is there a way to get around that?

 

Thanks for any advice!

Link to comment
Share on other sites

Thank you so much for replying! Ah, that's what I was afraid of - I had the mod tested/working and was pleased that the items were showing up at various shops, but thought I'd better check to confirm whether that would conflict with other mods that do the same. Unfortunately I know absolutely nothing about FO4 scripting, am just a mesher/texturer. But I will look into it and see if I can hopefully figure it out. Thank you for pointing me to the right function to use!

Edited by EsmeraldaF
Link to comment
Share on other sites

Thanks! Will PM you. I hopefully don't need loads of detail (have done some very basic scripting for The Sims 3 and 4 but that was JAZZ and XML, and FO4 operates quite differently from those games), so I hope to not take up too much of your time.

Link to comment
Share on other sites

Hi there, I have three clothing sets, all are recolour sets of base game items. One set of 10 glasses, one set of 6 hats, and one set of 7 suits. The below screenie shows how I added the 7 suits to the VL_Vendor_Clothing list. My items are the ones whose names start with Ez.

 

[Removed Photobucket links because Photobucket broke them]

 

This works as intended in-game, showing up at Fallon's, Lucas, and settlement clothing shops. The hats and glasses, I currently have added to Myrna's shop inventory, but want to change them to go on the general clothing vendor list instead, like the suits.

 

Thanks so much for your help!

Edited by EsmeraldaF
Link to comment
Share on other sites

Ok

1) Create new quest, give it id and click OK. Then open it and go to Scripts tab.
http://i.imgur.com/9FJ2vvA.png

2) Add new script there, then paste following script there:

LeveledItem[] Property NeededLeveledLists Auto

Armor[] Property Glasses Auto
Armor[] Property Hats Auto
Armor[] Property Suits Auto

Int Property iLevel Auto
Int Property iCount Auto


Event OnInit()
	int i = 0
	int j = 0
	while (i < NeededLeveledLists.length)
		while (j < Glasses.length)
			NeededLeveledLists[i].AddForm(Glasses[j],iLevel,iCount)
			j+=1
		endwhile
		while (j < Hats.length)
			NeededLeveledLists[i].AddForm(Hats[j],iLevel,iCount)
			j+=1
		endwhile
		while (j < Suits.length)
			NeededLeveledLists[i].AddForm(Suits[j],iLevel,iCount)
			j+=1
		endwhile
		i+=1
	endwhile
endevent

Compile and save.

3) Open script properties. You will need to fill them with needed forms.
For example: fill Glasses with all of the needed glass items you want to be added in leveled lists. Do that as it is shown on below images:

http://i.imgur.com/36HrrLO.png
http://i.imgur.com/jVI3MRq.png
http://i.imgur.com/k5CXqlc.png

You can add as much items as you want there. Do the same for Hats and Suits properties.

Now fill iCount and iLevel properties. One with Count of items that will be added in leveled lists and other with level of player this items to start showing.

And last fill NeededLeveledLists property with the needed leveled lists where that Glasses, Hats and Suits will be added. like this:

http://i.imgur.com/J7b5zN4.png

 

Click OK, then Ok for quest and that should be all.

Link to comment
Share on other sites

Thank you so much! Will give it a try later and report back whether all goes well or not. Thank you very much for taking the time to explain it. :smile:

Link to comment
Share on other sites

Arrgghh, it doesn't want to work for me. I thought I'd followed your instructions correctly, but the clothes are not showing up in any shop anywhere, after two in-game days. When I originally added them directly to the clothes vendor list, they showed up immediately at Fallon's basement and then a bit later at other places. But with the script, nada. Where did I go wrong?

 

I added a new blank 'Quest' within my suits mod:

 

[Removed Photobucket links because Photobucket broke them]

 

Added a new script - now, there were a couple more steps here in addition to what was in your pics, what with filling in these two property forms - is there something else I should have done here? (After taking this pic, I did have to change the name I gave in Add New Script from ScriptEzAddSuitsToVendors to Script_EzAddSuitsToVendors, because CK claimed it already existed for some reason.)

 

[Removed Photobucket links because Photobucket broke them]

 

Inserted the script. The hats, suits and glasses are three separate mods, so I deleted the lines pertaining to the hats and glasses. I hope I haven't unintentionally deleted anything I shouldn't have, but the code compiled and saved OK.

 

[Removed Photobucket links because Photobucket broke them]

 

Added the info to the script's property sheet about item count, item level, what lists to add them to, and what clothing items are being added.

 

[Removed Photobucket links because Photobucket broke them]

 

Saved the mod, installed it with NMM and ack, nothing. The items can be seen in the console using help 4, but nothing in shops. Can you see where I've gone wrong?

 

(ETA: This is something that's supposed to be added into the suits mod (which is how I made it), and not a separate external script in addition to the mod itself, is that right? I wondered if maybe it was meant to be a separate thing, but then couldn't see how it would be possible to find and select the modded suits to add to it.)

 

Thanks so much again for your help, it is hugely appreciated!

Edited by EsmeraldaF
Link to comment
Share on other sites

  • Recently Browsing   0 members

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