First Tutorial Quest Problem

Post » Mon Jun 18, 2012 11:58 am

Hi, I'm following the tutorial on the wiki but don't know why the editor doesn't recognize this code:


Quest Property TutorialQuest Auto

Event OnDeathActor()
TutorialQuest.setStage(20)
EndEvent

When I kill the actor the questlog doesn't get update.

p.s.: on stage 20 i putted:

SetObjectiveCompleted(10)
SetObjectiveDisplayed(20)

Help please D:
User avatar
Abel Vazquez
 
Posts: 3334
Joined: Tue Aug 14, 2007 12:25 am

Post » Mon Jun 18, 2012 8:00 am

Sorry if this may seem obvious, but are you sure you have the script attached to the correct NPC? Also, per that script, you haven't defined which quest TutorialQuest is - did you make sure to select the proper quest property under the "Pick Object" drop down menu in the script?
User avatar
maria Dwyer
 
Posts: 3422
Joined: Sat Jan 27, 2007 11:24 am

Post » Mon Jun 18, 2012 4:35 pm

Sorry if this may seem obvious, but are you sure you have the script attached to the correct NPC? Also, per that script, you haven't defined which quest TutorialQuest is - did you make sure to select the proper quest property under the "Pick Object" drop down menu in the script?

Yes, it is on the correct npc and the property is setted right.
User avatar
Barbequtie
 
Posts: 3410
Joined: Mon Jun 19, 2006 11:34 pm

Post » Mon Jun 18, 2012 10:24 am

Sorry - should have put this in my first reply. Did you set all the Quest Aliases and Objective properly? I know a couple of times where I messed those up and I had to dig them back out and address them.
User avatar
Dan Scott
 
Posts: 3373
Joined: Sun Nov 11, 2007 3:45 am

Post » Mon Jun 18, 2012 10:57 am

Sorry - should have put this in my first reply. Did you set all the Quest Aliases and Objective properly? I know a couple of times where I messed those up and I had to dig them back out and address them.

The thief is specific reference, the quest giver unique actor and the item "create reference in", and there are objectives for all steps.
User avatar
BEl J
 
Posts: 3397
Joined: Tue Feb 13, 2007 8:12 am

Post » Mon Jun 18, 2012 5:29 am

I think the problem is in the script :/
User avatar
Joanne Crump
 
Posts: 3457
Joined: Sat Jul 22, 2006 9:44 am

Post » Mon Jun 18, 2012 11:25 am

I'm by no means an expert, still very much a beginner. But the script language looks fine, and the only thing I can think of is if your Quest Objectives are lacking the Target Reference Aliases. Hopefully someone more experienced can come along and help if I'm wrong. Sorry I couldn't be of more help.

Edit:
If you wanted to follow it precisely, you could change the code:

Event OnDeath (Actor killer)
TutorialQuest.SetStage(20)
EndEvent

This will store the killer of the NPC, although that info really doesn't matter. I just generally follow along exactly to see if that makes a difference.
User avatar
JeSsy ArEllano
 
Posts: 3369
Joined: Fri Oct 20, 2006 10:51 am

Post » Mon Jun 18, 2012 4:09 am

I'm by no means an expert, still very much a beginner. But the script language looks fine, and the only thing I can think of is if your Quest Objectives are lacking the Target Reference Aliases. Hopefully someone more experienced can come along and help if I'm wrong. Sorry I couldn't be of more help.

Edit:
If you wanted to follow it precisely, you could change the code:

Event OnDeath (Actor killer)
TutorialQuest.SetStage(20)
EndEvent

This will store the killer of the NPC, although that info really doesn't matter. I just generally follow along exactly to see if that makes a difference.

The error.. here it is! The linguage is key sensitive and i wrote setStage instead of SetStage. I corrected that and now it works fine!
Thanks for help ;)
User avatar
butterfly
 
Posts: 3467
Joined: Wed Aug 16, 2006 8:20 pm

Post » Mon Jun 18, 2012 11:20 am

Great. I actually wasn't sure on case sensitive syntax. Now I know.
User avatar
Ysabelle
 
Posts: 3413
Joined: Sat Jul 08, 2006 5:58 pm


Return to V - Skyrim