Nekocatz Posted August 21, 2012 Share Posted August 21, 2012 Hey Guys, I'm having some small troubles with compiling a script fragment to be used in a quest. Ideally I'm trying to change the speakers class through the SKSE extension SetClass. My issue is that the class I'm trying to use is returned as undefined. I'm trying to use a default class CombatWarrior1H. akspeaker.GetActorBase().SetClass(combatwarrior1h) Starting 1 compile threads for 1 files...Compiling "TIF__010012E0"...Z:\My Games\The Elder Scrolls V Skyrim\Data\Scripts\Source\temp\TIF__010012E0.psc(19,34): variable CombatWarrior1H is undefinedNo output generated for TIF__010012E0, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on TIF__010012E0 Thoughts? Link to comment Share on other sites More sharing options...
gasti89 Posted August 21, 2012 Share Posted August 21, 2012 Have you declared the "combatwarrior1h" property? Link to comment Share on other sites More sharing options...
Nekocatz Posted August 21, 2012 Author Share Posted August 21, 2012 I have not! How do I do this? Sorry I'm pretty new to modding. Link to comment Share on other sites More sharing options...
gasti89 Posted August 21, 2012 Share Posted August 21, 2012 http://www.creationkit.com/Category:Tutorials I suggest you to read the Hello World tutorial before attempting anything, more than ever SKSE. Properties are the very basic feature of papyrus. Link to comment Share on other sites More sharing options...
Nekocatz Posted August 21, 2012 Author Share Posted August 21, 2012 I'm not that new to modding was just unsure how to use properties within dialogue fragments ;/ I've already tried class property combatwarrior1h auto the return error Starting 1 compile threads for 1 files...Compiling "TIF__010012E0"...Z:\My Games\The Elder Scrolls V Skyrim\Data\Scripts\Source\temp\TIF__010012E0.psc(19,0): no viable alternative at input 'class'Z:\My Games\The Elder Scrolls V Skyrim\Data\Scripts\Source\temp\TIF__010012E0.psc(19,15): no viable alternative at input 'combatwarrior1h'No output generated for TIF__010012E0, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on TIF__010012E0 Link to comment Share on other sites More sharing options...
Nekocatz Posted August 21, 2012 Author Share Posted August 21, 2012 Anyone know anything? Or is there no way to add SKSE to script fragments? Link to comment Share on other sites More sharing options...
gasti89 Posted August 21, 2012 Share Posted August 21, 2012 You can't put the property declaration in the fragment itself. You have 2 choices: - edit source and put that line at the end of the script - double click on the fragment and click "add" on properties Then you have to fill it. Link to comment Share on other sites More sharing options...
Nekocatz Posted August 21, 2012 Author Share Posted August 21, 2012 Sweet, thanks! Now it compiles correctly but sadly it just crashes in game ;/ Link to comment Share on other sites More sharing options...
Recommended Posts