[SCRIPT] OC Weights Under Roles | Tools & Userscripts | TORN

[SCRIPT] OC Weights Under Roles

​

    • JohnNash [3760375]
    • Role: Civilian
    • Level: 71
    • Posts: 244
    • Karma: 355
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 22:22:13 - 31/08/25 (1 year ago)
    |
    Last replied 12:24:10 - 01/10/26 (2 days ago)

    Hey fellow criminals

     

    I’ve worked on a small quality-of-life userscript for Organized Crimes 2.0.

    The script adds a “Weight” box under each role in the OC panel, showing how important each role is for that crime.

    Example

    372b1e53-8396-475c-be7a-cd199d35e3e6-3760375.png

     

     

    How it works

    • The script checks the OC name.

    • If the OC has weights configured, each role box will get an extra line below showing its weight.

    • If there’s no data for that OC/role, nothing is added.

    Credits

    • Huge thanks to Emforus for organizing all the OC information on his site: CrimesHub.

    • And to joecappa for turning that data into a visual forum guide, which sparked the idea to make this into a userscript.

    • And now to Allenone for the amazing API to support the script.

    Installation

    1. Install Tampermonkey (or any other userscript manager).

    2. Add the script from this link: OC Weights Under Roles Script

     

    Hope you like it! 

    Last edited by JohnNash on 10:13:09 - 02/09/25 (1 year ago)
    • Tactical_Grinch [2029956]
    • Role: Civilian
    • Level: 100
    • Posts: 475
    • Karma: 2,023
    • Last Action: 2 hours
      • 2
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:41:30 - 31/08/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Disregard, reviewed my data, i was inaccurate. Cool script. Thank you!

    Last edited by Tactical_Grinch on 23:46:33 - 31/08/25 (1 year ago)
    • Allenone [2033011]
    • Role: Civilian
    • Level: 100
    • Posts: 856
    • Karma: 2,777
    • Last Action: 41 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 01:14:30 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Feelsbadman.

     

    cool script

    • Emforus [2535044]
    • Role: Wiki Contributor
    • Level: 100
    • Posts: 2,085
    • Karma: 26,042
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:12:49 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Hello, appreciate the shoutout, small correction though:

     

    Huge thanks to Emforus for collecting and organizing all the raw OC information on his site: CrimesHub.

     

    Data collection wasn't my doing, it used to be ages ago when the entire thing was manual, but then Allenone automated it and I've been relying on it since. All I do nowadays is organizing things and making them look pretty.

    Same as above, role weights currently available in CrimesHub were done with the assistance of Allenone once that part was also automated.

     

    It'd be nice if you could give him a shout as well :p

     

     

    In any case, cool script!

    ---------------------------------------------------------------

    Contribute to Crimes 2.0 research!

    ---------------------------------------------------------------

    Check out my interactive OC2.0 maps project!

    • Serj [3023174]
    • Role: Civilian
    • Level: 94
    • Posts: 85
    • Karma: 47
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:37:06 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Amazing idea!! will test the script out

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 76
    • Posts: 2,417
    • Karma: 2,650
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:13:16 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Unfortunately the weights for the "Imitator" role for all OCs doesn't show.

    fcdf67e3-1afe-4582-8be4-7784637883cf-1701621.png

    Your script, and CrimesHub lists this as "Impersonator" so perhaps the role was renamed?

    Also, your figures are not up to date:
    47bea5ff-7b96-4d0c-8827-1d5e09316897-1701621.png
    576e8faa-7aca-4fe8-9c85-52aeafbd43bc-1701621.png

     

    Perhaps @Emforus could provide the weight roles on a plain text / JSON webpage, that your script could retrieve to ensure the figures are always up to date.

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 76
    • Posts: 2,417
    • Karma: 2,650
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:14:20 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Emforus [2535044]

    Hello, appreciate the shoutout, small correction though:

     

    Huge thanks to Emforus for collecting and organizing all the raw OC information on his site: CrimesHub.

     

    Data collection wasn't my doing, it used to be ages ago when the entire thing was manual, but then Allenone automated it and I've been relying on it since. All I do nowadays is organizing things and making them look pretty.

    Same as above, role weights currently available in CrimesHub were done with the assistance of Allenone once that part was also automated.

     

    It'd be nice if you could give him a shout as well :p

     

     

    In any case, cool script!

    Do you think you could provide the OC / Roles in a plain text / JSON format, on crimeshub, that JohnNash could retrieve to ensure all figures are live?

    • BorrFedick [3470183]
    • Role: Civilian
    • Level: 74
    • Posts: 189
    • Karma: 57
    • Last Action: 29 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:00:41 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Awesome work, hope you keep at this and updates with current weights etc. Works well on TornPDA

    Join the Fam:

    Aotearoa Family - Warmongers, dedicated warring faction (80% RW and 100% OC payout) 💪

    Aotearoa Family - Criminals, OC focused crime faction (80% OC payout) 🚓

     

    Work for the Fam:

    Sex Toys R Us - Adult Novelty 🔥

    • Allenone [2033011]
    • Role: Civilian
    • Level: 100
    • Posts: 856
    • Karma: 2,777
    • Last Action: 41 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:32:10 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Unfortunately the weights for the "Imitator" role for all OCs doesn't show.

    fcdf67e3-1afe-4582-8be4-7784637883cf-1701621.png

    Your script, and CrimesHub lists this as "Impersonator" so perhaps the role was renamed?

    Also, your figures are not up to date:
    47bea5ff-7b96-4d0c-8827-1d5e09316897-1701621.png
    576e8faa-7aca-4fe8-9c85-52aeafbd43bc-1701621.png

     

    Perhaps @Emforus could provide the weight roles on a plain text / JSON webpage, that your script could retrieve to ensure the figures are always up to date.

    I'll look into adding it to my API.

     

    Its more within my scope than Emforus's

    • Allenone [2033011]
    • Role: Civilian
    • Level: 100
    • Posts: 856
    • Karma: 2,777
    • Last Action: 41 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:53:05 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Unfortunately the weights for the "Imitator" role for all OCs doesn't show.

    fcdf67e3-1afe-4582-8be4-7784637883cf-1701621.png

    Your script, and CrimesHub lists this as "Impersonator" so perhaps the role was renamed?

    Also, your figures are not up to date:
    47bea5ff-7b96-4d0c-8827-1d5e09316897-1701621.png
    576e8faa-7aca-4fe8-9c85-52aeafbd43bc-1701621.png

     

    Perhaps @Emforus could provide the weight roles on a plain text / JSON webpage, that your script could retrieve to ensure the figures are always up to date.

    @OP Added /api/GetRoleWeights to my API. You are free to utilize it, and maybe familiarize yourself with some of my other endpoints to make your script dynamic and future proof so it doesn't require future maintenance for your hardcoded values.

     

     

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 76
    • Posts: 2,417
    • Karma: 2,650
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:19:10 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Unfortunately the weights for the "Imitator" role for all OCs doesn't show.

    fcdf67e3-1afe-4582-8be4-7784637883cf-1701621.png

    Your script, and CrimesHub lists this as "Impersonator" so perhaps the role was renamed?

    Also, your figures are not up to date:
    47bea5ff-7b96-4d0c-8827-1d5e09316897-1701621.png
    576e8faa-7aca-4fe8-9c85-52aeafbd43bc-1701621.png

     

    Perhaps @Emforus could provide the weight roles on a plain text / JSON webpage, that your script could retrieve to ensure the figures are always up to date.

    Allenone [2033011]

    @OP Added /api/GetRoleWeights to my API. You are free to utilize it, and maybe familiarize yourself with some of my other endpoints to make your script dynamic and future proof so it doesn't require future maintenance for your hardcoded values.

     

     

    That is awesome. Thanks Allenone.

     

    @OP please utilise the API for up to date figures :)

    • JohnNash [3760375]
    • Role: Civilian
    • Level: 71
    • Posts: 244
    • Karma: 355
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:11:28 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    I've launched a new version with some fix's on the weights of some roles.

     

    @Allenone, what is the source of your API?

    • Allenone [2033011]
    • Role: Civilian
    • Level: 100
    • Posts: 856
    • Karma: 2,777
    • Last Action: 41 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:14:33 - 01/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    JohnNash [3760375]

    I've launched a new version with some fix's on the weights of some roles.

     

    @Allenone, what is the source of your API?

    I'm my own source brother.

     

    I know you're new to the space- but I'm the person who collects and maintains all of the OC data.

    • JohnNash [3760375]
    • Role: Civilian
    • Level: 71
    • Posts: 244
    • Karma: 355
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:36:47 - 02/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Added @Allenone API to the script :)

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 76
    • Posts: 2,417
    • Karma: 2,650
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:31:22 - 02/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    JohnNash [3760375]

    Added @Allenone API to the script :)

    Thank you!

     

    It's a win win as you wont need to manually update the values.

    • HLZZ [3129515]
    • Role: Civilian
    • Level: 96
    • Posts: 2,963
    • Karma: 500
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 02:28:58 - 04/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Thank you so much!!! Very useful plugin

    https://profileimages.torn.com/06b1f895-ea7a-4665-8b91-eef55382023a-3129515.gif?v=1940629196397

    • KaitoK [3913926]
    • Role: Civilian
    • Level: 60
    • Posts: 99
    • Karma: 70
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:34:59 - 22/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Does the free script work? I’ve downloaded it on safari and it just opens as a blank screen with tamper monkey_latest data 1.3mb on it. I’m new to adding scripts. 

    • Fiernaq [2853517]
    • Role: Civilian
    • Level: 92
    • Posts: 431
    • Karma: 228
    • Last Action: 10 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:03:41 - 22/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Now this is useful! Perk_Ryan's tables were invaluable early on but it's nice to see an automatically updating (thanks to Allenone's API) script that shows it right on the page you're looking at.

     

    Feedback:

    1. Could this be merged with the OC Success Chance script (two different authors but perhaps something could be worked out)
    2. On TornPDA, it takes up a lot of screen real estate. Makes scrolling the list of OCs a little more awkward. It's not terrible but I'm wondering if you couldn't merge this in with a smaller font somewhere on the existing space? The OC Success Chance script referenced earlier put its number in a small, unused area and that worked really well.

     

    Here's a screenshot for anyone who wants to see it working on TornPDA. 

    ed663406-02cb-4f54-846f-41b0187583f8-2853517.jpg

    • Allenone [2033011]
    • Role: Civilian
    • Level: 100
    • Posts: 856
    • Karma: 2,777
    • Last Action: 41 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 02:04:47 - 27/12/25 (9 months ago)
    Post link copied to clipboard Copy post link

    bump.

     

    Should be updated with role weights for Crane Reaction now :) 

    • Caio [2488372]
    • Role: Civilian
    • Level: 100
    • Posts: 1,103
    • Karma: 787
    • Last Action: 36 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 01:31:15 - 18/01/26 (8 months ago)
    Post link copied to clipboard Copy post link

    Bump; fantastic script, hope it keeps updated when new ocs get released and data confirmed etc!

Reply
Thread Title: