Jump to content

Need help with scripting a quest fragment


HailHell

Recommended Posts

In your line of code PlayerRef & FalmerFaction both require properties. You can avoid a property for PlayerRef by using Game.GetPlayer() as skinnytecboy suggested. The FalmerFaction must have a property set up before it can be used in the fragment.

 

What errors are being thrown at you?

Link to comment
Share on other sites

If you are wanting to change the npc faction (assuming the speaking npc), what is here currently will change the player's faction membership. akSpeaker is used for the speaking NPC.

 

 

 

akSpeaker.AddToFaction (FalmerFaction)

 

 

 

It is helpful to post full error messages since the error message provides useful information on the specific problem and hints on what you need to change (won't tell the solution though)

 

Please post the error message so we can help you better

Link to comment
Share on other sites

when i add properties:

 

faction property A00FFactHell auto
actor property A00FQAya auto

A00FQAya.AddToFaction(A00FFactHell)

 

 

 

Starting 1 compile threads for 1 files...
Compiling "TIF__02020D4E"...
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4E.psc(9,0): no viable alternative at input 'faction'
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4E.psc(9,17): no viable alternative at input 'A00FFactHell'
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4E.psc(12,8): no viable alternative at input '.'
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4E.psc(21,13): script property NewProperty already defined
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4E.psc(21,13): script variable ::NewProperty_var already defined
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4E.psc(21,13): script property NewProperty already has a get function defined
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4E.psc(21,13): script property NewProperty already has a set function defined
No output generated for TIF__02020D4E, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__02020D4E
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

when i dont add properties:

 

 

A00FQAya.AddToFaction(A00FFactHell)

 

 

 

 

Starting 1 compile threads for 1 files...
Compiling "TIF__02020D4435345"...
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4435345.psc(18,13): script property NewProperty already defined
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4435345.psc(18,13): script variable ::NewProperty_var already defined
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4435345.psc(18,13): script property NewProperty already has a get function defined
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02020D4435345.psc(18,13): script property NewProperty already has a set function defined
No output generated for TIF__02020D4435345, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__02020D4435345

 

 

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

when i try to click the properties button with the code i get an error message saying:

 

 

errors encountered while attempting to reload the script!

Link to comment
Share on other sites

Ok, this is a weird CK bug. Comment out your current fragment, and do a simple function such as Utility.wait (0.1). Compile that, and add the properties after. Once the properties are added, remove the wait, and uncomment your original fragment
Link to comment
Share on other sites

You cannot add properties inside of a fragment. Fragments are functions and properties must be defined outside of them. Also, you cannot add properties to a script that does not yet exist.

 

Here is what you need to do:

In the fragment box type the following

 

;place holder text

Compile the script fragment.

OK to close out the quest

Re-open the quest.

Go to the stage, click on the properties button and add your properties.

Replace the place holder text with your fragment code

Compile

 

Should have no errors throughout the process unless your script code itself has issues.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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