Jump to content

[Papyrus] Setting up the Target Script as a Filled Property


Recommended Posts

I'm trying to make a lite version of Epic Restoration. This, unfortunately, has me doing a lot of script editing.

 

Mostly it's okay but this particular script is being quite a hassle:

http://pastebin.com/VMtjXRbZ

It reports the following error when trying to compile:

http://pastebin.com/sc6T60xM

 

As far as I know, the script is trying to use this property "DLC2MQ05Script Property DLC2MQ05 Auto" (which is attached to DLC2MQ05) to link to the other script (called DLC2MQ05Script) in order to use the function enableHM(false) further down. But for some reason, it doesn't recognise the DLC2MQ05Script Property.

 

I have found this on the Creation KIt wiki:

 

Declare the script that you want to access (ScriptB) as a property within the script you are trying to access it from (ScriptA).

  • This method is best when you only need access to a script that has a single instance (like a script attached to a specific Quest or ReferenceAlias). This is because you will have to choose the specific instance of the script you want to access when you fill the property in the CK.

It doesn't work, though. I'm still getting the error.

 

I have also tried unpacking the DLC2MQ05Script from the Dragonborn BSA, but even then I still get the error.

 

Am I doing something wrong?

 

Any help would be greatfully appreciated!

 

Thanks in advance

 

Kind regards

 

Andre

 

Link to comment
Share on other sites

Basically the error is telling you the compiler can't find DLC2MQ05Script

So copy DLC2MQ05Script.psc from \data\scripts\source\dragonborn\DLC2MQ05Script.psc

to

\data\scripts\source\DLC2MQ05Script.psc

 

If DLC2MQ05Script.psc has any required scripts it calls or references then those other scripts will also need to be copied to \data\scripts\source\ directory as well (if they aren't already in the \source\ directory).

 

Basically any script you compile that references other scripts, then those other scripts will need to be in the \source\ directory as well (not in a sub directory in the source folder).

Otherwise the compiler will complain like it's doing

Edited by sLoPpYdOtBiGhOlE
Link to comment
Share on other sites

  • Recently Browsing   0 members

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