28-09-2006, 01:48 PM
Okay you're going to want to setup Pokemon for the player so you'll have something similar to
Please Read Over This to make sense out of it.
Now if you did it this way, you'd have to make "Pokemon" directly editable, like Items... unless you just replaced "Npcs" with them, but i figured you didnt so you could leave the people walking around as the NPCs, but whatever. You'd also have to make an "Attack Editor", so you could do things like name the attack, the damage that it does, etc.
Hope this helps, and i hope you could make some sense out of it!
Please Read Over This to make sense out of it.
Code:
Type PokemonAttackRec
AttackNum as Long
End Type
Type PokemonRec
Name as String * NAME_LENGTH
EvolvesTo as Long
Type as Byte ' This way you can setup like Fire/Grass/Water, and not have to do 5000000+ if/case statements
EvolveMethod as Byte ' Some Could Evolve With Stones or by level or whatever...
EvolveLevel as Integer ' Because didn't they evolve at a certain Point?
' These Might be different... depends on what YOU want
HP as Long
MP as Long
SP as Long
' Attacks
PlayerPokemonAttacks(0 to 4) as PokemonAttackRec
End Type
Type PlayerRec
...
PlayerPokemon(0 to max_player_pokemon) as PokemonRec
...
End Type
Pokemon(1 to max_pokemon) as Pokemon Rec
Now if you did it this way, you'd have to make "Pokemon" directly editable, like Items... unless you just replaced "Npcs" with them, but i figured you didnt so you could leave the people walking around as the NPCs, but whatever. You'd also have to make an "Attack Editor", so you could do things like name the attack, the damage that it does, etc.
Hope this helps, and i hope you could make some sense out of it!