How do I enable disabled Aliases in a quest using fragment

Post » Sun Feb 17, 2013 12:37 pm

In this quest the player is investigating a crime and at a stage is told to look for clues. Two clues have been placed in the cell and are diabled, a MISC and a POTION. At a specific stage "Look for clues", I want to enable both these items. I've made them forced Aliases so TargetRef can point to them. I also made them Properties MISC and POTION respectively (just in case). When at the stage where I want to enable them I've scripted in Papyrus Fragment...

Alias_Potion.Enable()

I get this error "
Enable is not a function or does not exist"

I tried using the properties MISC and POTION which I added and tried again...

Potion.Enable()

Same error.

What am I missing?
User avatar
Chrissie Pillinger
 
Posts: 3464
Joined: Fri Jun 16, 2006 3:26 am

Post » Sat Feb 16, 2013 11:31 pm

My coffee isn't working just yet so explanation is missing but when I get this the first thing I try is Alias_Potion.Enable(Alias_Potion) and Potion.Enable(Potion).
User avatar
Lauren Dale
 
Posts: 3491
Joined: Tue Jul 04, 2006 8:57 am

Post » Sun Feb 17, 2013 1:26 am

Alias_MyAlias.GetRef().Enable()Alias_MyAlias.GetRef().Disable()
User avatar
Sylvia Luciani
 
Posts: 3380
Joined: Sun Feb 11, 2007 2:31 am

Post » Sun Feb 17, 2013 7:04 am

@taewon- You got it. Works perfectly. I have issues remembering to use GetRef with aliases. Could you shed some light on this issue for me?
http://www.gamesas.com/topic/1443723-onreadsetstage-does-not-advance-quest/page__fromsearch__1
User avatar
Charleigh Anderson
 
Posts: 3398
Joined: Fri Feb 02, 2007 5:17 am


Return to V - Skyrim