1. Remember to check the Simple Questions/Simple Answers , Suggestions , Bug Reports and Technical Support threads before posting. If you have something that warrants extended discussion then post a thread, but when in doubt, please use an already existing thread
  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.

NEW: EV spread recommender

Discussion in 'Pokémon Showdown!' started by Zarel, Aug 11, 2012.

  1. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,745
    [Saturday, Aug 11]
    - The teambuilder will suggest EVs and abilities natures. The suggested spread is usually (but not always) [one of] the best - this feature is targeted mainly at casual users. Experienced users might also find it faster to tweak the suggested spread rather than start from scratch.

    It works like this:

    It doesn't have any knowledge of Smogon sets.

    Bulkiness is calculated from a formula that takes into account a pokemon's base HP/Def/SpDef, Leftovers, Protect, healing moves, defense-boosting moves, and a lot of other things.

    Speediness is calculated from a formula that takes into account a pokemon's base Speed, any speed-boosting moves, and any speed-boosting abilities (Speed Boost, Swift Swim...)

    Offensiveness is calculated from a formula that just counts how many attacking moves you have. Bulk-boosting moves, whether they're attacking (Scald, Drain Punch) or not (Cosmic Power, Protect) will give a penalty to offensiveness.

    It compares these three values to get a general role ("Fast Bulky Support" or "Bulky Special Sweeper"). Choice items have their own roles associated with them. Each role has a primary EV stat and a secondary EV stat.

    252 EVs are placed into these two stats, and a target stat value is obtained. If one of these stats is HP and you're running Transform or Substitute, the stat value is optimized down to a Substitute number. In LC (and for Substitute), EVs are removed until we reach the minimum required for the target stat value.

    If Speed was not a primary or secondary EV stat but the Pokemon only needs a few Speed EVs to reach a certain Speed tier, EVs are pulled from your secondary stat.

    If there are any remaining EVs, they're are placed into: Atk or SpA, if you're running an attack of one of these types but they weren't a primary or secondary stat (for instance, if you're a mixed sweeper), otherwise SpD if you're at a Download number, otherwise HP.

    The +stat for your Nature is your primary stat (unless it's HP, in which case it's your secondary stat).

    The -stat for your Nature is -Spe if you're running Gyro Ball or Trick Room, otherwise -Atk if you have no physical moves, otherwise -SpA if you have no special moves, otherwise -Def or -SpD depending on if you have more special bulk or more physical bulk, respectively (-Def is chosen in the case of a tie).​
  2. phoopes

    phoopes The Boss
    is a Battle Server Moderator

    Joined:
    Jul 9, 2011
    Messages:
    1,042
    My Lord, thank you. I always seem to forget to change abilities from the first option. I've ended up with Damp Politoed and Inner Focus(?) Dragonite and others too many times, because I've been an idiot. haha
  3. Relados

    Relados
    is a Battle Server Moderator

    Joined:
    Jul 9, 2012
    Messages:
    973
    This is possibly the single greatest feature of PS aside from being a battle simulator. I hate having to go and recheck my EVs for certain pokemon.
  4. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,745
    Sorry, I mean natures, not abilities. Setting a good default ability will come... later. :/
  5. phoopes

    phoopes The Boss
    is a Battle Server Moderator

    Joined:
    Jul 9, 2011
    Messages:
    1,042
    Oh, don't worry 'bout it. Still, an awesome feature. Though I'm curious... how'd you decide what set to pick for which Pokemon? Because stuff like Dragonite and Jirachi have a bunch of different viable sets.
  6. Relados

    Relados
    is a Battle Server Moderator

    Joined:
    Jul 9, 2012
    Messages:
    973
    I believe it checks movesets and items for certain pokemon. For dragonite, it checks for a moveset that is similar to bulky dragonite it goes bulk, but if it is offensive it gets offensive EVs. Same thing with Jirachi, Volcarona, Tyranitar, the works.

    However, trust his word more than mine. I'm just guessing.
  7. Exclamation!

    Exclamation!

    Joined:
    Dec 21, 2010
    Messages:
    201
    I actually find the suggested EV spread to be a little bit distracting when I'm teambuilding. It's nothing really important, but the ability to turn that feature off would be a plus for me.
  8. alkinesthetase

    alkinesthetase <@dtc> every day with alk is a bad day
    is a Smogon IRC SOp Alumnus

    Joined:
    Nov 8, 2010
    Messages:
    825
    ^ seconded, although I think relados is roughly correct judging by the teams I've got lying around and the spreads being suggested for them

    and another question. I'm looking at my tentacruel and this is the text I see beneath the suggested spread button:
    I'm just curious, but what does this mean? (the suggested spread was 252+ spd / 252 satk / 4 hp. this would seem unusual for tentacruel, but i was running hydro pump/ice beam/rapid spin/tspikes... i guess the use of hydro pump made it think i was getting aggressive with the set) If i had to guess what it meant, i think it's some kind of bulk estimate based on base stats?
  9. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,745
    It doesn't compare to Smogon sets at all - there is no mention of Smogon sets anywhere in the code.

    I've split this thread, and edited the first post to have a summary of how it works: http://www.smogon.com/forums/showpost.php?p=4354600&postcount=1

    Yes, Hydro Pump is indeed what put it over - you can replace it with Scald and watch as its recommended set becomes the Physically Defensive set. :P

    I guess I should lower the bulk threshold for Tentacruel.
  10. phoopes

    phoopes The Boss
    is a Battle Server Moderator

    Joined:
    Jul 9, 2011
    Messages:
    1,042
    Cool beans. Thanks for the explanation behind this. Was wondering what the bulk thing meant myself. Agreeing with Relados, probably one of, if not the best feature on PS right now.
  11. alkinesthetase

    alkinesthetase <@dtc> every day with alk is a bad day
    is a Smogon IRC SOp Alumnus

    Joined:
    Nov 8, 2010
    Messages:
    825
    very cool, very cool. the alg doesn't even come close to approximating my own spreads, but i can't really complain because my spreads are usually pretty weird (112 satk forretress to always deal 50% to 0/4 dnite with hp ice 8D). moreover, it has a good idea of understanding what i want to do with a mon, which is impressive in and of itself. it also notices some key speed tiers (eg recommending 32 speed for a jirachi that's not significantly leaned to offense), which is interesting
  12. UltiMario

    UltiMario

    Joined:
    Aug 11, 2009
    Messages:
    1,158
    May I suggest putting the recommendation UNDER your normal EV spreads? As in, either below Nature or below the "protip"

    It's an aesthetic nitpick of mine to keep the distracting extra casual elements farther away from the core teambuilding area. More visually pleasing for the people that can actually build a team (90% of people on PS) by keeping the clutter below rather than in the middle.
  13. Arcticblast

    Arcticblast I run with the wolves of the wicked
    is a Tiering Contributoris a Forum Moderator Alumnusis a Community Contributor Alumnusis a Battle Server Moderator Alumnusis a SPL Winner
    Mentor

    Joined:
    Nov 29, 2008
    Messages:
    5,353
    Even for experienced teambuilders it's handy for putting EVs in quickly, assuming the recommendation is right. It's especially useful when replacing a Pokemon (ex. replacing Terrakion for Jolteon).
  14. Dusk209

    Dusk209 No relation.
    is a Battle Server Moderator Alumnus

    Joined:
    Feb 12, 2012
    Messages:
    152
    First of all, I agree with UltiMario: the suggested spread should be under the other stuff. Second of all I'd like to point a bug out: My forretress, with gyro ball/volt switch/stealth rock/rapid spin, doesn't get a -speed nature suggested. Instead, it lowers forre's sp.def. I tested this multiple times on both forry and ferro.

    Also, continuing this conversation from the suggestions thread:
    When using a scarf, you won't always want a power boosting nature. For example, scarf Infernape prefers Naive or Hasty, which allows it to outspeed other scarfed threats like Landorus.
  15. Pocket

    Pocket Apo, the astronaut's best friend >:3
    is a member of the Site Staffis a Forum Moderatoris a Tiering Contributoris a Contributor to Smogonis a Team Rater Alumnusis a Community Contributor Alumnus
    Doubles Co-Lead

    Joined:
    Dec 22, 2004
    Messages:
    8,580
    Really enjoying the intelligent user interface of Showdown! Thanks for these cool features, Zarel >:D
  16. ginganinja

    ginganinja Dating Haunter
    is a Forum Moderatoris a CAP Contributoris a Contributor to Smogonis a Community Contributor Alumnusis a Battle Server Moderator Alumnus
    Moderator

    Joined:
    Apr 13, 2009
    Messages:
    3,735
    Just posting to thank Zarel for his hard work for this feature, and ShakeItUp for helping fine tune some EV spreads, thanks so much to both of you!
  17. breh

    breh
    is a Smogon IRC AOPis a Tiering Contributor

    Joined:
    Feb 6, 2010
    Messages:
    3,135
    I can't help but feel that setting abilities won't take much time at all; all you have to do is sit down for an hour or two and enter in which ability you want it to select for a mon if at all. Scizor will always want Technician, Espeon always wants Magic Mirror, etc.; hell, you already have randbats do it for you to a certain extent, don't you? (granted, it doesn't always choose the right choice, but that's beyond the point)

    Anyway, the next logical step to this is simply checking the smogon analyses for the spreads and returning those. Showdown can't approximate everything (252 HP / 252 Spe / 4 Atk Careful for Ninjask when the best spread is 248 HP / 224 Def / 36 Spe Impish) and certain sets do what it does better.

    Another problem occurs when you realize that none of these spreads are guaranteed to be efficient. Using that Ninjask example from earlier for the sake of example (252 HP / 252 Spe / 4 Atk Careful), a whopping 100 EVs are wasted simply because of bad EV distribution (the same stats are obtained with 252 HP / 4 Atk / 52 SpD / 100 Spe Jolly). This is a pretty big example, but I'm sure that others like it exist with respect to HP and defense products. I'm not sure how you'd fix this in an efficient manner (I'm not sure how long it takes to check if a more efficient spread for a mon exists), but if you can, it would be a really neat thing to implement.
  18. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,745
    No.

    PS has never used Smogon analyses directly for any of its features. Mostly because I like writing AIs much more fun than scraping analyses from Smogon, but also because it's nice to write an AI and watch it come to the same conclusions as Smogon analysis writers.

    In the end, I think it does more to encourage creativity this way.

    And anyway, I think it's more fun to write an AI to do things like that, than to do it manually.
  19. breh

    breh
    is a Smogon IRC AOPis a Tiering Contributor

    Joined:
    Feb 6, 2010
    Messages:
    3,135
    Well, would it at least be possible to make the spreads efficient like I mentioned in my previous post?
  20. alkinesthetase

    alkinesthetase <@dtc> every day with alk is a bad day
    is a Smogon IRC SOp Alumnus

    Joined:
    Nov 8, 2010
    Messages:
    825
    integrating this http://www.smogon.com/forums/showthread.php?t=54101 into the code would solve that problem. it's java so it can easily be decompiled; i was actually fiddling with the source the other day because i wanted to add some new mons to it and port it into another language
  21. coolbiz

    coolbiz

    Joined:
    Aug 26, 2010
    Messages:
    765
    I dont know if it was supposed to do this on purpose but it made my Bronzong gentle natured?

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