Results 1 to 30 of 35

Thread: Mafia Phase Timer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Bureaucratically Efficient Senior Member TinCow's Avatar
    Join Date
    Mar 2004
    Location
    Washington, DC
    Posts
    13,729

    Default Mafia Phase Timer

    I have added a new feature to the forums to make it easier for players to know when mafia game phases are over. It is a bbcode timer which counts down to any date and time specified. The bbcode format is [timer] and you can enter it manually, or click the timer icon on the advanced editor ().

    The bbcode must be formatted in the following manner:

    [TIMER=M/D/YYYY H:MM AM/PM ZONE; TIMEUP PHRASE][/ TIMER]

    Where

    • M = The Month number, with or without a 0. So, for August, either 8 or 08.
    • D = The Day number, with or without a 0. So, for the fifth day, either 5 or 05.
    • YYYY = The Year in full four digit number format
    • H: The Hour, with or without a 0. So, for the seventh hour, either 7 or 07.
    • MM = The Minute, so quarter past the hour would be 15, half past would be 30, and on the hour would be 00.
    • AM/PM = AM or PM
    • ZONE = Time Zone of the deadline. It is very important that you put this in. If you do not, the timer will display the local time for each person viewing it, which means people in different parts of the world will see different (and incorrect) times. The time zone codes accept all of the usual zone abbreviations, such as UTC, GMT, EST, EDT, PST, PDT, etc. You can also use UTC referential times, such as UTC-1, UTC-2, UTC+7, etc.
    • TIMEUP PHRASE = Whatever text you want it to display when the timer is finished, such as "Day Phase Over" or "Night Phase Over".

    So, to create a timer counting down to a Night Phase which ends on August 24, 2015 at 5pm, GMT, I would create the following bbcode:

    [TIMER=8/24/2015 5:00 PM GMT; Night Phase Over][/ TIMER]

    and it looks like this once I removed that extra space from the bbcode:



  2. #2
    Peerless Senior Member johnhughthom's Avatar
    Join Date
    Sep 2007
    Location
    Looking for the red blob of nothingness
    Posts
    6,344

    Default Re: Mafia Phase Timer

    That is awesome TC, great work.

  3. #3
    ridiculously suspicious Member TheLastDays's Avatar
    Join Date
    Apr 2011
    Location
    Right behind you.
    Posts
    2,116

    Default Re: Mafia Phase Timer

    That's cool. Going to try that right away with the next phase. Great work!
    I hear the voice of the watchmen!

    New Mafia Game: Hunt for The Fox

  4. #4
    Illuminated Moderator Pogo Panic Champion, Graveyard Champion, Missle Attack Champion, Ninja Kid Champion, Pop-Up Killer Champion, Ratman Ralph Champion GeneralHankerchief's Avatar
    Join Date
    Mar 2006
    Location
    On a pirate ship
    Posts
    12,546
    Blog Entries
    1

    Default Re: Mafia Phase Timer

    I love having Tech Admins interested in the Gameroom.
    "I'm going to die anyway, and therefore have nothing more to do except deliberately annoy Lemur." -Orb, in the chat
    "Lemur. Even if he's innocent, he's a pain; so kill him." -Ignoramus
    "I'm going to need to collect all of the rants about the guilty lemur, and put them in a pretty box with ponies and pink bows. Then I'm going to sprinkle sparkly magic dust on the box, and kiss it." -Lemur
    Mafia: Promoting peace and love since June 2006

    Quote Originally Posted by TosaInu
    At times I read back my own posts [...]. It's not always clear at first glance.


  5. #5
    Member Member Tratorix's Avatar
    Join Date
    Jun 2007
    Location
    Nova Scotia, Canada
    Posts
    1,784

    Default Re: Mafia Phase Timer

    Wow this rules. Now if you can make one that automatically keeps a vote tally we'll be set.

  6. #6
    Bureaucratically Efficient Senior Member TinCow's Avatar
    Join Date
    Mar 2004
    Location
    Washington, DC
    Posts
    13,729

    Default Re: Mafia Phase Timer

    Quote Originally Posted by Tratorix View Post
    Now if you can make one that automatically keeps a vote tally we'll be set.
    I've actually thought about that, but it would be impossible to have it take into account things like misspellings, name abbreviations (i.e. ATPG), nicknames (i.e. Strawberry), etc. The only way it could work is if everyone used the exact same format to vote and if they all spelled out every name precisely and in full. That seems like trying to enforce that would cause more problems than it would solve.


  7. #7
    Bureaucratically Efficient Senior Member TinCow's Avatar
    Join Date
    Mar 2004
    Location
    Washington, DC
    Posts
    13,729

    Default Re: Mafia Phase Timer

    That's because were currently in daylight savings time. Use CDT.


  8. #8
    winston 4 champs Member Zack's Avatar
    Join Date
    Apr 2010
    Posts
    5,081

    Default Re: Mafia Phase Timer

    Quote Originally Posted by TinCow View Post
    That's because were currently in daylight savings time. Use CDT.
    Oh, duh.

  9. #9
    Bureaucratically Efficient Senior Member TinCow's Avatar
    Join Date
    Mar 2004
    Location
    Washington, DC
    Posts
    13,729

    Default Re: Mafia Phase Timer

    CST is GMT-6, CDT is GMT-5
    EST is GMT-5, EDT is GMT-4


  10. #10
    Knight of Flowers Member Diamondeye's Avatar
    Join Date
    Nov 2009
    Posts
    2,288
    Blog Entries
    12

    Default Re: Mafia Phase Timer

    Quote Originally Posted by TinCow View Post
    We must always be grammatically correct.
    I concur! Civilization is not my only fanaticism .
    If God is great, and if God is good, why can't he change the hearts of men?"
    -Tom Waits, "The Road to Peace"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO