Complete Example Scripts: Difference between revisions
m
→A helper script with functions to get the current moonphase, sync between the two moons and day of the week: Parenthesis added to GameHoursPassed line for improved legibility
imported>JustinOther m (→Script to make an item cast a spell: GetPlayer swapped for PlayerREF) |
imported>JustinOther m (→A helper script with functions to get the current moonphase, sync between the two moons and day of the week: Parenthesis added to GameHoursPassed line for improved legibility) |
||
| Line 334: | Line 334: | ||
GameTime = GetCurrentGameTime() | GameTime = GetCurrentGameTime() | ||
GameHoursPassed = ((GameTime - GameTime As Int) * 24) As Int | GameHoursPassed = ((GameTime - (GameTime As Int)) * 24) As Int | ||
Return GameHoursPassed | Return GameHoursPassed | ||
EndFunction | EndFunction | ||