[Script] Torn: Hospital Time | Tools & Userscripts | TORN

[Script] Torn: Hospital Time

    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 22:33:56 - 24/03/21 (5 years ago)
    |
    Last replied 15:28:12 - 12/04/26 (1 month ago)
    UPDATE: August 5th, 2023, There is an updated version 0.4.5 with a fix.

    Are you annoyed that you have to hover over the hospital icon to see how much hospital time you have left and decide which health item to use? Selling losses and want to revive faster? This is for you guys.

    This script adds a small countdown on the item page with time remaining and also highlights the most efficient health item to use.
    If you already use Quick items with TornTools this makes it even easier.





    Get the script now!

    Let me know how it works for you and if it makes your life easier!
    Thanks!
    Last edited by Rescender on 02:54:15 - 06/08/23 (2 years ago)
    • Chi [2487971]
    • Role: Civilian
    • Level: 100
    • Posts: 1,429
    • Karma: 510
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:50:41 - 25/03/21 (5 years ago)
    Post link copied to clipboard Copy post link
    Does this work with the faction armory, or only the items page?
    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:54:55 - 25/03/21 (5 years ago)
    Post link copied to clipboard Copy post link

    Chi [2487971]

    Does this work with the faction armory, or only the items page?
    Thanks for asking! I didn't test it there actually. I'm guessing it won't but would probably be easy enough to make it do that. I'll take a look.
    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:05:25 - 25/03/21 (5 years ago)
    Post link copied to clipboard Copy post link

    Chi [2487971]

    Does this work with the faction armory, or only the items page?
    Updated. It does now.
    • ladymeba [2499340]
    • Role: Civilian
    • Level: 94
    • Posts: 690
    • Karma: 917
    • Last Action: 29 days
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:58:19 - 29/03/21 (5 years ago)
    Post link copied to clipboard Copy post link
    it works :D - the placing of the timer is a littl off...but that is not a game breaker for me - I can see my remaining hosp time and got a swish glowing medical item!

    Simple but effective
    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:45:20 - 29/03/21 (5 years ago)
    Post link copied to clipboard Copy post link

    ladymeba [2499340]

    it works :D - the placing of the timer is a littl off...but that is not a game breaker for me - I can see my remaining hosp time and got a swish glowing medical item! Simple but effective
    Thanks! Yeah, I could probably fix some styling, the timer on mobile is definitely wonky. I mean with the glowing indicator of what item to use, the timer might not even be necessary but I know it's nice to actually see the time for some people. I have a bug to fix as well so maybe i'll look into fixing the style issue.
    • ladymeba [2499340]
    • Role: Civilian
    • Level: 94
    • Posts: 690
    • Karma: 917
    • Last Action: 29 days
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:00:12 - 29/03/21 (5 years ago)
    Post link copied to clipboard Copy post link

    ladymeba [2499340]

    it works :D - the placing of the timer is a littl off...but that is not a game breaker for me - I can see my remaining hosp time and got a swish glowing medical item! Simple but effective

    Rescender [2526540]

    Thanks! Yeah, I could probably fix some styling, the timer on mobile is definitely wonky. I mean with the glowing indicator of what item to use, the timer might not even be necessary but I know it's nice to actually see the time for some people. I have a bug to fix as well so maybe i'll look into fixing the style issue.
    I'll be honest - I would love to have that time displayed on all pages - as it is I have a tab open on the hospital on another screen so I can glance at it... I spend a LOT of time (self imposed) in hospital....lol
    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:53:38 - 29/03/21 (5 years ago)
    Post link copied to clipboard Copy post link

    ladymeba [2499340]

    it works :D - the placing of the timer is a littl off...but that is not a game breaker for me - I can see my remaining hosp time and got a swish glowing medical item! Simple but effective

    Rescender [2526540]

    Thanks! Yeah, I could probably fix some styling, the timer on mobile is definitely wonky. I mean with the glowing indicator of what item to use, the timer might not even be necessary but I know it's nice to actually see the time for some people. I have a bug to fix as well so maybe i'll look into fixing the style issue.

    ladymeba [2499340]

    I'll be honest - I would love to have that time displayed on all pages - as it is I have a tab open on the hospital on another screen so I can glance at it... I spend a LOT of time (self imposed) in hospital....lol
    New update. I think I fixed the styling, for the most part, looks better on mobile for sure. Still just shows on items and faction pages. I'll see if I can make it optionally show on all pages.
    • xanty [1169571]
    • Role: Civilian
    • Level: 100
    • Posts: 2,923
    • Karma: 12,515
    • Last Action: 26 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:29:59 - 05/04/21 (5 years ago)
    Post link copied to clipboard Copy post link
    thumbs up

    yuZ5wBZ.gif

    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:00:01 - 17/06/21 (4 years ago)
    Post link copied to clipboard Copy post link
    Small update pushed, recent updates made it stop working on the faction armory page. Thanks, Chi for letting me know.
    Last edited by Rescender on 23:01:26 - 17/06/21 (4 years ago)
    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:22:23 - 21/07/21 (4 years ago)
    Post link copied to clipboard Copy post link
    New bug fix pushed. The timer wasn't showing valid times.
    Last edited by Rescender on 18:22:35 - 21/07/21 (4 years ago)
    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:44:19 - 04/08/21 (4 years ago)
    Post link copied to clipboard Copy post link
    UPDATE: v0.4.0 Per a user request, you can now set your medical item effectiveness (based on your completed education) with the new settings icon.
    Last edited by Rescender on 16:39:03 - 04/08/21 (4 years ago)
    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:32:46 - 03/08/23 (2 years ago)
    Post link copied to clipboard Copy post link
    UPDATE: August 5th, 2023, There is an updated version 0.4.5 with a fix.
    Last edited by Rescender on 02:54:43 - 06/08/23 (2 years ago)
    • iPunish [1604376]
    • Role: Civilian
    • Level: 75
    • Posts: 242
    • Karma: 84
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:12:26 - 06/08/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Not a bad looking script. I’ve always just pop a morph a fak and back to morph and fak until I’m out. Never really cared if I wasted a few mins of a medical item

    • realmister [1949201]
    • Role: Civilian
    • Level: 100
    • Posts: 593
    • Karma: 729
    • Last Action: 39 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:41:18 - 05/09/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Exactly what the doctor ordered! Thanks!

    Maybe a waste of words and time
    Never a waste of life

    -Uncle Tupelo

    • Mr_Bob [479620]
    • Role: Civilian
    • Level: 100
    • Posts: 862
    • Karma: 800
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:43:54 - 10/09/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Would it be possible to also make this work in the faction armory page?

    6f1638c0-1574-4952-ba55-e6b07ee74bb5-479620.gif?v=1940629196397

    • ThunderBlitz [2684774]
    • Role: Civilian
    • Level: 61
    • Posts: 1,451
    • Karma: 1,121
    • Last Action: 12 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:00:43 - 12/09/23 (2 years ago)
    Post link copied to clipboard Copy post link

    Rescender [2526540]

    UPDATE: August 5th, 2023, There is an updated version 0.4.5 with a fix. Are you annoyed that you have to hover over the hospital icon to see how much hospital time you have left and decide which health item to use? Selling losses and want to revive faster? This is for you guys. This script adds a small countdown on the item page with time remaining and also highlights the most efficient health item to use. If you already use Quick items with TornTools this makes it even easier. [img]https://i.postimg.cc/kDrDNpLS/updated.gif[/img] [url=https://greasyfork.org/en/scripts/423134-torn-hospital-time]Get the script now![/url] Let me know how it works for you and if it makes your life easier! Thanks!
    It doesn't seem to work on TornPDA. Is this likely to happen (just so I know whether to keep it, or not)? :-)

    That time my company hit #1

    Not all changes are for the better. #BeCarefulWhatYouWishFor

    • Rescender [2526540]
    • Role: Civilian
    • Level: 69
    • Posts: 119
    • Karma: 133
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:01:23 - 01/11/23 (2 years ago)
    Post link copied to clipboard Copy post link

    Mr_Bob [479620]

    Would it be possible to also make this work in the [url=https://www.torn.com/factions.php?step=your&search=first#/tab=armoury&start=0&sub=medical]faction armory page[/url]?
    It used to so I may have to look and see what changed for it to stop working there.

    As for TornPDA, I never tested it there or even used TornPDA so I would doubt it works there.
    • Kwack [2190604]
    • Role: Civilian
    • Level: 15
    • Posts: 2,712
    • Karma: 4,117
    • Last Action: 34 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:15:06 - 01/11/23 (2 years ago)
    Post link copied to clipboard Copy post link

    Mr_Bob [479620]

    Would it be possible to also make this work in the [url=https://www.torn.com/factions.php?step=your&search=first#/tab=armoury&start=0&sub=medical]faction armory page[/url]?

    Rescender [2526540]

    It used to so I may have to look and see what changed for it to stop working there. As for TornPDA, I never tested it there or even used TornPDA so I would doubt it works there.
    It wouldn't be too difficult to port to a PDA script, you'd just have to replace the GM_ API with vanilla JS counterparts.

    getvalue/setvalue via localstorage, GM_addStyle by appending a