Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
Mess-o-headers
imported>ChrisT1981
No edit summary
imported>Jog
(Mess-o-headers)
Line 29: Line 29:
</source>
</source>


====To Make This Script Work====
'''To Make This Script Work'''


Select an existing object in your cell
Select an existing object in your cell
Line 46: Line 46:
* Then go in-game and walk into the space where this invisible box is.
* Then go in-game and walk into the space where this invisible box is.


====Uses:====
'''Uses:'''


* Create events that depend on player positioning
* Create events that depend on player positioning
Line 85: Line 85:
</source>
</source>


====To Make This Script Work====
'''To Make This Script Work'''


* Make an XMarkerHeading object (search *All with "xmarker" filter), place it where you want the player to be moved to.
* Make an XMarkerHeading object (search *All with "xmarker" filter), place it where you want the player to be moved to.
Line 101: Line 101:


Get used to these basics and you will find Papyrus much more powerful than prior scripting languages.
Get used to these basics and you will find Papyrus much more powerful than prior scripting languages.


===A Fully Functional Dwemer Button===
===A Fully Functional Dwemer Button===
Line 140: Line 141:
</source>
</source>


====To Make This Script Work====
'''To Make This Script Work'''


* You must create this script on a Activator object, probably a dwemer button :)
* You must create this script on a Activator object, probably a dwemer button :)
Line 155: Line 156:


To extract files from the Skyirm .BSA files you must download something like the Fallout3 Archive Utility, do a google search for this.
To extract files from the Skyirm .BSA files you must download something like the Fallout3 Archive Utility, do a google search for this.


===Set Quest Stage When Picked Up By Player===
===Set Quest Stage When Picked Up By Player===
Line 175: Line 177:
EndState
EndState
</source>
</source>


===Good Usage of Properties to Make Scripts Compact===
===Good Usage of Properties to Make Scripts Compact===
Line 254: Line 257:




====How to Make This Script Work====
'''How to Make This Script Work'''


* You will need to replace all names for the Draugr Archers (RamaJRFadeRockArcher001 for example) with the exact ID values of each of your chosen creatures.
* You will need to replace all names for the Draugr Archers (RamaJRFadeRockArcher001 for example) with the exact ID values of each of your chosen creatures.


* Then you will need to chose for each instance of the script whether the boolean property should be false or true, this setting process shows up a simple checkmark box in the editor
* Then you will need to chose for each instance of the script whether the boolean property should be false or true, this setting process shows up a simple checkmark box in the editor
Enjoy!
♥ and thanks to our friends at Bethesda for such an awesome Creation Kit!




Line 419: Line 416:
</source>
</source>


==== How to make this script work ====
'''How to make this script work'''
*Put it to your "Data/Scripts/Source" Folder and compile.
*Put it to your "Data/Scripts/Source" Folder and compile.
*Call it's functions in other scripts either by import and call by function name or by using ExtendedUtility.<FunctionName>()
*Call it's functions in other scripts either by import and call by function name or by using ExtendedUtility.<FunctionName>()
Anonymous user

Navigation menu