Jump to content

Can Script check if Soul Gem is full or empty?


dePog

Recommended Posts

Hi Guys,

 

I am trying to create an AOE blast that is powered by a Soul Gem. The trouble is that ' getSoulSize' is supposed to check what size soul is in the soul gem and ' getGemSize' is supposed to check what size the gem is. But after running the script below it returns the value of '5' for both the Gem and the soul whether the gem has a soul in it, or not.

 

SoulGem Property BlackSoulGem Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

    if (Game.GetPlayer().getItemCount(BlackSoulGem) >= 1)
        Int SoulSize = BlackSoulGem.getSoulSize()

        Int GemSize = BlackSoulGem.getGemSize()
        debug.notification("Soul size is " +SoulSize +"Gem size is " +GemSize)

 

Does anybody know how to check if a Soul Gem is full or empty?

 

Thanks

dePog

Link to comment

Filled soulgems have a different Form/Editor-id

(Blacksoulgem vs. BlacksoulgemFilled)

 

Thanks cecik,

 

I should have been a bit more specific. I will also be using other soul gems (not just black) and they could be filled with the wrong soul eg. petty soul in a greater soul gem.

 

I want to be sure that the soul gem has the exact soul in it that it is rated for. eg. greater soul inside a greater soul gem

 

Any further thoughts on how I would test for that?

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use