Scriptname HumanAging extends FormGlobalVariable property GameHour autoGlobalVariable property GameDaysPassed autoGlobalVariable property PlayerAge autoPerk property AgePerk1 autoPerk property AgePerk2 autoPerk property AgePerk3 autoint property Stage autoEvent OnInit()RegisterForUpdateGameTime(1)EndEventEvent OnUpdateGameTime()float TimeOfDay = (GameHour.Getvalue())float CurrentAge = (PlayerAge.Getvalue())float DaysPassed = (GameDaysPassed.Getvalue())if (TimeOfDay == 0)ActorBase PlayerBase = Game.GetPlayer().GetBaseObject() as ActorBaseRace PlayerRace = PlayerBase.GetRace()float DayCount = (DaysPassed / 356)float Age = (CurrentAge + DayCount)PlayerAge.SetValue(Age)Debug.Notification("A new day has come. You are now " + PlayerAge.GetValue() + " years old.") If (PlayerRace == "Redguard" || "Imperial" || "Nord") If (Age <= 40) && (Stage == 0) Stage += 1 elseif (Age >= 41) && (Age <= 60) && (Stage == 1) Stage elseif (Age >= 61) && (Stage == 2) Stage += 1 elseif (Age == 100) && (Stage == 3) UnregisterForUpdateGameTime() endif endif endif EndEventWhat this script is intended to do is update the PlayerAge variable I created in the Global section every day at 0 (GameHour). It retrieves the game days passed and divides them by the amount of days in a year (in this instance, 365) and adds it to the PlayerAge.
The problem is simple. It doesn't update the Global Variable and doesn't update at 0 (GameHour).
Could someone that is quite familiar with Papyus take a quick peak at this code and give me some pointers.
All the best!

