Jump to content

Secret Door and how to script


Sebo85

Recommended Posts

So I have this interioir i build on my own and I wanted to have a secret room which is accessible by reading a note.

I tried to get the walls disabled ofter reading the note and a doorway to be enabled after reading this note.

 

Since I seem to be a complete dumba** in scripting, i could really REALLY need your help guys :D

Link to comment
Share on other sites

Add a new script to the Book, add 2 properties to the script, set them as ObjectReference, name them wall and doorway, and fill them by using "Pick reference from render window", then edit the script and write an OnRead event and, inside of this event write: wall.Disable() doorway.Enable() (one command per line).

Link to comment
Share on other sites

Don't set an initial value, click on the property then click edit, then click on the button named "pick reference in render window" to select the object from the render window.

Link to comment
Share on other sites

Well, it would be good to know what the compiler is telling you.

If you are just adding properties I guess you don't have the source scripts of the base game extracted. You need to extract Base.zip in the scripts directory.

If Base.zip is not present in the scripts directory you can reinstall/repair the CK form the Bethesda launcher, so the next time that you start the CK a prompt will appear asking if you want to extract it.

Link to comment
Share on other sites

Papyrus Compiler Version 2.8.0.4 for Fallout 4

Copyright © ZeniMax Media. All rights reserved.

Starting 1 compile threads for 1 files...

Compiling "SebosLoftNote_Script"...

G:\SteamLibrary\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Wall.psc(2,0): mismatched input '<EOF>' expecting SCRIPTNAME

G:\SteamLibrary\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Wall.psc(0,0): error while attempting to read script wall: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

No output generated for SebosLoftNote_Script, compilation failed.


Batch compile of 1 files finished. 0 succeeded, 1 failed.

Failed on SebosLoftNote_Script


Thats the error which occurs when trying to add a property

Link to comment
Share on other sites

It seems like if you removed the header of the script, it should look like this:

 

G:\SteamLibrary\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Wall.psc

scriptname Wall extends ObjectReference
Edited by DieFeM
Link to comment
Share on other sites

  • Recently Browsing   0 members

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