Jump to content

Check Objective Status


LegendofThunder

Recommended Posts

I've been scratching my head on this for a while now.

 

After spending a fair few hours writing most of my new quest, I realised I need to check the status of the objective prior to incrementing a variable. I am attempting to do this as follows:

if pLOT01Quest.GetObjectiveCompleted(stage, 0) == 1

However, this gives me the error that 'GetObjectiveCompleted is not a function or does not exist'.

 

Surely there is a function that allows me to check the status of an objective?

 

I have used the example from line 4515 on this web page: http://mod.gib.me/skyrim/functions.html

Problem is, I believe that to be out-of-date.

 

Anyone point me in the right direction?

Link to comment
Share on other sites

Don't use that list. Use this one: http://www.creationkit.com/Category:Papyrus. It's at the bottom of the page, and there's a second page with more. Looking there, I can see that GetObjectiveCompleted really isn't a scripting function. IsObjectiveCompleted, however, is. Also, once you change it, take out "== 1". IsObjectiveCompleted is a bool function. It'll return true or false. An "If" checks for true/false, so you don't need to do anything special. Just

If pLOT01Quest.IsObjectiveComplete(10)

Will run if objective 10 is completed.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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