Difference between revisions of "Extending Scripts (Papyrus)"

m
imported>Scrivener07
imported>Whocares65
 
Line 2: Line 2:
Script extending is the act of taking a script that almost does what you want, and then modifying some of its events or functions to do something different without editing the original script.
Script extending is the act of taking a script that almost does what you want, and then modifying some of its events or functions to do something different without editing the original script.


=Terminology=
== Terminology ==
*Parent: The original script that is being extended.
 
*Child: The script that is extending its parent.
;Child
*Inherit: When a child script gains something from its parent without modifying it, it "inherits" them.
:The script that is extending its parent.  
*Override: When a child script changes the behavior of something in its parent by making a new version, it "overrides" the parent version.
;Inherit
:When a child script gains something from its parents without modifying it, it "inherits" these things.
;Override
:When a child script changes the behavior of something in its parent by making a new version, it "overrides" the parent's version.
;Parent
:The original script that is being extended.


=How to extend=
=How to extend=
Anonymous user