Jump to content

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


Recommended Posts

Posted

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.

Posted

Or nothing ....

 

Scriptname xyzt extends Quest

 

Event xyz()

     stop()

     setStage(10)

     setObjectiveDisplayed(15)

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

EndEvent

 

You get the idea

Posted

Or nothing ....

 

Scriptname xyzt extends Quest

 

Event xyz()

     stop()

     setStage(10)

     setObjectiveDisplayed(15)

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

EndEvent

 

You get the idea

Oh...didn't know you could do that! Thanks!

Archived

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

  • Recently Browsing   0 members

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