Setting up Notepad++ for Compiling Papyrus Scripts.
- Browse to your “..\Skyrim\Papyrus Compiler\” folder.
- Right click “ScriptCompile.bat” and select “Edit with Notepad++”.
- Delete all content it currently has.
- Then copy paste the text below.
(Check the file paths if they match your skyrim folder location)
"C:\Program Files (x86)\Steam\SteamApps\common\skyrim\Papyrus Compiler\PapyrusCompiler.exe" %1 -f="TESV_Papyrus_Flags.flg" -i="C:\Program Files (x86)\Steam\SteamApps\common\skyrim\Data\Scripts\Source" -o="C:\Program Files (x86)\Steam\SteamApps\common\skyrim\Data\Scripts" pause
Save and close the file.
Now make a backup copy of that file. Because when you do a “Verify Integrity of Game Cache” it will replace it with the original default file as provided by Bethesda.
While still in notepad++ press ‘F5’
It’ll popup a dialogue.
Paste the line below in to it.
(Check the file path if it match your skyrim folder location)
"C:\Program Files (x86)\Steam\steamapps\common\skyrim\Papyrus Compiler\ScriptCompile.bat" "$(FILE_NAME)" "$(CURRENT_DIRECTORY)"
Click save and name it “Papyrus Compile” and set your favorite short cut key combo for the function.
Mine is ‘Shift’ ‘F7’
Although I usually click it from menu -> Run -> Papyrus Compile.
Next we’ll setup fancy syntax high lighting for papyrus script.
Download this papyrus style file and unzip the papyrus-style.xml to your “..\skyrim\Papyrus Compiler\” folder.
In notepad select from menu -> Language -> Define Your Language
From the Dialogue Click “Import” and browse to your “..\Skyrim\Papyrus Compiler\” folder and select the “papyrus-style.xml”
It should popup a message “Import successful”.
Set .psc file association with notepad++
Close Notepad++
Right click a .psc file and select “Open with” -> “Choose Default Program” -> Select Notepad++.
If the notepad++ does not show in the initial dialogue then click browse and browse to “C:\Program Files (x86)\Notepad++” folder and select notepad++.exe
Done 🙂