Script To Start Quest Not Working

Post » Fri Nov 16, 2012 9:16 pm

Okay, I've been using the tutorial at creationkit. com to make my first mod, a quest. Near the end, it tells me to put in this script:

GetOwningQuest().SetObjectiveDisplayed(10)
GetOwningQuest().SetStage(10)

at the end of an actor's dialogue to get the quest to start. I've done this, and it doesn't work.


Here's the link to a screenshot, if it helps: i.imgur. com/EmdUf.png


I would greatly appreciate it if anyone could help me.
User avatar
lisa nuttall
 
Posts: 3277
Joined: Tue Jun 20, 2006 1:33 pm

Post » Fri Nov 16, 2012 9:24 am

I don't see any problems with the code or how it's entered. So some basic trouble-shooting:

1. Does your speaker actually say his lines?
2. Do you have an objective 10 to display?
3. Do you have a Stage 10 for your quest?

A good trouble shooting technique I use when I don't know where something is going wrong are the debug script statements:
Debug.Notification("Message to display in the top left")
Debug.MessageBox("Pop up message box")
User avatar
Chris Duncan
 
Posts: 3471
Joined: Sun Jun 24, 2007 2:31 am

Post » Fri Nov 16, 2012 9:21 pm

He says his lines, but with no sound, since I haven't recorded any yet. I have set stages 0, 10, 20, 30, and 40. But I haven't set any objectives yet, since I'm trying to just test out if it works first. Could that be the problem?
User avatar
Milagros Osorio
 
Posts: 3426
Joined: Fri Aug 25, 2006 4:33 pm

Post » Fri Nov 16, 2012 9:19 pm

Okay, I added an objective and set stage 10 to "start up stage", and it works now. Thanks!
User avatar
Roanne Bardsley
 
Posts: 3414
Joined: Wed Nov 08, 2006 9:57 am


Return to V - Skyrim