Compatibility-Friendly Method to Add Tomes to Vendors

Post » Mon Nov 19, 2012 6:11 pm

What is the most compatibility-friendly way to add items (any items, really, though I'm interested in spell tomes at the moment) to a vendor? How about to the list vendors get their inventory from? I'd like for these new spells to show up in loot and vendor lists as naturally as the stock spells, if possible, while still being compatible with any other mods that do the same.
User avatar
Cagla Cali
 
Posts: 3431
Joined: Tue Apr 10, 2007 8:36 am

Post » Mon Nov 19, 2012 9:13 am

Sorry for bumping a thread, but I figured this was better than creating an entirely new one.

Any thoughts at all? Even if the thought is, "You can't do it, because you can't append to a leveled list"?
User avatar
Kelvin Diaz
 
Posts: 3214
Joined: Mon May 14, 2007 5:16 pm

Post » Mon Nov 19, 2012 12:52 pm

Well, maybe you can add those books to their inventory at runtime? Set up a quest triggered when your location changes, then on the papyrus side check the location and add books to the vendors of this area.
Note that I am still a beginner myself when it comes to CK+papyrus, so I do not promise this can work that way.
User avatar
Queen
 
Posts: 3480
Joined: Fri Dec 29, 2006 1:00 pm

Post » Tue Nov 20, 2012 12:50 am

Add them to leveled lists with http://www.creationkit.com/AddForm_-_LeveledItem.
User avatar
Kara Payne
 
Posts: 3415
Joined: Thu Oct 26, 2006 12:47 am

Post » Mon Nov 19, 2012 11:07 pm

Add them to leveled lists with http://www.creationkit.com/AddForm_-_LeveledItem.

Ah, thank you! I didn't know that function existed. Does that function need to be run at the start of every play session, once per character, or once per computer? If it needs to be run every session, what's the best way to ensure that it happens?
User avatar
R.I.p MOmmy
 
Posts: 3463
Joined: Wed Sep 06, 2006 8:40 pm

Post » Mon Nov 19, 2012 9:41 pm

Once per character. Its additions used to not persist across game closing/opening, but Beth fixed it with 1.6
User avatar
Dagan Wilkin
 
Posts: 3352
Joined: Fri Apr 27, 2007 4:20 am

Post » Mon Nov 19, 2012 11:24 am

So the best route would be some hidden quest that runs the script, then completes itself so that the script isn't constantly trying to run again? I know I can set a boolean to disable the meat of the script, but doesn't the script keep checking the boolean?
User avatar
:)Colleenn
 
Posts: 3461
Joined: Thu Aug 31, 2006 9:03 am

Post » Mon Nov 19, 2012 6:27 pm

Just http://www.creationkit.com/Stop_-_Quest the quest after it does its thing.
User avatar
Lew.p
 
Posts: 3430
Joined: Thu Jun 07, 2007 5:31 pm

Post » Mon Nov 19, 2012 2:02 pm

Can you give and example script?

Say for a custom Scroll...

???.AddForm(MyScroll, 1, 1)

Not sure what the ??? would be. Just a property filled with one of the formid for a level list?

And what is the NUMBER for? The number of scrolls that would be generated from the LL? So it cannot be a RANGE like sometimes the vendor has 3 or sometimes they have 1 ?


Add them to leveled lists with http://www.creationkit.com/AddForm_-_LeveledItem.
User avatar
jeremey wisor
 
Posts: 3458
Joined: Mon Oct 22, 2007 5:30 pm

Post » Mon Nov 19, 2012 5:16 pm

You can also use the vendor's chest as an Alias, and add the book to the Alias' inventory.
User avatar
Melanie
 
Posts: 3448
Joined: Tue Dec 26, 2006 4:54 pm

Post » Mon Nov 19, 2012 6:47 pm

Can you give and example script?
kYourLVLI.AddForm(kForm, 3, 1) ; Add 1 kForm to kLVLI avalable at level 3
User avatar
El Khatiri
 
Posts: 3568
Joined: Sat Sep 01, 2007 2:43 am


Return to V - Skyrim