Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
m
→‎A helper script with functions to get the current moonphase, sync between the two moons and day of the week: Ah... Second 'As Int'/Floor calls were unnecessary as they were already integers
imported>JustinOther
m (→‎A helper script with functions to get the current moonphase, sync between the two moons and day of the week: Floor swapped with 'As Int' as it does the exact same thing at less 'cost')
imported>JustinOther
m (→‎A helper script with functions to get the current moonphase, sync between the two moons and day of the week: Ah... Second 'As Int'/Floor calls were unnecessary as they were already integers)
Line 319: Line 319:
GameTime = GetCurrentGameTime()
GameTime = GetCurrentGameTime()
GameDaysPassed = GameTime As Int
GameDaysPassed = GameTime As Int
Return GameDaysPassed As Int
Return GameDaysPassed
EndFunction
EndFunction


Line 335: Line 335:
GameTime = GetCurrentGameTime()
GameTime = GetCurrentGameTime()
GameHoursPassed = ((GameTime - GameTime As Int) * 24) As Int
GameHoursPassed = ((GameTime - GameTime As Int) * 24) As Int
Return GameHoursPassed As Int
Return GameHoursPassed
EndFunction
EndFunction


Anonymous user

Navigation menu