Hi guys, i am a beginner of papyrus script. i want to use script to add a new spell to my character in a particular time, lets say 8 pm. how to do it?
i already know the function checking the time,but dont konw how to add a spell to player. anyone knows how to do it?
here is the code
Spoiler
float Function GetCurrentHourOfDay() global
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
Return Time
EndFunction
if getCurrentHourOfDay() == 8
{add spell to player}
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
Return Time
EndFunction
if getCurrentHourOfDay() == 8
{add spell to player}
many thanks