How to fill a reference alias?

Post » Thu Jun 21, 2012 5:09 am

I created a quest alias with fill type "unique actor", selected my NPC and attached a script to it:

scriptname MyAliasScript extends ReferenceAliasevent onInit()	Debug.trace("alias init")		  ;prints: alias init	Debug.trace("alias "+GetActorReference()) ;prints: alias NoneendEventevent onActivate(ObjectReference akActionRef)	debug.trace("activate")  ; The event is never dispatchedendEvent

Apparently the alias isn't filled automatically with the selected NPC when the quest is started.
How do i fill it?
User avatar
Soku Nyorah
 
Posts: 3413
Joined: Tue Oct 17, 2006 1:25 pm

Post » Thu Jun 21, 2012 7:36 pm

Did you remember to assign your NPC a "Persist Location"?
User avatar
Jessica Lloyd
 
Posts: 3481
Joined: Fri Aug 25, 2006 2:11 pm

Post » Thu Jun 21, 2012 12:54 pm

What is a Persist Location? I placed it somewhere by draging it in the cell render window.
User avatar
Jynx Anthropic
 
Posts: 3352
Joined: Fri Sep 08, 2006 9:36 pm

Post » Thu Jun 21, 2012 12:19 pm

http://www.creationkit.com/Alias#Fill_Type:
http://www.creationkit.com/Object_Reference#Persist_Location
User avatar
Brian LeHury
 
Posts: 3416
Joined: Tue May 22, 2007 6:54 am

Post » Thu Jun 21, 2012 3:38 pm

I set a persist location, but its still not working. Even if I use "specific reference" fill type instead of "unique actor".
User avatar
Rob Davidson
 
Posts: 3422
Joined: Thu Aug 02, 2007 2:52 am

Post » Thu Jun 21, 2012 5:59 am

Are you sure that the actor you're using is not already filling the alias of some other quest, one that "reserves" him/her? If that's not it, do you have any other aliases in your quest, which are possibly not filling and causing the quest to stop, therefore clearing the aliases?
User avatar
how solid
 
Posts: 3434
Joined: Mon Apr 23, 2007 5:27 am

Post » Thu Jun 21, 2012 4:02 pm

Yes that was it! I had another reference alias that wasn't filled.

Thank you very much.
User avatar
Horse gal smithe
 
Posts: 3302
Joined: Wed Jul 05, 2006 9:23 pm


Return to V - Skyrim