Jump to content

Can't get object script to update quest stage


oc3

Recommended Posts

I've been stuck for a week on this and it's time to beg for help. This is my first attempt at a quest.

 

Ive created a startup enabled quest that I finally got to start working after making a quest script that sets the stage to stage 10. (Shouldn't it start without a script if it's startup enabled). Everything is fine at this point. The next stage should begin after I pick up note.

 

I've created stage 20 and journal entry with no conditions. I also created an object script that I attached to the note. The script uses 'begin onactivate' and then 'setstage 20'. It compiles with no errors

 

When I click on the note in game. Nothing quest related at all happens. No JE no marker.

 

This should be so simple I don't understand why it's not working. Stranger still, It seems like it did work once, although that was about a week ago and my memory is fuzzy. Since then I have added more quest stages and another object script. Is it possible that what I added later made it stop working? Doesn't seem likely.

 

Anyway, Thanks for any help

OC3

Link to comment
Share on other sites

I've been stuck for a week on this and it's time to beg for help. This is my first attempt at a quest.

 

Ive created a startup enabled quest that I finally got to start working after making a quest script that sets the stage to stage 10. (Shouldn't it start without a script if it's startup enabled). Everything is fine at this point. The next stage should begin after I pick up note.

 

I've created stage 20 and journal entry with no conditions. I also created an object script that I attached to the note. The script uses 'begin onactivate' and then 'setstage 20'. It compiles with no errors

 

When I click on the note in game. Nothing quest related at all happens. No JE no marker.

 

This should be so simple I don't understand why it's not working. Stranger still, It seems like it did work once, although that was about a week ago and my memory is fuzzy. Since then I have added more quest stages and another object script. Is it possible that what I added later made it stop working? Doesn't seem likely.

 

Anyway, Thanks for any help

OC3

 

 

If I may? Taking a quick stab at this: in your object script, on the line after the Begin OnActivate, did you put the Activate command? Such as:

 

scn <scriptname>

 

Begin OnActivate

Activate

SetStage <questname> 20

end

 

I've pretty much had to do that every time I use OnActivate to get things going (of course I could be messing up--even after months of learning to mod, I'm still stumbling with many of my scripts--yeah, pretty much still a noob, I am.) Setting your quest priority high (75-100) might also help (I've had some that would NOT run until I did that, even enabled from start.) With the marker not showing, I'd check to make sure it's set in the Quest Targets tab of the Quest (marker reference and conditions) as well.

 

Not sure if any of that will help but those are on my "checklist" of things I look at when my own scripts don't work as planned, so thought I'd offer them up.

Link to comment
Share on other sites

When you ask for aid about quests and scripts, it is imperative that you post (in spoiler / xml tags) the 'offending' scripts, or at least their accurate structure. Nobody is going to be able to say with certainty what is wrong without looking at them.
Link to comment
Share on other sites

Here is the script that I am trying...Ive tried with and without the activiate command in line 3. When in game activating the note only brings up the note text, and my speechcraft levels up since the note teaches speechcraft. The console says I'm still at stage 10. If I force stage 20 via the console, the proper journal enty and marker appear. I'v double checked the spelling of the quest and also that the note has the correct script attached. What am I missing?

 

ScriptName CTMGoneNote

 

Begin OnActivate

 

Activate

 

SetStage CloudTopManor 20

 

End

Link to comment
Share on other sites

Here is the script that I am trying...Ive tried with and without the activiate command in line 3. When in game activating the note only brings up the note text, and my speechcraft levels up since the note teaches speechcraft. The console says I'm still at stage 10. If I force stage 20 via the console, the proper journal enty and marker appear. I'v double checked the spelling of the quest and also that the note has the correct script attached. What am I missing?

 

ScriptName CTMGoneNote

 

Begin OnActivate

 

Activate

 

SetStage CloudTopManor 20

 

End

 

Once you invoke the 'Activate' command in an OnActivate block, all else is passed over (ignored). Your script should read:

 

ScriptName CTMGoneNote

Begin OnActivate
  	SetStage CloudTopManor 20
  	Activate
End

Link to comment
Share on other sites

 

Once you invoke the 'Activate' command in an OnActivate block, all else is passed over (ignored). Your script should read:

 

ScriptName CTMGoneNote

Begin OnActivate
      SetStage CloudTopManor 20
      Activate
End

 

 

 

Thanks Hickory, I tried that too.

I finally got it working though. After realizing that there was literally no reason why the script would not work, I just recreated the note from scratch and gave it a different name. I think I messed something up when I added a reference editor ID for the note after I already had everything working.

 

Thanks everyone for their time and help.

 

OC3

 

 

 

 

Link to comment
Share on other sites

I think I messed something up when I added a reference editor ID for the note after I already had everything working.

 

Just remember that we don't learn unless we make mistakes. :tongue:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...