Jump to content

Determining the size of a soul contained within a soul gem


Recommended Posts

Looking at those again, you are right. They wont determine the current soul size of the gem.

 

I'm actually interested in figuring out this myself as well now.

The only solution I can see off the top of my head is to use the SKSE GetName() function to match the name of the soul gem to a predetermined list of soul gem names (obviously in the form of a string, e.g. "Greater Soul Gem (Lesser)"), and going from there. To be compatible with sorting mods though, which rename items to make inventory sorting easier, you'd require their equivalent names in those mods as well (which would be easy enough to implement). This is more of a roundabout solution, though it should work just fine.

 

I haven't been focusing on SKSE solutions though (given that we currently don't have access to it), so there could very well be alternative (cleaner) solutions.

Edited by KernalsEgg
Link to comment
Share on other sites

Yes, GetName was my first thought too.

 

OR, check the value of the soul gem. Lesser filled gems are 80 septims. Does the Grand gem but with a lesser soul have a value of 80?

The GetGoldValue() function was my second thought, after there being different forms. Unfortunately, the value of the soul gem doesn't change when it gets filled. For example, you can have an unfilled greater soul gem that you filled with a greater soul yourself, and it will cost less than a filled greater soul gem that you purchased from a vendor (100 gold VS 350 gold in this case). Which sucks...

 

Edit: That is, for example, an unfilled greater soul gem will always cost 100 gold, regardless of the soul you fill it with.

 

Edit 2: I'm pretty sure this comes about from any soul gems you fill yourself still using the unfilled soul gem form (or at least, this supports what I've found).

 

Edit 3: Please ignore what I've said before about you never being given the filled variant of a soul gem. I've been informed that you're given the filled variant if you fill a soul gem to its maximum capacity and if they're linked. In the vanilla game, only the grand and black soul gems are linked - but the unofficial patch links all of the soul gems. Therefore, you can obtain a filled soul gem from an unfilled equivalent - my bad.

Edited by KernalsEgg
Link to comment
Share on other sites

I do have a solution. Mod the SoulTrapScript and you will need to replace the function.

 

When the player kills an NPC check their inventory and if they have the proper gem, remove it and replace it with a one filled with the proper soul.

 

It would actually be a cool Mod.

 

You said it sucked that soul gems you fill are only worth what they were when empty. You can fix that.

 

Don't you hate having to drop soul gems to get the souls out or having 10 grand soul gems that keep getting filled with petty souls? Set it up so only a petty soul gem can trap a petty soul etc.

 

Don't you hate it when you have the Black Star and other smaller gems but the game keeps filling the Star? Set it so the Black Star can only be filled when there are no other appropriate soul gems in inventory.

 

BTW. I defiantly saw the list of soul gems I told you about, but I can not remember where. If I find it again I will let you know.

Edited by Masterofnet
Link to comment
Share on other sites

You could even create lesser versions although other mods would have to be dependent on yours if using those. Why didn't Beth just swap out the old gem for the new one in the script?

 

I have a bit too much on my plate at the moment, but I would prob look into this if no one else does.

Link to comment
Share on other sites

I do have a solution. Mod the SoulTrapScript and you will need to replace the function.

 

When the player kills an NPC check their inventory and if they have the proper gem, remove it and replace it with a one filled with the proper soul.

 

It would actually be a cool Mod.

 

You said it sucked that soul gems you fill are only worth what they were when empty. You can fix that.

 

Don't you hate having to drop soul gems to get the souls out or having 10 grand soul gems that keep getting filled with petty souls? Set it up so only a petty soul gem can trap a petty soul etc.

 

Don't you hate it when you have the Black Star and other smaller gems but the game keeps filling the Star? Set it so the Black Star can only be filled when there are no other appropriate soul gems in inventory.

 

BTW. I defiantly saw the list of soul gems I told you about, but I can not remember where. If I find it again I will let you know.

There are already several other mods that edit that script and actually add useful additional features, such as Acquisitive Soul Gems Multithreaded (which does some of what you suggest and more). As wizardmirth mentioned, this also requires compatibility patches for relevant mods. All in all, this isn't a direction you want to go in unless you have a lot of free time on your hands haha. Maintaining multiple versions of a mod is a pain.

 

From what I can see, it wouldn't just be a matter of adding a variant for each combination of soul gem and soul size, as you can only link an unfilled soul gem to one filled variant anyway (which Bethesda have set to a soul of equivalent size to the soul gem). This puts a stop to your plans before you even get started.

 

There are no soul gems in the CK beyond the unfilled and filled variants (with a soul of equivalent size). I was saying that it sucks that they don't change in price depending upon the soul that they contain as that would provide a cheap workaround to determine the soul that the soul gem contains. If I set things up like you suggest, I wouldn't need to do this anyway, as each variant would have its own form - which would be a much cleaner solution anyway.

 

All of that aside though, Nokhal has been walking me through some things, where he basically outlines the fact that Bethesda apparently determine the size of a soul contained within a soul gem using alias's, and he has linked me to this related mod . I'll check this all out once I wake up, but this is probably what I'll end up going with.

Link to comment
Share on other sites

 

From what I can see, it wouldn't just be a matter of adding a variant for each combination of soul gem and soul size, as you can only link an unfilled soul gem to one filled variant anyway (which Bethesda have set to a soul of equivalent size to the soul gem). This puts a stop to your plans before you even get started.

 

No it doesn't. If you wanted to still partially fill gems, which I would not, you simply make them. You make a lesser filled with petty, a common filled with lesser etc., and add them to the players inventory when appropriate.

 

Like I said I would set up the script so only petty soulgems could hold petty souls and only lesser gems lesser souls etc. But you could do whatever you wanted.

 

 

 

All of that aside though, Nokhal has been walking me through some things, where he basically outlines the fact that Bethesda apparently determine the size of a soul contained within a soul gem using alias's, and he has linked me to this related mod . I'll check this all out once I wake up, but this is probably what I'll end up going with.

 

 

Keep us up to date on this. I would like to hear more about these alias's.

 

 

 

I have a bit too much on my plate at the moment, but I would prob look into this if no one else does.

 

Ya if I was ever able to get the things I wanted to done I would most likely deal with this also. It would actually be a fairly quick fix.

Edited by Masterofnet
Link to comment
Share on other sites

 

All of that aside though, Nokhal has been walking me through some things, where he basically outlines the fact that Bethesda apparently determine the size of a soul contained within a soul gem using alias's, and he has linked me to this related mod . I'll check this all out once I wake up, but this is probably what I'll end up going with.

 

 

Keep us up to date on this. I would like to hear more about these alias's.

 

 

Probably bullshit. I've gone through the CK and the scripts for the past day trying to find an answer for this thread without any additional forms. Frankly what I have found is that determining the size of soul contained within a soul gem is done natively as is enchanting items.

 

While there are parts of enchanting that are in the CK, the actual use of the bench and the outcome of the crafting is done natively and can't be modified by the CK it seems. Unless I missed something, it won't be possible to get what soul is in a soul gem without modifying the game itself or creating additional forms for each soul gem with each different soul size.

Link to comment
Share on other sites

 

Probably bulls***.

 

 

 

I don't know. I would like to hear from this guy. eyeonus

 

If I downloaded Mods and was interested in this, I would check out this one, all of the functions other than languages do not require SKSE.

 

http://www.nexusmods.com/skyrimspecialedition/mods/1469/?

 

The functions may be native, but you may have access to resources used by the native functions and manipulate them.

Edited by Masterofnet
Link to comment
Share on other sites

  • Recently Browsing   0 members

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