Enabling a diabled item (letter)

Post » Sat Nov 17, 2012 10:33 am

Hi Everyone


It has been a while……..

I’m having a problem with an initially disabled quest item. I have placed a letter on a table in an interior cell. I have checked the ‘initially disabled box’ for the letter. In game, the letter is not visible, fantastic! Now, the problem occurs when I try to enable the letter following completion of stage 20 of my quest. When my quest updates to stage 20 (after reading a book), the letter does not reappear.

So, in the Quest stage 20 Papyrus Frag box I have the following

SetObjectiveCompleted(10)

SetObjectiveDisplayed(20)

What can I add to this Papyrus Fragment box to enable the letter that I have initially disabled? Or can I enable the letter through the script attached to the book?

I have tried creating an alias (object name: noted) and object reference. In the Alias UI I have checked the ‘allow disabled’ and ‘optional’ boxes. If I don’t check the ‘optional’ box my dialogue does not initiate.

After doing this I added the following to the Frag box

Alias_noted.GetReference().Enable()

It compiles fine but does not seem to enable the letter.

Any help would be appreciated

Witty :biggrin:
User avatar
Camden Unglesbee
 
Posts: 3467
Joined: Wed Aug 15, 2007 8:30 am

Post » Sat Nov 17, 2012 1:46 pm

Are you testing the object being enabled from a save that did not have the mod installed, or from a save that you already had your plugin active? If the latter, it will not enable the alias because of some funky way aliases are filled. Try using the object ref you should be fine. Don't forget to set your property.
noted.Enable()

Or, if you're dead set on using the alias, make a new save without your plugin active, activate your plugin in the mod manager and it should work.
User avatar
Amanda Leis
 
Posts: 3518
Joined: Sun Dec 24, 2006 1:57 am

Post » Sat Nov 17, 2012 3:10 am

I would prefer not to use an alias. Is that an option?

Thanks for the rapid response Balok
User avatar
Chloe Lou
 
Posts: 3476
Joined: Sat Nov 04, 2006 2:08 am

Post » Sat Nov 17, 2012 3:51 am

I tried from a clean save and its not working.

Just found out that if I close and open the CK after saving my mod, the alias does nto have the object reference selected. It has defaulted to specifc reference.

I'm stuck :lol:

thanks again
User avatar
Elisabete Gaspar
 
Posts: 3558
Joined: Thu Aug 31, 2006 1:15 pm

Post » Sat Nov 17, 2012 1:46 am

Hi all

Ive done it. I selected specifc refernce not object reference in the Alias UI and it worked.

Thanks

Witty :biggrin:
User avatar
Rachel Cafferty
 
Posts: 3442
Joined: Thu Jun 22, 2006 1:48 am


Return to V - Skyrim