David Brasher Posted February 19, 2012 Share Posted February 19, 2012 (edited) I can hardly make any of my Papyrus fragments work. (Oh how I miss result scripts. They were so much better!) All I want right now is to be able to change a variable by talking to an actor. Any variable! Nothing I have tried works. I have tried quest variables, script variables, global variables, faction ranks, quest stages. (Actually I know how to increase quest stages, but I can't get ResetQuest to work to lower the variable to 0 again.) Could someone tell me how to set everything up in a Papyrus fragment to change one of these things? Edited February 19, 2012 by David Brasher Link to comment Share on other sites More sharing options...
nosisab Posted February 19, 2012 Share Posted February 19, 2012 (edited) have you tried making it a property? Variables and properties Edited February 19, 2012 by nosisab Link to comment Share on other sites More sharing options...
David Brasher Posted February 19, 2012 Author Share Posted February 19, 2012 So how would I do that in a Papyrus fragment? What would the script say? What other boxes and menus would I have to go to in order to change things in addition to just writing the line of scripting right? Link to comment Share on other sites More sharing options...
nosisab Posted February 19, 2012 Share Posted February 19, 2012 Depends on what you want to do, the properties allow access from outside the script they are defined (much like quest variables but way more powerful). Follow that link for it is official information on using Papyrus. Link to comment Share on other sites More sharing options...
David Brasher Posted February 19, 2012 Author Share Posted February 19, 2012 I read that page and tried to follow some of its advice but I am not experienced enough to figure out which parts of it apply to Papyrus fragments and which parts apply to full scripts. It seems that Papyrus fragments use an entirely different syntax which to the uninitiated looks like an entirely different programming language. When I read the page at the link you posted yesterday and tried a bunch of experiments using the information it gives, I still was not able to get any Papyrus fragment scripts that changed any sort of variables to compile. Are there any tutorials or documentation that talk only about Papyrus fragments? Most of the documentation just mention Papyrus fragments in passing. Link to comment Share on other sites More sharing options...
LittleBaron Posted February 23, 2012 Share Posted February 23, 2012 I'm also getting frustrated with the lack of real info on fragments. so, BUMP. Even a tutorial on quest making that includes the use of fragments, with properties, would be helpful. I can find nothing... The quest tutorial on the wiki does not use fragments, and as David said, there doesn't seem to be anything on there about fragments that goes into any kind of helpful detail. For instance: According to the wiki, you can 'easily' access the properties from an existing script by using the kmyscript field, but no matter how I do it my 'fragment' will not compile due to complaints of undefined objects (even when the code I am using is identical to the compiled script with the original properties on it). And, since it won't compile, I can't add the properties manually... and so on. Link to comment Share on other sites More sharing options...
Pifanjr Posted February 23, 2012 Share Posted February 23, 2012 Try this. It basically says you have to insert every property via the property button instead of via the script fragment. Link to comment Share on other sites More sharing options...
LittleBaron Posted February 23, 2012 Share Posted February 23, 2012 Doesn't work, but thanks for the reply. I try to compile a dummy script (;comment)* and then open the properties window, but there are no properties to edit and no way to add properties there. In order for the properties to show up there I would first have needed to get the damn fragment to compile WITH properties set up & ready to be defined in it. But can't get them to compile as they would in a standard papyrus script. *I get no message saying the script compiled, but no message saying it didn't either Link to comment Share on other sites More sharing options...
Galacticat42 Posted February 24, 2012 Share Posted February 24, 2012 Yea, Papyrus isn't exactly a 5-star scripting language. I became mega-frustrated in trying to apply a fragment too and so just because I couldn't get ANY fragment to work, I just reached into my monitor and threw the file out the window. ;D Seriously though I couldn't stand it anymore and began working in Script Dragon. It runs much more reliably and has a more rounded syntax system as it uses the various variations of the C, C++ and #C languages. Link to comment Share on other sites More sharing options...
jimhsu Posted February 24, 2012 Share Posted February 24, 2012 (edited) Try this. It basically says you have to insert every property via the property button instead of via the script fragment. I wrote that part. Try something trivial like Game.GetPlayer() And try compiling that. If that doesn't work, go into the other tab (advanced?) and try renaming the script. I have no idea why, but that works (add property shows up after). I've made the wiki entry more clear to highlight that fact. Edited February 24, 2012 by jimhsu Link to comment Share on other sites More sharing options...
Recommended Posts