Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
m
fixed while loop in new example script
imported>Kahmul
mNo edit summary
imported>Fg109
m (fixed while loop in new example script)
Line 422: Line 422:
index = 0
index = 0
if(player == game.getplayer())
if(player == game.getplayer())
while(index < (objAr.getlength - 1))
while(index < (objAr.getlength))
curObj = objAr[index]
curObj = objAr[index]
curObj.setAlpha(alpha)
curObj.setAlpha(alpha)
Line 456: Line 456:


* 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


=== 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