Equipping an alias item on pickup

Post » Wed Feb 20, 2013 7:23 pm

I'm trying to figure out how to properly reference my item alias for this quest in the script. An NPC will be holding it, then it will be transferred to the player, and I'd like the player to equip(drink) the potion when they receive it.

What I have now is:

Scriptname PotionEquip extends ReferenceAlias  Quest Property HoSQuest2Ref  Auto  Actor Property PlayerRef  Auto  Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer)	 if (newContainer == PlayerRef)		  PlayerRef.EquipItem(HowDoIRefTheItem/AliasHere?)	  endifEndEvent

I am unsure how to reference the object's "self" that this script is attached to.
User avatar
Alexandra Louise Taylor
 
Posts: 3449
Joined: Mon Aug 07, 2006 1:48 pm

Return to V - Skyrim