foxyvixen21 Posted January 18, 2014 Posted January 18, 2014 Hello all, Â I am creating a mod for the first time in Skyrim and I am messing around with the stuff in the API wiki I am trying to get the HookScript example to work but I always get this error: Â "\Data\Scripts\Source\temp\sldes.psc(8,8): required (...)+ loop did not match anything at input '(' No output generated for sldes, compilation failed." Â This is the code I am looking at from the API ScriptName sldes extends Quest SexLabFramework property SexLab auto event OnInit() ; // Register globally onto AnimationEnd, with our callback PlayerSatiate whenever the script is first initialized RegisterForModEvent("AnimationEnd", "PlayerSatiate") endEvent() ; // Our callback we registered onto the global event AnimationEnd event PlayerSatiate(string eventName, string argString, float argNum, form sender) ; // Use the HookController() function to get thread controller that triggered this event sslThreadController controller = SexLab.HookController(argString) ; // Get the players position from the thread, -1 if player wasn't involved int player = controller.GetPlayerPosition() ; // Only show our satiation message if player was involved if player >= 0 Debug.Notification("You feel a little more satisfied after that bit of fun...") endIf endEvent I have created a new quest object for this that runs at start up, is that correct as well? Â
foxyvixen21 Posted January 18, 2014 Author Posted January 18, 2014 Thanks! Â I am now getting many errors like "Data\Scripts\Source\sslAnimationFactory.psc(46,1): RegisterForModEvent is not a function or does not exist" Â I don't think I have called the framework properly, Do I need to add it in the property or call it somehow?
Ashal Posted January 18, 2014 Posted January 18, 2014 that means you don't have SKSE installed properly, reinstall SKSE without using the installer.
foxyvixen21 Posted January 18, 2014 Author Posted January 18, 2014 Thanks again, I went back and re-installed SKSE and the SKYUI SDK scripts and its compiling now.
foxyvixen21 Posted January 18, 2014 Author Posted January 18, 2014 Thanks, I have got it working in game as well now - thank you for your help!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.