Difference between revisions of "Talk:Bethesda Tutorial Scenes"
m
→Extra Credit
imported>Lmstearn |
imported>Lmstearn m (→Extra Credit) |
||
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) | ||
:: | ::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 | ||
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 | 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 | ||
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) |