What would you like in a Pokedex?

I only played a bit of Sapphire, and that was in Japanese. >_>

I'll update it later with new variables...
 
I would like to see, Pictures ~ Stats ~ Moves ~ Type, and thst all really XD
 
I noticed also that there's something wrong with the Leaf Green rarity on Ditto.

The problem? It's not there... :P

Username, we've got all that and more. Click the link in the above post to see it all.
 
JKaizer said:
Wee~ Here's the 287.txt
PHP:
<?php
$namecaps = "DITTO"; // English Name in Caps
$number = "287"; // New Number
$hnumber = "287"; // Hoenn Number (Same as $number)
$knumber = "132"; // Kanto Number
$jnumber = "92"; // Jhoto Number
$ename = "Ditto"; // English Name (Same as $name)
$jname = "Metamon"; // Japanese Name
$gname = "Ditto"; // German Name
$fname = "Metamorphe"; // French Name
$class = "Transform"; // Classification
$type1 = "Normal"; // Type #1
$type2 = ""; // Type #2
$height = "1'00\""; // Height
$width = "8.8 lb."; //Width
$genderratio = "Genderless"; // Male to Female Ratio
$dexcat = "Town"; // Dex Category
$color = "Purple"; // ...this says for itself
$effortpt = "+1 HP"; // Effort Points
$ability = "Limber"; // See "$color" :P
$abilityeff = "Cannot be Paralyzed"; // Ability Effect
$evodata = "<img src='287/rs-n.png'>"; // Evolution Data.  Remember to put the src in single quotes.
$breedgroup = "Ditto"; // Breeding Group
$rsflavor = "DITTO rearranges its cell structure to transform itself into other shapes. However, if it tries to transform itself into something by relying on its memory, this POK?MON manages to get details wrong."; // Ruby/Sapphire Flavor Text
$frflavor = "It can freely recombine its own cellular structure to transform into other life-forms."; // FireRed Flavor Text
$lgflavor = "Capable of copying an enemy's genetic code to instantly transform itself into a duplicate of the enemy."; // LeafGreen Flavor Text

// Locations and Rarities
$lruby = "Trade from FR or LG";
$lsapphire = "Trade from FR or LG";
$lcolosseum = "Trade from FR or LG";
$lfr = "Route 13, Route 14, Cinnabar Mansion, Cerulean Cave";
$llg = "Route 13, Route 14, Cinnabar Mansion, Cerulean Cave";
$rruby = "None";
$rsapphire = "None";
$rcolosseum = "None";
$rfr = "Common";
$rlg = "Common";

// Stats
$bshp = "48";
$bsattack = "48";
$bsdefence = "48";
$bsspatk = "48";
$bsspdef = "48";
$bsspeed = "48";
$hhp = "300";
$hattack = "175";
$hdefence = "175";
$hspatk = "175";
$hspdef = "175";
$hspeed = "175";
$shp = "300";
$sattack = "195";
$sdefence = "195";
$sspatk = "195";
$sspdef = "195";
$sspeed = "195";
$bhp = "300";
$battack = "214";
$bdefence = "214";
$bspatk = "214";
$bspdef = "214";
$bspeed = "214";


// These variables will require table data.
$attacks = "<TR BGCOLOR=green><TD COLSPAN=3><FONT SIZE=2 COLOR=white FACE='Tahoma, Arial, Helvetica'><CENTER>Transform</CENTER></FONT></TD><TD COLSPAN=2><FONT SIZE=2 COLOR=white FACE='Tahoma, Arial, Helvetica'><CENTER>Normal</CENTER></FONT></TD><TD COLSPAN=1><FONT SIZE=2 COLOR=white FACE=Tahoma, Arial, Helvetica><CENTER>--</CENTER></FONT></TD></TR>";

$tmhm = "";

$movet = "";

?>
Not that hard to understand, ne?

The only thing to remember is that Quotation Marks " need to be either turned into single quotes ' or have a backwards slash \ put in front of them. ^^;


*goes to make FTP account and PM details*


The way you're doing it looks alright. It would be easier to use calculations for the minimum and maximum level 100 stats, though. It's redundant and ineffiecient to do it manually.

Moves are usually the primary concern of a Pok?dex; make sure to include those.

I would have used data files and input/output functions to make it more effiecient, especially concerning attacks. Otherwise, you'll have to have variables up until the maximum number of attacks a Pok?mon can learn:

Code:
moveValue1=45;
levelLearned1=8;

moveValue2=14;
levelLearned2=12;

//... more code ...

moveValue15=null;
levelLearned15=null;

moveValue16=null;
levelLearned16=null;

If you use data files, you only need one variable for moveValue and levelLearned:

PHP:
<?php


$monsterData = fopen ("$monsterSelected.txt", "r");

while (!feof ($monsterData)) {
	
	$name = fgets ($file, 100);
	$dexData= fgets ($file, 100);

             // et cetera, et cetera
             // add data to page

} // end while

fclose($monsterData);

$monsterMoves = fopen ("$monsterSelected"."_m.txt", "r");

while (!feof ($monsterMoves )) {
	
	$moveValue= fgets ($file, 100);
	$levelLearned= fgets ($file, 100);

             // add one move to page, and loop...

} // end while

fclose($monsterMoves );

?>
 
@_@;;

I only used the code I did because I understand it... I have no idea what you just said...
 
Same here. I barely understand JK's code, much less ^all that^.
 
JKaizer said:
@_@;;

I only used the code I did because I understand it... I have no idea what you just said...

One text file would have the general data (as specified) (i.e. 104.txt), and the other would only include moves learned leveling up (i.e. 104_m.txt). Others would have to be included for egg moves and move tutor moves (i.e. 104_e.txt for egg moves and 104_t.txt for the move tutors, et cetera).

The way that I listed is much easier to use. You could even add web forms that would add and modify the data that way. If you want, I could provide the code to do it this way (it's easier to code without the forms, though). You would only need to modify and/or add text files.
 
If you could write the code, that'd be great! ^_^


(Shoot... I never fixed that yesterday >_>)
 
You just need to specify the order of that the data will be in the text files.

They would appear under these categories:
> Miscellaneous Info (i.e. Pok?dex blurb, Exp to Lv100)
> Level-Up Moves
> Egg Moves
> TM/HM Moves
> Move Tutor Moves


I could work on it, and finish it on the weekend. I don't have enough time tomorrow.

Edit: I mainly need the order of the data to appear in the Misc. Info section. The others are straight-foreward.
 
o.o

The current order (and I don't think much'd be changed...) is here. Or do you need the raw code?
 
o.0 I only see Ditto. -_-'
 
Maybe that's because that's our example test Pokemon and we're still tweaking the code before we do the others...

EDIT:
AACK!!! JK, we're missing the Weight now... -_-
 
You two can work out the order of the data to include in the miscellaneous section; I'll have the code for the all of them done by tonight.

I'll inlcude the data order that you have already set up earlier. If you want to add anything, it won't be that hard to do later. You'll need to have a final version of the code before creating each monster's miscellaneous text file, though (otherwise, you'll have a lot of additions to make).
 
RoboMechaWobbuffet said:
Maybe that's because that's our example test Pokemon and we're still tweaking the code before we do the others...

EDIT:
AACK!!! JK, we're missing the Weight now... -_-
/me wonders how that happened. O____o;;;;;;

It's been fixed...
 
Back
Top