1. GET SMOGON SHIRTS HERE! First time ever. Limited time only & next time the design will be different, so get it while you can!
  2. New to the forums? Check out our Mentorship Program!
    Our mentors will answer your questions and help you become a part of the community!
  3. Welcome to Smogon Forums! Please take a minute to read the rules.

Programming Mass Damage Calculators

Discussion in 'Technical Projects' started by Honko, Sep 4, 2011.

  1. Honko

    Honko
    is a Programmeris a Tiering Contributoris a Contributor to Smogon

    Joined:
    Dec 6, 2009
    Messages:
    1,172
    Offensive Coverage Calculator (for sweepers)
    Defensive Coverage Calculator (for walls)

    Damage Calculator (1v1)

    Do you ever wish you could see how much damage a Pokemon can do to every Pokemon in a tier with one moveset? Do you want to be able to see exactly which Pokemon can avoid being 2HKOed by CB Haxorus at a glance? Or which UU Pokemon is the safest switch-in to a +2 Nasty Plot Azelf?

    This calculator includes every currently uploaded Smogon set. Pick your attacker, tweak the Nature/EVs/moves/etc to fit your needs, and click "Go!" to see a table with the damage output against every set of every Pokemon on the site (in the tiers you select). This should be especially useful for people writing analyses or considering an offensive set's viability: you just put the set in and immediately see how it fares against the established metagame.

    Example (open)
    [​IMG]


    Virtually every relevant item, ability, and (viable) move is included. You'll notice, for example, that RestTalk Gyarados has [Intimidate] next to his name. This means that calculation takes into account that Haxorus will be at -1 if Gyarados switches in. If you scrolled further down, you'd find another RestTalk Gyarados entry without [Intimidate], showing the (higher) damage Haxorus would do if it switched into Gyarados instead, avoiding the -1. The same is true for things like Air Balloon and Multiscale; there's an entry for the Pokemon with the balloon and another one for when it's popped.

    The sets are pulled straight from Smogon's analyses using a separate script I will run manually whenever I notice there's been some new stuff uploaded. At the moment, most of the sets onsite are geared towards OU, but once all the UU and Ubers stuff can be uploaded, the calculator will take into account which tier each set was meant for.

    There's one major problem with this program: it does not work on Internet Explorer. I used this project to familiarize myself with JavaScript, and I wrote most of it while I was on vacation with virtually no internet. By the time I learned that IE has stricter standards, most of the work was already done, and I'm not really keen on going back and rewriting everything to conform to a browser that I never use. It works on Firefox, Chrome, and Opera, and for now that's good enough for me.

    If you have any questions, or if you notice anything wrong/missing, be sure to let me know. There's obviously a lot of possible combinations here, meaning it would be impossible for me to test everything on my own, so there's almost certainly a few things I missed.

    UPDATE: The "All vs One" defensive calculator is now up as well! It works essentially the same way, except the obvious difference that you're now customizing the defender instead. Check it out!

    UPDATE AGAIN: I've added a 1v1 version of the calculator so you can tweak both the attacker and the target to get the calculation exactly right. Check it out!
    Flamer and CyberWolf like this.
  2. Lady Salamence

    Lady Salamence
    is a Smogon Social Media Contributor Alumnusis a Forum Moderator Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnus

    Joined:
    Aug 4, 2010
    Messages:
    3,961
    Awesome, Honko. Just awesome.

    ddance haxorus vs

    [​IMG]

    ^.^ made my day
  3. Fatecrashers

    Fatecrashers acta est fabula
    is a Site Staff Alumnusis an Artist Alumnusis a Super Moderator Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Sep 24, 2007
    Messages:
    4,997
    [​IMG]

    incredible tool honko
  4. V0x

    V0x o:
    is an Artist Alumnusis a Forum Moderator Alumnusis a Contributor Alumnus

    Joined:
    Oct 16, 2010
    Messages:
    1,903
    hahahahaha

    this is too amazing. Now I won't need to open an excel file to run damage calcs. or forget something that walls me. I need to go make a team now


    EDIT: would there be a way to add more Pokemon in one window for easier comparison and stuff?
  5. M Dragon

    M Dragon The north wind
    is a Tournament Directoris a Forum Moderatoris a Community Contributoris a Tiering Contributoris a Tutor Alumnusis a Battle Server Moderator Alumnusis Smogon Frontier's Arena Tycoonis the Smogon Tour Season 17 Champion
    Moderator

    Joined:
    Jun 12, 2008
    Messages:
    1,562
    Incredible.
    Great job
  6. Paradoxus

    Paradoxus

    Joined:
    Apr 3, 2011
    Messages:
    802
    Boss shit.

    I put in Zwelious, slapped a Choice Band on it, gave it +6, OHKOd everything but Physically defensive Quagsire.
  7. Professor Lamb

    Professor Lamb

    Joined:
    Oct 4, 2010
    Messages:
    187
    Wow, this is amazing. I am enjoying this consistent flow of high quality programs being contributed.

    Edit: Er, where is Shell Smash?
  8. Stellar

    Stellar
    is a member of the Site Staffis a Smogon Social Media Contributoris a Super Moderatoris a Community Contributoris a Battle Server Admin Alumnusis a Researcher Alumnusis a CAP Contributor Alumnusis a Contributor Alumnusis a SPL Winner
    Orange Islands

    Joined:
    Jul 4, 2008
    Messages:
    3,668
    This is really, really great. Thank you so much.
  9. Honko

    Honko
    is a Programmeris a Tiering Contributoris a Contributor to Smogon

    Joined:
    Dec 6, 2009
    Messages:
    1,172
    That would indeed be awesome, and shouldn't be too hard. The only real trouble is running out of screen space. I'll see what I can do.

    Only damaging moves will show up on the sets, but you can easily simulate a Shell Smash by changing your attacker's boosts from +0 to +2.

    Everyone else: Thanks, glad you like it!
  10. Myrmidon

    Myrmidon

    Joined:
    Sep 26, 2007
    Messages:
    134
    at the risk of sounding like I'm trolling, Seismic Toss and Night Shade aren't implemented :P

    it sounds silly, but I might like to see how a Blissey's Seismic Toss might fare VS Ice Beam or Flamethrower as an attacking option.
  11. Honko

    Honko
    is a Programmeris a Tiering Contributoris a Contributor to Smogon

    Joined:
    Dec 6, 2009
    Messages:
    1,172
    Good point, I've added them now.
  12. Tomahawk

    Tomahawk Fuck you, pay me
    is a Team Rater Alumnus
    Mentor

    Joined:
    Oct 2, 2010
    Messages:
    2,240
    Nice job Honko :)

    Edit: Honkalculator XD

    Edit2: Wow, the only Pokemon not 2HKOed by NP Thundurus is SpDef Quagsire.
  13. Delko

    Delko
    is a Tutor Alumnusis a Team Rater Alumnusis a Super Moderator Alumnusis a Battle Server Moderator Alumnus
    Mentor

    Joined:
    Sep 7, 2009
    Messages:
    3,333
    Wow, good job!
  14. religiousjedi

    religiousjedi Destiny likes to use #The in everything.
    is a Forum Moderatoris a Contributor to Smogon
    Moderator

    Joined:
    Oct 9, 2010
    Messages:
    1,788
    Honko, this is pure win! Hopefully you can find a way to get that All vs. One damage calculator up, but regardless, this is a great tool for people writing analyses or team building!
  15. Hipmonlee

    Hipmonlee Have a rice day
    is a Smogon IRC AOp Alumnusis a Super Moderator Alumnusis a Contributor Alumnusis a Battle Server Moderator Alumnusis a Past WCoP Winner

    Joined:
    Dec 19, 2004
    Messages:
    7,336
    Comprehensive list of all the pokemon on Smogon that cannot be 2hkoed by CB Rampardos (with headsmash, outrage, eq, zen headbutt):
    Groudon (Support) Outrage 36.38 - 42.82% Head Smash 33.66 - 39.85%
    Hippowdon (Physical Wall) Outrage 39.28 - 46.42% Head Smash 36.66 - 43.33%
  16. Guyguypants

    Guyguypants

    Joined:
    Oct 3, 2010
    Messages:
    51
    Modest Choice Specs Solar Power Charizard, after being baton passed a Nasty Plot, with the moveset
    - Fire Blast
    - Solar Beam
    - HP Ice
    - Focus Blast
    0HKO's everything in the game after stealth rock :D
  17. Xav

    Xav

    Joined:
    Nov 30, 2009
    Messages:
    785
    This is amazing, thanks so much Honko. This will really help with my team building.
  18. kmuffinman

    kmuffinman

    Joined:
    Jul 12, 2011
    Messages:
    169
    This should be put on the Smogon front page along with the Smogon damage calculator, good work!
  19. Maxb

    Maxb

    Joined:
    Aug 9, 2010
    Messages:
    57
    Amazing tool! Will be a great help.
  20. Honko

    Honko
    is a Programmeris a Tiering Contributoris a Contributor to Smogon

    Joined:
    Dec 6, 2009
    Messages:
    1,172
  21. Oglemi

    Oglemi The Legend of Oglemi: The Wiener Waker
    is a Tournament Directoris a member of the Site Staffis a Community Contributoris a Pokemon Researcheris a Contributor to Smogonis a Smogon Media Contributoris an Administratoris a Tiering Contributor Alumnus
    C&C Leader

    Joined:
    Oct 13, 2009
    Messages:
    8,855
    /me goes and calcs

    /me goes and makes team with Hitmonlee
  22. Chou Toshio

    Chou Toshio @Fighting Necktie
    is a Forum Moderatoris a Community Contributoris an Artist Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis a Battle Server Moderator Alumnus
    Moderator

    Joined:
    Aug 16, 2007
    Messages:
    8,249
  23. elDino

    elDino Deal With It.
    is a Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Jan 9, 2010
    Messages:
    1,490
    Hey you posted it!
    Excellent job Honko, it was a pleasure to test out the Honkalculator!
  24. Chieliee

    Chieliee

    Joined:
    Sep 26, 2010
    Messages:
    1,811
    Man, this is amazing. Really
  25. blarajan

    blarajan holla ladies #£14000 #bling #sparkle #bitchesonmydick
    is a Smogon Social Media Contributoris a Forum Moderatoris a Tiering Contributoris a Site Staff Alumnusis a Community Contributor Alumnusis a Contributor Alumnusis a Battle Server Moderator Alumnus
    Little Cup Co-Leader

    Joined:
    Aug 29, 2010
    Messages:
    3,732
    Fucking brilliant. This is awesome. Will make analyses so much better.

Users Viewing Thread (Users: 0, Guests: 0)