Weirdest problem I've ever had with CK

Post » Thu Jun 21, 2012 1:47 pm

I am working on a new mod that adds two new swords. The swords' effects should only work if both swords are equipped simultaneously. That priority is working, but the problem is that only the sword equipped in the left hand works. Any idea why or how to fix it? This really wouldn't bother me so much if it were one of the weapons that wasn't working, but its only whichever one I equip in the right hand!!! It makes no sense!!!!
User avatar
Laura
 
Posts: 3456
Joined: Sun Sep 10, 2006 7:11 am

Post » Thu Jun 21, 2012 1:08 pm

Discovered the problem: GetEquipped only checks right hand. Now I just have to figure out how to work around it...
User avatar
Darian Ennels
 
Posts: 3406
Joined: Mon Aug 20, 2007 2:00 pm

Post » Thu Jun 21, 2012 5:19 pm

Try using Actor.GetEquippedWeapon(bool bLeftHand). Call it twice - once for the Right hand (with bLeftHand false) and once for the LeftHand (with bLeftHand) as true.
User avatar
Brooks Hardison
 
Posts: 3410
Joined: Fri Sep 07, 2007 3:14 am

Post » Thu Jun 21, 2012 12:07 pm

Try using Actor.GetEquippedWeapon(bool bLeftHand). Call it twice - once for the Right hand (with bLeftHand false) and once for the LeftHand (with bLeftHand) as true.

The GetEquipped that I was talking about was not a scripting code, but a condition. The GetEquipped condition only checks the right hand. I have considered writing a script, but I'll have to create a new Magic Effect that uses a script, attach it to the weapon enchantments, and have the script cast a spell which will have the current magic effects for my enchantment on them. It seems like a lot of trouble when I SHOULD be able to use the GetEquipped condition...another stupid CK thing I guess...
User avatar
Tiffany Holmes
 
Posts: 3351
Joined: Sun Sep 10, 2006 2:28 am

Post » Thu Jun 21, 2012 3:07 pm

Conditions are nearly worthless and cause me more problems than they solve nine times out of ten.
User avatar
Alyna
 
Posts: 3412
Joined: Wed Aug 30, 2006 4:54 am


Return to V - Skyrim