Open main menu
Home
Random
Log in
Settings
About the CreationKit Wiki
Disclaimers
the CreationKit Wiki
Search
Editing
Script File Structure
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Header Line == <Header Line> ::= 'ScriptName' <identifier> ['extends' <identifier>] (<flags>)* The header line of the script consists of the [[Keyword Reference|keyword]] "ScriptName" followed by the [[Identifier Reference|identifier]] of the script (which must match the name of the file). If the script extends another script, then the name of the script is followed by the "Extends" [[Keyword Reference|keyword]] and the name of the script it extends. And finally, by any [[Flag Reference|flags]]. === Script Extension === Extending another script will let you override its functions and events to do something different, or add additional functionality while keeping the functionality of the older script. The only limitations are that any function or event in the child script whose name matches one in the parent script must have the same return type and parameter list. === Examples === <syntaxhighlight lang="papyrus"> ; MyScript.psc ScriptName MyScript </syntaxhighlight> <br> <syntaxhighlight lang="papyrus"> ; HiddenScript.psc This script is hidden from the editor's normal script list, and extends ParentScript ScriptName HiddenScript Extends ParentScript Hidden </syntaxhighlight>
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)