Jump to content

How to refer to a quest inside the script added to it?


Recommended Posts

I tried using GetOwningQuest() inside the script, however it doesn't seem to work, as the function isn't being recognized. Is there another way? I know I can add the quest as a property, but that can't be the only way right?

 

Edit: Found the answer! If anybody is wandering you can use "self as Quest" to refer to the quest inside the script.

Link to comment

Or nothing ....

 

Scriptname xyzt extends Quest

 

Event xyz()

     stop()

     setStage(10)

     setObjectiveDisplayed(15)

     (getAlias(0) as ReferenceAlias).ForceRefTo(None)

EndEvent

 

You get the idea

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use