Find the ring ...

Post » Wed Jan 09, 2013 6:40 pm

I have written a script attached to a magic effect which is invoked by an enchantment which is called by a ring. Basically, this is the NightShade ShadowCloak facility. attached to a ring, and the script I wrote is designed to unequip/equip the ring when the effect ends, thus resetting the effect. Otherwise I would have to do that manually. The code is simple:

Scriptname  ShadowResetScript extends ActiveMagicEffect  {Resets the Shadow Magic EffectAfter dropping out of Shadow Effect it is necessary tounequip and equip the Shadow item in order to re-enterShadow mode.  This script performs that activity.}ObjectReference Property RingOfShadows autoEvent onEffectFinish (Actor Player, Actor Caster)Player.UnequipItem( RingOfShadows)Player.EquipItem( RingOfShadows)EndEvent

The problem occurs when trying to set the property for the ring - initially, it is inside a container in a cave, and I can't get the CK to locate it. It resolves to the cell and the container, but not to within the container. How do I tell the CK what ring I mean?
User avatar
Robert Jr
 
Posts: 3447
Joined: Fri Nov 23, 2007 7:49 pm

Return to V - Skyrim