Jump to content

Scripting problems...


Thingamajig

Recommended Posts

Hi everyone.

 

edit ----

Ok, all i need now is:

 

how would i make a script so that an item is removed from a container every 30 minutes of IN-GAME time? (has to be timescale friendly ie - will remove the item every in-game 30 minutes regardless of games timescale)

 

Really this needs to be ran as a quest script.

 

Thanks for all who help.

Edited by Thingamajig
Link to comment
Share on other sites

Just done some research and it looks like GameHour might work, according to the geck wiki "While GameHour and GameDay are defined as short, they return float values. For instance, at 2:30 AM, GameHour has the value 2.5. "

 

http://geck.bethsoft.com/index.php/Special_Variables

 

So, this is untested guesswork but something along these lines might be worth a try...

 

float timer

begin gamemode

if GameHour - timer > 0.5

removeitem

set timer to GameHour

endif

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

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