How to determine if the player has a thrall?

Post » Tue Jun 19, 2012 3:20 am

I'm trying to find a way to determine if the player has an undead minion but there doesn't seem to be a way. Or I'm just searching for the wrong things on the wiki and in the Kit.

Anybody know if that can be done and how?
User avatar
carrie roche
 
Posts: 3527
Joined: Mon Jul 17, 2006 7:18 pm

Post » Mon Jun 18, 2012 9:37 pm

Easiest way would probably be to add a script to all the magic effects for the thralls you're interested in. The script just sets a variable (global, quest, or otherwise) that you can reference elsewhere.
User avatar
Jessica Phoenix
 
Posts: 3420
Joined: Sat Jun 24, 2006 8:49 am

Post » Tue Jun 19, 2012 9:28 am

I'm hesitant to modify base scripts/effects/et al., but the suggestion to set a variable is a good one nonetheless. I can use that for what I had in mind.

Thanks!
User avatar
gandalf
 
Posts: 3400
Joined: Wed Feb 21, 2007 6:57 pm

Post » Tue Jun 19, 2012 9:53 am

If you just want a yes/no answer to the question of if the player has a summon/reanimate undead active you could use HasMagicEffect or HasMagicEffectWithKeyword with MagicSummonUndead as keyword that I think all should have (but better check)
User avatar
Taylor Tifany
 
Posts: 3555
Joined: Sun Jun 25, 2006 7:22 am

Post » Tue Jun 19, 2012 5:07 am

If you just want a yes/no answer to the question of if the player has a summon/reanimate undead active you could use HasMagicEffect or HasMagicEffectWithKeyword with MagicSummonUndead as keyword that I think all should have (but better check)

Oh that is so much easier than what I had in mind. And it sounds like it should do exactly what I need it to. Thanks Shana!

edit: it worked perfectly!
User avatar
Krista Belle Davis
 
Posts: 3405
Joined: Tue Aug 22, 2006 3:00 am


Return to V - Skyrim