Difference between revisions of "Complete Example Scripts"

Jump to navigation Jump to search
9 bytes removed ,  04:52, 15 November 2013
m
imported>Qqqbbb
imported>Qqqbbb
Line 271: Line 271:


=Usage of Arrays to Make Scripts Compact=
=Usage of Arrays to Make Scripts Compact=
In this example you can see how to use a simple script property to reduce the number of scripts you need to write and thus the amount of properties you need to set, which can be time-consuming. Below I was having to do things to things to about 30 different draugrs:
In this example you can see how to use a simple script property to reduce the number of scripts you need to write and thus the amount of properties you need to set, which can be time-consuming. Below I was having to do things to about 30 different draugrs:
* turn their AI on and make them visible
* turn their AI on and make them visible
* turn their AI off and make them invisible
* turn their AI off and make them invisible
Line 295: Line 295:
'''How to Make This Script Work'''
'''How to Make This Script Work'''
* You will need to fill the array elements in the Creation Kit with the chosen creatures.
* You will need to fill the array elements in the Creation Kit with the 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 choose 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.


= A helper script with functions to get the current moonphase, sync between the two moons and day of the week =
= A helper script with functions to get the current moonphase, sync between the two moons and day of the week =
Anonymous user

Navigation menu