Difference between revisions of "Complete Example Scripts"
Jump to navigation
Jump to search
m
→typo
imported>Qqqbbb |
imported>Qqqbbb m (→typo) |
||
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 | 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 | * 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 = |