» Sun Nov 18, 2012 5:54 pm
Papyrus scripts work via inheritance. If script A extends script B, then script A inherits all of the properties, functions, and events of script B. Although each script can only extend a single other script, this inheritance works through multiple levels.
For example, the http://www.creationkit.com/ObjectReference_Script extends the http://www.creationkit.com/Form_Script, so it has access to all of the properties, functions etc. of that script. On top of that, the http://www.creationkit.com/Actor_Script extends the ObjectReference script, so it has access to all of its properties, functions, and events - including those already inherited from the Form script.
If you were to write a script extending Actor, it would have access to all of this on top of whatever you define in that script. You could then write another script extending your custom script that could be attached to objects with your first script attached and it would have access to all of the things from that script as well as whatever you define in this new script.
I hope that helps you understand how it works. I also describe Papyrus' inheritance in one of my tutorials, http://cipscis.com/skyrim/tutorials/externalaccess.aspx
Cipscis