Jump to content

How to make a trigger that enables linked ref when a quest reached a certain stage


Recommended Posts

I'm looking for a Trigger marker that enables a linked reference (2 NPCs) when the Vanilla Main Quest has reached a certain state. (completed Way of the Voice)

 

I assume I probably need a script for this, though, which I know nothing about.

 

I don't know whether there's already a Vanilla marker and script (or a variation in which I just need to change the property for quest and stage) for this, but if there is, I could use that instead. Which would be awesome. I rather not make a new script.

 

Link to comment
Share on other sites

As far as I know, you can't add a trigger to a quest. But there are two ways that both need a bit scripting to archive this:

 

1. Edit the vanilla quest and enable your two npcs in the script fragment of the stage you want. This would require only two script lines and two properties:

npc1.enable()
npc2.enable() 

2. If you can live with an player activated trigger, you could write a simple script that checks the stage of the vanilla quest and if the stage is the right one you enable the two npcs. The script is basically the same with an if check before and two more properties (stage and quest). This script piece could be executed when the player loads a certain area or walks through a trigger or something like this.

if (myquest.getStage() >= mystage)
    npc1.enable()
    npc2.enable()
endif

I would prefer Nr. 2 and changing the vanilla quest only if necessary.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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