Alchemy Sorter Script

Post » Thu Jun 18, 2015 1:19 pm

Does anyone know a script for a alchemy sorter? I'm gonna try to use one in my Grandmaster of Hlaalu 1.4 mod.

Thanks in Advance,

Salmissra

User avatar
Eileen Collinson
 
Posts: 3208
Joined: Thu Dec 28, 2006 2:42 am

Post » Thu Jun 18, 2015 11:50 am

Well there are loads out there. It's kind of in fashion, still. Just download any popular house mod and it will have it.

User avatar
Darlene Delk
 
Posts: 3413
Joined: Mon Aug 27, 2007 3:48 am

Post » Thu Jun 18, 2015 4:10 pm

If you use MWSE, then you can dynamically loop (go through) all items or all items of a certain type (e.g. ingredients) in the player's inventory, including any mod added ones. You can also check each item's properties such as value, weight and name (match it to certain words if you want), allowing for some sorting opportunities based on that. Apparently, there are ways to dynamically get an ingredient's effects as well (a working method is probably to cause a dummy invisible NPC to Equip a copy of the ingredient, then checking what effects it is now under), allowing for easy, globally-supported automatic sorting based on that (effects), if you wish.
You need to be familiar with scripting and MWSE to make it, though, of course.

Doing this without MWSE takes like 40 times the amount of code (no kidding, a long script probably split to multiple scripts because it's too long) and is less flexible. Don't really see the point of writing these kinds of stuff without MWSE these days, it seems to pretty much work fine for everyone.
User avatar
Leanne Molloy
 
Posts: 3342
Joined: Sat Sep 02, 2006 1:09 am

Post » Thu Jun 18, 2015 7:25 am

I have both MWSE and non-MWSE versions in Uvirith's Legacy. The reason I still keep the MWSE version in an add-on is because OpenMW won't support script extender functions for a little while.

I'm intrigued by your mention of effect sorting workarounds, because UL doesn't currently have that. Do tell more.
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm


Return to III - Morrowind