TheJelmega Posted December 25, 2014 Share Posted December 25, 2014 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 valueScriptname DIERoggardForcedGreet1 extends Quest Conditional Int Property Greet = 0 Auto Conditionalscript fragment to change itDIERoggardForcedGreet1.Greet = 1 error I get from the compilerStarting 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 More sharing options...
Mattiewagg Posted December 25, 2014 Share Posted December 25, 2014 You need a property in your fragment, of type DIERoggardForcedGreet. The name of the property can be DIERoggardForcedGreet as well if you like. Link to comment Share on other sites More sharing options...
smashly Posted December 26, 2014 Share Posted December 26, 2014 (edited) NVM, I was to slow...lolPlease ignore Edited December 26, 2014 by smashly Link to comment Share on other sites More sharing options...
TheJelmega Posted December 26, 2014 Author Share Posted December 26, 2014 (edited) I've never done this before, so I don't really understand what you're saying Matthiaswagg. What property type should it be? Edited December 26, 2014 by TheJelmega Link to comment Share on other sites More sharing options...
lofgren Posted December 26, 2014 Share Posted December 26, 2014 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 More sharing options...
TheJelmega Posted December 27, 2014 Author Share Posted December 27, 2014 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 More sharing options...
Recommended Posts