Jump to content

Recommended Posts

Posted (edited)

I am having a problem with a script, which I know very little about.

This is a short script and I am getting the

ERROR MESSAGE " Unknown variable '00BMHBookContainer01REF.Acitivate' ".

I am trying to create a script that will open a container through a switch (activator) and run a second script (attached to the container) which will activate static versions of the Skill Books I have for display.

 

Here is the script:

 

scn BMHBookDisplaySCRIPT
Begin OnActivate
If IsActionREF Player == 1
00BMHBookContainer01REF.Activate Player 1
endif
End

 

Did some corrections on this but still getting the same Error Message!

 

Once again:

This script will only open the container and give access, once opened if books are added to the container it will activate the static books (second script).

 

Any help is very welcome.

Thank you.

~TS

Edited by TimeShadow
Posted

Yes, thank you but I have already, but I can't figure out how to use it. In fact I have read his beginning scripting page and it does not help.

I wish there was some sort of comprehensive manual that I could get. Even Bethesda's online guide is limited.

Posted

 

00BMHBookContainer01REF.Acitivate

 

Three things, do not start your editorids with numerals because occasionally the game engine will mistake them for formids, your form must exist before you can reference and save it in a script, and "Activate" is misspelled.

Posted

Expounding on #2 from blove...

 

Your ref ID needs to be assigned to the reference object AND that object needs to flagged as a persistent reference in order to use it's ref ID in a script.

  • Recently Browsing   0 members

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