Difference between revisions of "Talk:Bethesda Tutorial Scenes"

Jump to navigation Jump to search
imported>Layam
imported>Lmstearn
Line 11: Line 11:


Values 0 and 24 would both come back as midnight. Also if you use 25 you get 1am, 26 2am ect. --[[User:SoaringChris137|SoaringChris137]] 16:53, 3 March 2012 (EST)
Values 0 and 24 would both come back as midnight. Also if you use 25 you get 1am, 26 2am ect. --[[User:SoaringChris137|SoaringChris137]] 16:53, 3 March 2012 (EST)
::Using [[http://www.creationkit.com/Function_for_Time_of_Day this]] we can try:
  string Function GetGreeting()
   
    string MornArvo = ""
    float Time = Utility.GetCurrentGameTime()
    Time -= Math.Floor(Time) ; Remove "previous in-game days passed" bit
    Time *= 24 ; Convert from fraction of a day to number of hours
    if Time < 13
    MornArvo = "Good Morning"
    elseif Time > 17
    MornArvo = "Good Evening"   
    else
    MornArvo = "Good Afternoon"
    endif
    Return MornArvo
  EndFunction --[[User:Lmstearn|Lmstearn]] ([[User talk:Lmstearn|talk]]) 2015-01-27T07:21:07 (EST)
Anonymous user

Navigation menu