Item appears when quest is running.

Post » Wed Jun 11, 2014 2:27 am

I'm creating a small quest where you have to steal a key to my created dungeon. The key is in Whiterun, in the Jarl's Quarters. However, I want the key to appear only when that quest is running. How do I do that? Is there a default script for that, or does someone have a script for it?

User avatar
Rude_Bitch_420
 
Posts: 3429
Joined: Wed Aug 08, 2007 2:26 pm

Post » Wed Jun 11, 2014 6:37 am

  1. Check "Initially Disabled" in the key's reference window.
  2. Write in the script fragment of the quest stage where you want the key to appear:
myKey.Enable()

3. Make an object reference property in that script fragment. Fill it with your key's reference.

User avatar
Claire Mclaughlin
 
Posts: 3361
Joined: Mon Jul 31, 2006 6:55 am

Post » Wed Jun 11, 2014 4:02 am

I clicked my quest and went to the quest stages tab, I put:

myKey.Enable()

in the papyrus fragment, then I clicked properties, clicked add property and made an objectreference property, and set it to my key. I hope I did everything right. But it can't compile. It says ''variable myKey is undefined''.

User avatar
casey macmillan
 
Posts: 3474
Joined: Fri Feb 09, 2007 7:37 pm

Post » Wed Jun 11, 2014 6:24 am

Did you call your property "myKey"?

User avatar
Chris Johnston
 
Posts: 3392
Joined: Fri Jul 07, 2006 12:40 pm

Post » Wed Jun 11, 2014 11:57 am

I feel so stupid lol

I'm still a huge noob with the creation kit, scripting, ect.

But thanks for your help!

User avatar
Epul Kedah
 
Posts: 3545
Joined: Tue Oct 09, 2007 3:35 am


Return to V - Skyrim