Difference between revisions of "User:Rasikko"

Jump to navigation Jump to search
418 bytes added ,  08:05, 12 February 2018
imported>Rasikko
imported>Rasikko
Line 156: Line 156:
</source>
</source>
<br>
<br>
Getting the current week of the year.
<source lang="papyrus">
Int Function GetCurrentGameWeek()
    Int totalDays = Utility.GetCurrentGameTime() as int
    Int daysRemainingGameStart = 136
    Int daysPassedGameStart = 228
    if (totalDays < daysRemainingGameStart)
    return (totalDays + daysPassedGameStart) / 7
    else
    return (totalDays - daysRemainingGameStart) / 7
    endif
EndFunction
</source>
<br>
This one should be self explanatory.  
This one should be self explanatory.  
<source lang="papyrus">
<source lang="papyrus">
Anonymous user

Navigation menu