Accessing the game's clock?

Discussion in 'General Modification' started by Sitra Achara, Nov 18, 2006.

Remove all ads!
  1. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,613
    Likes Received:
    537
    Is there a way to tell the time in ToEE inside a script? As you might guess, this is to circumvent the timevent_add issue.
     
  2. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    The answer is yes. I am working on a system to replace, or at least supplement, the timevents. The reason I am not sharing this knowledge just yet is because I want to have a standardized system for using it in place before a bunch of modders start adding their own little versions here and there. It's better if we have one standardized system, with one event_queue, for all of us to use.
     
    Last edited: Nov 18, 2006
  3. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,613
    Likes Received:
    537
    Well, I can understand that. I'd probably be loathe to replace the timing system in my mods if I finally got one working right by myself :) I'm just curious, though, are you also using global time for this?
     
  4. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    Define what you mean by "global time".
     
  5. Shiningted

    Shiningted I want my goat back Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,655
    Likes Received:
    352
    Came across these in the string dump while looking for something else:

    102A51D4: 'time_game_in_years',0
    102A51E8: 'time_game_in_days',0
    102A51FC: 'time_game_in_months',0
    102A5210: 'time_game_in_minutes',0
    102A5228: 'time_game_in_hours2',0
    102A523C: 'time_game_in_hours',0
    102A5250: 'time_game_in_seconds_float',0
    102A526C: 'time_game_in_seconds',0
    102A5284: 'time_game_in_seconds_elapsed',0
    102A52A4: 'time_in_game_in_days',0
    102A52BC: 'time_in_game_in_seconds',0
    102A52D4: 'time_elapsed',0
    102A52E4: 'time_in_game',0

    Thought they might be of use.
     
Our Host!