How can I remove topics at the end of a quest?

Post » Fri Nov 18, 2011 4:13 pm

I'm working on a very small quest and everything is coming along well. I'm at the point where the quest is completed so I'd like to be able to remove the topics from the NPC. I've been searching and can't find anything. It would seem like if there is an AddTopic, there should be a RemoveTopic. Thanks for the help.
User avatar
N Only WhiTe girl
 
Posts: 3353
Joined: Mon Oct 30, 2006 2:30 pm

Post » Fri Nov 18, 2011 9:30 am

Hello,

You could use a condition on your topic - getstage MyQuest < 100, assuming the quest is complete at stage 100.

Best regards,
RX31
User avatar
Sylvia Luciani
 
Posts: 3380
Joined: Sun Feb 11, 2007 2:31 am

Post » Fri Nov 18, 2011 5:53 am

Hello,

You could use a condition on your topic - getstage MyQuest < 100, assuming the quest is complete at stage 100.

Best regards,
RX31


That was what I needed. Thanks!
User avatar
Rebecca Dosch
 
Posts: 3453
Joined: Thu Jan 18, 2007 6:39 pm

Post » Fri Nov 18, 2011 2:21 pm

An alternative: If you call a stopquest command when your quest is completed, all scripts tied to that quest will be terminated and all topics removed.
User avatar
Tom
 
Posts: 3463
Joined: Sun Aug 05, 2007 7:39 pm

Post » Fri Nov 18, 2011 1:06 pm

An alternative: If you call a stopquest command when your quest is completed, all scripts tied to that quest will be terminated and all topics removed.

This. Put it in the result script for the final quest stage.

However, you might want the opposite effect, which is topics that are only available after the quest is done, e.g. comments on the player having achieved whatever they did. In that case, put those in a second quest without any stages that you start in the same result script, just before the StopQuest for the main one. If the first quest has multiple outcomes, then tests on the final stage reached could control what's said. Bethesda did that for a few, so there are XxxFIN quests that run only after quest Xxx is finished.

The advantage of a separate quest is that all the scripting for the main one can be stopped, along with the quest itself. Its only purpose is to be a container for the dialog.
User avatar
Angela
 
Posts: 3492
Joined: Mon Mar 05, 2007 8:33 am


Return to IV - Oblivion