So this was made for one of my RPs, worldhoppers
, but if you play Pokemon, have a Pokemon AU, or just like pretty code, then this is for you. The two pieces of code here simulate a (modified) Pokedex and PC in Pokemon Black/White
|• #585 Deerling ♀
• Name: ❝ Nickname ❞
• Lv. 32
• OT: Trainer
• Brave nature.
• Somewhat vain.
|Ability: Sap Sipper
Boosts Attack when hit by a Grass-type move.
Okay, so as you might imagine, this is a pretty complex piece of code! And depending on your browser/monitor, the spacing might be off, but that's kind of up to you to fix, since fixing spacing on a theoretical basis is not exactly something I'm good at. But for this table, there are four main parts.
ONE: Pokemon SpriteOther than this, I don't recommend changing anything! I won't be providing much support with this code, so you're on your own if something gets messed up or doesn't work. Also, don't remove the credit code, please!
So this one is pretty self explanatory. You can grab an animated sprite from this website (there are lots of images here, so not dial-up friendly), upload it elsewhere, then plug it into the code where it says "SPRITE URL HERE". Depending on the size of the sprite, it might not align as well, but this is pretty easy to fix. Delete or add space via the enter key as needed until it's aligned to your liking.TWO: Info Box
This one is slightly more complex, but still pretty easy, since it's just dealing with text. Just change the information to suit the Pokemon, which will be noted by CAPS. In addition, the code for the Pokemon's gender has both built in, and you should delete the part that doesn't apply. So if the Pokemon is male, delete the red out of the font color="RED/BLUE" and the female symbol out of the choice of ♀/♂.THREE: Ability
For the Pokemon type, you can copy the URLs of the type sprites below, or you can just manually change the name of the URL. They're all the typename.png hosted on my Photobucket, so you don't really need to even copy the sprites below. For the OT, put your character's name (or the name of the character they traded with). For the nature of the Pokemon, if you're not familiar, Pokemon have a "personality" specified by their nature + the small phrase below, which is called a characteristic. In the game, these affects their growth, but for RP purposes, it's just to give them a personality, so to speak. You can find more about natures/a list here, and characteristics here.
This one is also pretty self-explanatory. Go to your Pokemon's page to find out what ability it has (if they could have two, then you can pick. However, Pokemon cannot have the Hidden Ability.). The ability's name goes where it says ABILITY NAME and the description where it says ABILITY DESCRIPTION. Duh.FOUR: Moveset
This one is probably one of the more complex sections. Similarly, go to your Pokemon's info page, and pick their moveset. Remember that this should correspond to their level. So for the example above, this Deerling should not have Solarbeam, which it learns at level 51... Replace the move-type like you did for the Pokemon type in step one. Then type the move name where it says MOVE NAME. Change the link to correspond with the move, also saying MOVE NAME.
Phew! So with all that out of the way, here is the code: code by swagu
And now for the PC code! Luckily, this one is much simpler, and you can keep track of the Pokemon's information through the comments. Editing that information follows the same general rules as the main Pokemon code, and is in a simplified form. Here's that code: Now, for the PC code itself. Essentially all you need to change are the links and the images of the Pokemon in the PC as well as the background image! Again, this website will provide you with the small sprites, which you should upload elsewhere. As for backgrounds, you can find those here.
The PC code can support three rows of Pokemon with up to four sprites in each row. Editing this code is also pretty simple! Just replace the following with the appropriate link or image: BACKGROUND_IMAGE, PC_LINK, SPRITEURL. So here's the code:And with that, we're done! Enjoy! ♥