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 = | GameDaysPassed = GameTime As Int | ||
Return GameDaysPassed As Int | |||
EndFunction | EndFunction | ||
| Line 334: | Line 334: | ||
GameTime = GetCurrentGameTime() | GameTime = GetCurrentGameTime() | ||
GameHoursPassed = | GameHoursPassed = ((GameTime - GameTime As Int) * 24) As Int | ||
Return GameHoursPassed As Int | |||
EndFunction | EndFunction | ||