CampanaAliquanta Posted February 13, 2012 Share Posted February 13, 2012 For instance, like this one here: This should work:Scriptname AddThunderPerk extends ObjectReference Perk property ThunderPerk auto Event OnRead() if Game.GetPlayer().HasPerk(ThunderPerk) == false Game.GetPlayer().AddPerk(ThunderPerk) Debug.Trace("Heart of Thunder added") endif EndEvent More examples like these would be enormously helpful, because it gives people new to Papyrus (or to scripting in general) a good idea of how their script structure should work. Would anyone else find this useful? Link to comment Share on other sites More sharing options...
WizardOfAtlantis Posted February 13, 2012 Share Posted February 13, 2012 I'll add the weight of my "yep" to that. http://forums.nexusmods.com/public/style_emoticons/dark/biggrin.gif Link to comment Share on other sites More sharing options...
civ77 Posted February 13, 2012 Share Posted February 13, 2012 yeah I agree, I am used to Java and although some things are similar it is difficult to learn these things without examples. Link to comment Share on other sites More sharing options...
OminousVoice Posted February 19, 2012 Share Posted February 19, 2012 Sadly the above example doesn't actually work if you attatch it to a book. Link to comment Share on other sites More sharing options...
Cipscis Posted February 19, 2012 Share Posted February 19, 2012 I've been working on revamping the current page we have for examples, so that it better fits with the standards I've defined here. I'd be interested to here if anyone has any particular requests, and especially interested if anyone has any comments or criticisms on the standards I've outlined. It can be very hard sometimes for me to see through the eyes of a beginner, and I definitely want to know if you think my ideas will make it harder for you to learn. Cipscis Link to comment Share on other sites More sharing options...
Recommended Posts