Setting Quest Stage - Papyrus

Post » Sun Jun 17, 2012 9:29 pm

I have seen this option:

GetOwningQuest().SetStage(10)

But I am trying to change the stage in a quest other than the one the dialogue is in.


I have tried the following :

DPSS11Property.SetCurrentStageID 5DPSS11.SetCurrentStageID(5)DPSS11.SetCurrentStageID 5DPSS11Property SetCurrentStageID 5DPSS11 SetCurrentStageID(5)DPSS11 SetCurrentStageID 5

And none of it seems to be working. DPSS11 is the Editor ID of the quest I am trying to affect by the way. I am using the Scripting on the end of a Topic Info.
User avatar
Heather Kush
 
Posts: 3456
Joined: Tue Jun 05, 2007 10:05 pm

Post » Sun Jun 17, 2012 9:54 pm

You can't access forms directly by their editorID in Papyrus. Instead, you need to create a property and assign that form as the value of your property.

Cipscis
User avatar
jess hughes
 
Posts: 3382
Joined: Tue Oct 24, 2006 8:10 pm

Post » Sun Jun 17, 2012 4:43 pm

Ok, that makes sense.

I have started to try and sort this out. I have created a quest script to create this property in.

I have called the quest script DPSS1Script and attached it to my quest DPSS11

I have tried to create the property through the Properties for scripts box

I have set the Type to Quest, and left the array box unticked
I have given the property the name DPSS11Property

When trying to ok this however it crashes out with the following error:

*edited to remove long and irrelevant error message
User avatar
Miguel
 
Posts: 3364
Joined: Sat Jul 14, 2007 9:32 am

Post » Sun Jun 17, 2012 7:26 pm

That output alone isn't particularly useful. Could you post the entire source as well, please?

Cipscis
User avatar
Katy Hogben
 
Posts: 3457
Joined: Mon Oct 30, 2006 12:20 am

Post » Mon Jun 18, 2012 7:08 am

The source is the Creation Kits auto writer for adding proprties to a script. On the scripts button at the end of the quest editor you can add properties to a script. It has an "Add Property" button which what then falls down.

I will have to grab notepad ++ to write it manually by the looks of it.
User avatar
latrina
 
Posts: 3440
Joined: Mon Aug 20, 2007 4:31 pm

Post » Sun Jun 17, 2012 10:39 pm

Ok,

The Script I have got looks like this:

Scriptname DPSS11Script extends Quest Quest Property DPSS11Property Auto 

It seems to have compiled ok. I'm carrying on now, so cheers for the help. This is going to be a steep learning curve.
User avatar
Reanan-Marie Olsen
 
Posts: 3386
Joined: Thu Mar 01, 2007 6:12 am

Post » Mon Jun 18, 2012 3:56 am

Or not as the case may be. Everything is at least compiling ok now, but it isn't doing what it is supposed to do.

I have a quest script, which contains the following:

Scriptname DPSS11Script extends Quest Quest Property DPSS11Property Auto 

On the dialogue, I am using the script section at the bottom and have the following in the Papyrus Box:

(GetOwningQuest() As DPSS11Script).SetCurrentStageID(5)

Everything seems to compile fine but when the game runs and the dialogue is spoken the stage of DPSS11 does not advance. The current stage of DPSS11 is 0. Now I am sure I must be missing something fairly simple, but I am not quite sure what,
User avatar
GPMG
 
Posts: 3507
Joined: Sat Sep 15, 2007 10:55 am


Return to V - Skyrim