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
Share on other sites

There are two separate forms for soul gems. One for filled (max) and one for empty. The filled ones are the ones you find pre-placed throughout the world. The empty ones are ones that you fill yourself. In the unmoddified game, you would need to check the empty version to see what size soul is inside of it. If you used a mod like Acquisitive Soul Gems instead, all player filled gems would have the max size that they could hold. In which case, it would be easier on you as you can just scan the player for the filled versions and work with them knowing that they will be max filled.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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