Ending one quest from inside another

Post » Tue Jun 25, 2013 4:06 pm

I think I had a note on this from a Vanilla quest, but for the life of me I cannot find it.

The terms are so general I get too many results and the creation kit site is not helpful.

Here is the scenario.

DKRMQ01 has a stage that says go talk to NPC-X

While DKRMQ01 waits to end, DKRMQ02 starts.

After you talk to NPC-X I want the DKRMQ01 to be set to stage 180, which will end that quest - but I need to do this as a result talking to NPC-X in a stage of DKRMQ02.

I know I can either do it in the dialogue fragment, or advance the DKRMQ02 Stage in the dialogue and then SetStage the DKRMQ01 in that stage of DKRMQ02.

Question is, what would the line of code be?

Is it as simple as:

DKRMQ01 SetStage(180)

or do I have to set up a quest property for DKRMQ01 before I can set it to stage 180 from within another quest.

Thanks!

User avatar
Hot
 
Posts: 3433
Joined: Sat Dec 01, 2007 6:22 pm

Post » Tue Jun 25, 2013 6:01 am

If the script is in DKRMQ02, then you need a Quest Property for DKRMQ01 to set its stage to 180 (DKRMQ01.SetStage(180)).

User avatar
Jack
 
Posts: 3483
Joined: Sat Oct 20, 2007 8:08 am


Return to V - Skyrim