Jump to content

SCLeo

Members
  • Posts

    4
  • Joined

  • Last visited

Nexus Mods Profile

About SCLeo

SCLeo's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Papyrus is a threaded scripting language. I've found that, for me at least, thinking about the relationship between game objects and scripts makes more sense when you apply object-oriented programming logic to it. Which makes sense because that is basically what Papyrus is, just without some of the fancier lower-level object creation that would make my day. What I would give to have a (vanilla, sorry SKSE team) function to actually get a FormID past 7F FF FF FF in Papyrus. Maybe I'll get my wish in Starfield. To answer your questions, your script would not be duplicated, each individual helmet created of types A and B would have its own instance of properties and variables. Please note that this is my understanding and I could be a little bit off base on some things, it's been a while since I did research on the inner workings of Papyrus. They all share the same script but will have individual instance / object data. Here is a link to the Papyrus Introduction on the Skyrim Creation Kit Wiki. Ah thank you. I think that cleared a lot of confusion I had. One more question, if the variables/properties are created for each instance of helmet in game, how does it handle items stacking? For example, if I have a helmet with a local variable foo=1 in its attached script lying on the ground and a helmet with a local variable foo=2 in its attach script in the inventory, when I pick up the helmet on the ground, what will happen? Does the game secretly track that you have the same helmet but with different local variables in your inventory?
  2. Hello, I just got started modding Skyrim. Currently, I am quite confused as to how scripts work with forms. For example, if there is a script which takes a property and has a local variable. There are also 2 new helmet types A and B. I then assign script S to both A and B. Does that duplicate my script? Or in other words, does that mean I will have two instances of that local variable and two instance of that property? Also, when I create multiple copies of A in game, will that duplicate scripts as well? Or all actual in game instances of A share the same script? Thanks.
×
×
  • Create New...