Difference between revisions of "Talk:Bethesda Tutorial Scenes"

Jump to navigation Jump to search
m
imported>Lmstearn
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)
::Spoiler Alert!!! Using [[http://www.creationkit.com/Function_for_Time_of_Day this]] we can try:
::Thinking of a custom made function using [[http://www.creationkit.com/Function_for_Time_of_Day this]] we try:


   string Function GetGreeting()  
   string Function GetGreeting()  
Line 31: Line 31:
   EndFunction  
   EndFunction  


Rather more long winded than just using the condition function GetCurrentTime above as we create a variable in the Papyrus script box at the beginning of the scene:
but it turned out to be a fruitless wander across the back country of Elsewyr as opposed to using the condition function GetCurrentTime above. We create d a variable in the Papyrus script box at the beginning of the scene:


     timescript myvariable = GetOwningQuest() as timescript
     timescript myvariable = GetOwningQuest() as timescript
     Debug.MessageBox myvariable.getgreeting()
     Debug.MessageBox myvariable.getgreeting()


This turns out to be fairly useless unless the script is modified with:
Whoopee. This turns out to be quite useless unless the script is modified with:


     ScriptName Greetingscript extends ObjectReference Conditional
     ScriptName Greetingscript extends ObjectReference Conditional
     String Property Greet Auto Conditional
     String Property Greet Auto Conditional


to use it as a condition, but we are really jumping ahead as all this stuff is covered in scripting and in [[Papyrus_Introduction#Writing_Custom_Functions]]
using it as a condition, but we are really jumping ahead as all this stuff is covered in scripting and [[Papyrus_Introduction#Writing_Custom_Functions]]
--[[User:Lmstearn|Lmstearn]] ([[User talk:Lmstearn|talk]]) 2015-01-27T07:21:07 (EST)
--[[User:Lmstearn|Lmstearn]] ([[User talk:Lmstearn|talk]]) 2015-01-27T07:21:07 (EST)
Anonymous user

Navigation menu