Jump to content

Creation Kit Script Fragments


Guest

Recommended Posts

Posted

When I put in my code and then try to fill the properties I get "Errors Encountered While Attempting to Reload Script"Ā I found the script fragment in my source folder so i don't know what is happening.

Posted

You may miss the compiled PEX files, or the PSC sources.

There is also a possibility that the referenced version in the [quest|scene|dialogue|package] does not match the one you have as source file.

Posted
6 minutes ago, CPU said:

You may miss the compiled PEX files, or the PSC sources.

There is also a possibility that the referenced version in the [quest|scene|dialogue|package] does not match the one you have as source file.

I have the PSC sources but how can i get the Pex files if i cant compile because i am unable to fill the properties

Posted
3 minutes ago, Teutonic said:

Properties don't need to be filled to compile, in fact, you need to compile before you can fill them in the CK.

I putĀ 

game.getplayer().removeitem(gold, HDWhiterunBasement.value as int)
decoratemarker.enable()

in the end fragment and all i get is errors when compiling because it doesn't know what HDWhiterunBasement is

Posted

oh my i am dumb, can you tell i am new too this anyway thanks for the help it helped me figure out where it went wrong ?

Posted
Just now, Risamei said:

I putĀ 

game.getplayer().removeitem(gold, HDWhiterunBasement.value as int)
decoratemarker.enable()

in the end fragment and all i get is errors when compiling because it doesn't know what HDWhiterunBasement is

Ok now I remember. You can't declare properties in the fragment. Mark all of the lines as comments and compile. Then you can go to the scripts tab and edit source. It should load just fine. Add the properties, then go back to the fragment input, uncomment your script and compile. Then you can fill the properties like normal.

Posted

Thank you for the help!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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