record date

hi, is there an easy way to record the current date in a game.
currently using 3 table values for day,month,year which is difficult to assimilate into games in chronological order.
any ideas??

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited October 2013

    Hi @rob*m It's not difficult to "assimilate into games in chronological order" (although I'm not quite sure what you mean by that anyhow...)

    The only hiccup is the US way of presenting a date with the UK way, unless that's what you meant anyway... so you might want to consider using a boolean for the user to make a choice...

    But the stuff in the Display text is no problem:

    For the UK: (and possibly Canada, etc)
    Display Text game.Clock.Day.." / "..game.Clock.Month .." / ".. game.Clock.Year

    For the US:
    Display Text game.Clock.Month .." / "..game.Clock.Day.." / ".. game.Clock.Year

    Then you can save the three elements to attribute; use 3 Save Attribute behaviours to save the dates if required, and 3 Load Attribute behaviours to return that previous date if needed.

    Hope that helps.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • rob*mrob*m Member Posts: 5
    Hi gyroscope,
    Sorry for the ambiguity.I have used Display Text as you mentioned to display date on screen. But i need to record dates that events occurred. Then search the dates to find the first time an event occurred. I do not know how to record the date as a single entity, only in 3 pieces which makes it challenging although not impossible to recall. was just hoping that was missing something and there was an easy way to do this.
  • mounted88mounted88 Member Posts: 1,113
    Not sure if this would work but you might be able to make a save for dates and have then be saved to a table, then later on users can search and it would draw them from the table.

    Like I said just a suggestion not sure if it will work.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    edited October 2013
    You could calculate the number of days since Jan 1, 1AD and use that as a standard of measurement. For example today might be day 73556 and tomorrow might be 73557.
Sign In or Register to comment.