Jump to content

Call another script from fragment?


soupdragon1234

Recommended Posts

I have a quest and I want to call a script from a package fragment. The fragment looks like this

 

;MainScript

quest01.stop()

quest02.stop()

.

.

.

.

.

.

.

.

quest08.stop()

 

and I compile and it works, but I have to add exactly the same fragment to a dozen or so packages. Now this is very inefficient. I'd like to add something like

 

call MainScript

/end fragment

 

to each one, where MainScript is defined elsewhere.

 

Is this possible, if so how?

 

edit: found out how to do it. I just love answering my own questions...

 

(GetOwningQuest() as MainScript).FunctionID()

 

will do it provided MainScript is attached to the same quest. I got it from here incase anyone is wondering: http://www.theengineeringguild.co.uk/elder-scrolls-modding-guides/57-skyrim-papyrus-tutorial-functions-explained and I have to agree with the guy Papyrus is ridiculously complicated. More complicated than C++? Now thats saying something.

 

@Terra Nova: thanks for the input, its always good to get a different perspective.

Edited by soupdragon1234
Link to comment
Share on other sites

  • Recently Browsing   0 members

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