I was hoping you guys could help me figure out how the base stat graphs are created on the Smogon dex. You know, the horizontal bar graph with HP, Attack, Defense, etc.
I know they have a total of 255 and are color coded (green = high and red = low) but is there an easy way to find the code for how long the bars are or what color they are? Or even better an appplet or something that you can input your own values and it will make the chart for you?
I am starting a randomized run (just for fun) and I want to make profiles of my team members with their randomized stats.
This question doesn't have that much to do with Smogon or competitive battling, but you guys are the most knowledgeable around! I've looked everywhere for this kind of tool, but since I'm pretty new I think I'm not looking in the right place. So I was hoping you could point me in the right direction.
Thank you for your time!
Hi Parviglumis,Thank you! But ah, yes, I am looking to change the actual base stats and have a visualization of that, without any IV/EVs. I used Dabomstew's open source universal randomizer, and it has the option of creating a log file after the randomization. So in that file I can look up the Pokemon and see the total base stats that were assigned to them, which can be very different than what they should be! (Sometimes in a good way, sometimes not)
The Smogon Pokedex uses a Javascript function to output the bars. You can see the HTML output of this function by right-clicking on one of the bars and selecting "Inspect." Here's an example of a part you'd be interested in, taken from Abomasnow:
The Javascript itself (this link to it might work, not sure if it's permanent or transient) would be a bit much to decipher for a quick team profiles project, so I'd recommend trying to whip something up in excel or with another program.
I created an excel sample applet for you to try out if you'd like: You can download it here.























