Good idea to have it backed up now.. I will give it a go :)
The item sys only has 2 parts of the bag done.. But the coding is universal, you can use most of the data anywhere in the game.
I was planning on more but I didn't have the time and I couldn't be bothered making all the pp and special moves for adding in more items..
Edit: Ok I tested it.. Lots of bugs.. You must have changed the variables again or something...
1. In the trainer battle, all the enemy pokemon are lv0 and have no life.
2. The hp bar no longer decreases 1-by-1, it just subtracts a huge chunk.
3. When you select fight, you are allowed to move the selector across to an invisible attack. When you use it, it appears to be leer.. But the battle calculations do nothing to it.
1 & 2 were caused when you changed the variables for hp I assume, 3 was probably caused by me.. It is a simple matter of changing how many moves our pokemon knows for now.
Good work with the battle calculations, I assumed my guess would be slightly accurate. Have you tested it with lvling up? Maybe you could implement the experience calculation next..