Jump to content

I have an annoying scripting problem


TheJelmega

Recommended Posts

Hello, I'm starting on my mod, I have a value to check if a forcegreet should happen, but I can change it

 

script that stores value

Scriptname DIERoggardForcedGreet1 extends Quest  Conditional
Int Property Greet = 0 Auto  Conditional

script fragment to change it

DIERoggardForcedGreet1.Greet = 1
error I get from the compiler

Starting 1 compile threads for 1 files...
Compiling "TIF__0502902A"...
C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\TIF__0502902A.psc(9,23): a property cannot be used directly on a type, it must be used on a variable
No output generated for TIF__0502902A, compilation failed.
 
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0502902A
 

Coukd somebody please help me, thank you.

 

Link to comment
Share on other sites

Are the fragment and script attached to the same quest? If so you need to select the script from the drop-down menu above the script fragment. This will allow you to access the script's properties using the variable kMyQuest. The line should then say:

 

kMyQuest.Greet = 1

 

If they are attached to different quests, then you would have to add a property of type DIERoggardForcedGreet1 to your script. The property would look like so:

 

DIERoggardForcedGreet1 property MyQuestName auto

 

Replacing MyQuestName with the ID of the quest that the DIERoggardForcedGreet1 is attached to. The line to change Greet's value would then look like this:

 

MyQuestName.Greet = 1

Link to comment
Share on other sites

I've seen this pretty late, but where is that drop-down menu above the script fragment, and in the second way is says:

 

Starting 1 compile threads for 1 files...
Compiling "TIF__0502902A"...
C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\TIF__0502902A.psc(9,0): no viable alternative at input 'DIEMQ1RoggardForceGreetScript'
C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\TIF__0502902A.psc(9,39): no viable alternative at input 'RoggardGreet'
No output generated for TIF__0502902A, compilation failed.
 
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0502902A

 

I've renamed the script that store the value to DIEMQ1RoggardForceGreetScript.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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