Complete Example Scripts: Difference between revisions
Jump to navigation
Jump to search
→corrected script so it compiles
imported>Thingy Person |
imported>Qqqbbb |
||
| Line 312: | Line 312: | ||
Int Function GetPassedGameDays() Global | Int Function GetPassedGameDays() Global | ||
Float GameDaysPassed | Float GameDaysPassed | ||
GameDaysPassed = GetCurrentGameTime() | |||
GameDaysPassed | Return GameDaysPassed As Int | ||
EndFunction | EndFunction | ||
| Line 328: | Line 326: | ||
Int Function GetPassedGameHours() Global | Int Function GetPassedGameHours() Global | ||
Float GameTime | |||
Float GameHoursPassed | Float GameHoursPassed | ||
GameTime = GetCurrentGameTime() | GameTime = GetCurrentGameTime() | ||
GameHoursPassed = ((GameTime - (GameTime As Int)) * 24) | GameHoursPassed = ((GameTime - (GameTime As Int)) * 24) | ||
Return GameHoursPassed | Return GameHoursPassed As Int | ||
EndFunction | EndFunction | ||
| Line 433: | Line 431: | ||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/; | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/; | ||
Int Function GetDayOfWeek() | Int Function GetDayOfWeek() Global | ||
Int GameDaysPassed | Int GameDaysPassed | ||