Jump to content

Recommended Posts

Posted (edited)
  On 2/13/2012 at 9:15 PM, Budz42 said:

Should be

Form.UnregisterForUpdateGameTime()

And of course you'll need to match it with

 

Form.RegisterForUpdateGameTime(.25)

 

*Sigh* It fixed that one error, and has given me two more (Well, the same error twice)

 

 

  Reveal hidden contents

 

 

And the error is

 

C:\Program Files\The Elder Scrolls V Skyrim\Data\Scripts\Source\temp\Hunger.psc(10,7): cannot call the member function RegisterForUpdateGameTime alone or on a type, must call it on a variable

C:\Program Files\The Elder Scrolls V Skyrim\Data\Scripts\Source\temp\Hunger.psc(23,13): cannot call the member function UnregisterForUpdateGameTime alone or on a type, must call it on a variable

No output generated for Hunger, compilation failed.

 

 

Also, thanks again for your help so far. I am really obliged to you guys :D

Edited by GomuGomu64
Posted

Form is a general type, you need to actually have a form object.

 

I'm not sure but if you don't put anything before Register/UnregisterForUpdateGameTime it will implicitly use the current script. You can try like Hunger.UnregisterForUpdateGameTime().

Posted (edited)

Looking at Creationkit.com you should get rid of the unregister line.

 

@Crestfall

The custom script Hunger isn't a script library and thus will put out an error. The Quest script library doesn't handle game time and so Form would be the only plausible thing to use. Should you try to use it as an extension of the main script that you're using, then get rid of the prefix.

Edited by Budz42
Posted
  On 2/13/2012 at 9:38 PM, Crestfall said:

Form is a general type, you need to actually have a form object.

 

I'm not sure but if you don't put anything before Register/UnregisterForUpdateGameTime it will implicitly use the current script. You can try like Hunger.UnregisterForUpdateGameTime().

 

Egh. It gave the same errors as before.

 

Sheesh. What started out as a simple variable changer has become so complicated. I much prefer Lua than to papyrus XD

Posted

Heh. I've always wanted to learn C++, but I can't find a good book/site that teaches me it....Feel free to recommend one XD

 

I must ask (Again with the questions! Does this guy ever shut up?), do you know what might be causing that error? I'm at your mercy XD

Posted (edited)

Don't put Form.UnregisterForUpdateGameTime, just put UnregisterForUpdateGameTime. As a suggestion, I think its actually UnregisterforUpdateGameTime, at least it is that way in the script I'm looking at.

 

EDIT: Also, how long is it supposed to take to reach death? At the moment I think it will take about 25 seconds to die from hunger :D.

Edited by WiseMan999
Posted

...I see what you mean. I'll make it that it goes down every hour. Make it take a few days to die :3

 

By the way, thanks for that. It compiled!

 

Time to see if it works >:3

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...