Difference between revisions of "Complete Example Scripts"

Jump to navigation Jump to search
152 bytes removed ,  22:58, 5 October 2012
m
imported>JustinOther
imported>JustinOther
Line 372: Line 372:
PhaseTest = GameDaysPassed % 24 ;A full cycle through the moon phases lasts 24 days
PhaseTest = GameDaysPassed % 24 ;A full cycle through the moon phases lasts 24 days
If (PhaseTest >= 1 && PhaseTest <= 3)
If PhaseTest >= 22 || PhaseTest == 0
return 0
Return 7
ElseIf (PhaseTest >= 4 && PhaseTest <= 6)
ElseIf PhaseTest < 4
return 1
Return 0
ElseIf (PhaseTest >= 7 && PhaseTest <= 9)
ElseIf PhaseTest < 7
return 2
Return 1
ElseIF (PhaseTest >= 10 && PhaseTest <= 12)
ElseIf PhaseTest < 10
return 3
Return 2
ElseIf (PhaseTest >= 13 && PhaseTest <= 15)
ElseIF PhaseTest < 13
return 4
Return 3
ElseIf (PhaseTest >= 16 && PhaseTest <= 18)
ElseIf PhaseTest < 16
return 5
Return 4
ElseIf (PhaseTest >= 19 && PhaseTest <= 21)
ElseIf PhaseTest < 19
return 6
Return 5
ElseIf (PhaseTest >= 22 || PhaseTest == 0)
ElseIf PhaseTest < 22
return 7
Return 6
EndIf
EndIf
Anonymous user

Navigation menu