I used a barebones quest to make my script initialise when Skyrim is played, but it just doesn't seem to work.
http:// skyrim. nexusm ods.co m/downloa ds/file.php?id= 9611
Remove the spaces, as I cannot post links for some reason.
I would prefer to be shown how to fix it, rather than just to have the fix given to me (Although if the fixes were detailed alongside the file, I would like that :3 ) so I could learn how to do it properly next time.
Thanks in advance!
...Oh, and here is the script (If it being on its own is any use)
Edit: Didn't seem to have posted the script. Here it is :
scriptName Hunger extends Questint Property fAAGGHunger = 100 auto ;This is the script default when you start a new game or start the plugin.Function AAFunction()debug.MessageBox("Hunger plugin loaded!")endFunctionFunction AAAFunction() RegisterForUpdateGameTime(0.25)endFunctionEvent OnUpdateGameTime() if fAAGGHunger > 1 fAAGGHunger -= 1 ; -= means that Hunger = Hunger - 1 elseif fAAGGHunger == 1 ; This means that the code checks if the value is at 1 Game.GetPlayer().ModActorValue("health", 0) debug.MessageBox("Oh dear. You didn't eat, so you died. svcks to be you!") elseif fAAGGHunger <=10 debug.MessageBox("Ah, your stomach beckons for bacon. Might be a good idea to eat. You know, being hungry and all.") endif UnregisterForUpdateGameTime()endEventEvent OnActivate(ObjectReference akActionRef) if fAAGGHunger == 99 fAAGGHunger += 1 debug.MessageBox("Your belly is full, your mouth tastes fantastic. Life is good.") elseif fAAGGHunger == 100 debug.MessageBox("You have already eaten! You don't want to get indigestion, now.") elseif fAAGGHunger == 50 debug.MessageBox("The gurgling has stopped, but you probably eat more. You fat pig.") endifendEvent
