edhelsereg Posted November 15, 2014 Share Posted November 15, 2014 (edited) I've been racking my brain trying to get the ForceToRef function to fill a quest alias through papyrus script. My goal is to track the specific instance of an item as a quest object (so it can't be dropped) while it is equipped by the player. Scriptname tempQuestItemSCRIPT extends ObjectReference Actor property playerRef autoQuest property myQuest autoReferenceAlias property myAlias autoObjectReference property SelfRef auto EVENT OnEquipped(Actor akActor)SelfRef = Self as ObjectReference IF akActor == playerRefIF myQuest.IsRunning()myQuest.stop()endIFmyAlias.ForceRefTo(SelfRef)myQuest.start()endIF EndEVENT EVENT OnUnequipped(Actor akActor) IF akActor == playerRefmyAlias.clear()myQuest.stop()endIF EndEVENT The Quest does not start game enabled and has repeatable stages checked. The Quest contains one empty stage. The Quest Alias starts empty, has a fill type of "specific reference" and has "optional" and "quest object" flagged. I've tried all sorts of scripts, placing the ForceRefTo function on ObjectReference script, Quest script, and ReferenceAlias script; None of them filled the alias. Edited November 15, 2014 by edhelsereg Link to comment Share on other sites More sharing options...
Recommended Posts