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: Floor swapped with 'As Int' as it does the exact same thing at less 'cost'
imported>JustinOther
m (→‎Usage of Arrays to Make Scripts Compact: GetPlayer swapped with PlayerREF | rDraugr Δ kDraugr)
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')
Line 318: Line 318:
GameTime = GetCurrentGameTime()
GameTime = GetCurrentGameTime()
GameDaysPassed = Floor(GameTime)
GameDaysPassed = GameTime As Int
return GameDaysPassed as Int
Return GameDaysPassed As Int
EndFunction
EndFunction


Line 334: Line 334:
GameTime = GetCurrentGameTime()
GameTime = GetCurrentGameTime()
GameHoursPassed = Floor((GameTime - Floor(GameTime)) * 24)
GameHoursPassed = ((GameTime - GameTime As Int) * 24) As Int
return GameHoursPassed as Int
Return GameHoursPassed As Int
EndFunction
EndFunction


Anonymous user

Navigation menu