Suppose we have this function:
string Function GetGreeting() string Greet = "" 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 Greet = "Morning" elseif Time > 17 Greet = "Evening" else Greet = "Afternoon" endif Return Greet EndFunction
In the light of what is discussed http://www.creationkit.com/Function_Reference#Method_One:_Setting_up_the_Target_Script_as_a_Filled_Property,
Is there any way to make the function Greeting "global" in the sense:
Is there any way to access this function via a papyrus script box?
Is there any way to access this function through a condition?
Is there any we can make it a "property" of an alias so that Bendu.GetGreeting is equivalent to "Good Morning" from Bendu in-game?