OK, so I've actually got a loose mock-up code of this done and it's working perfectly, which is great. I've gotten it so that the user must have an adult pet set as their fave pet, and then that is the pet used to battle. The system uses stat averages to battle instead of one single stat, which makes more sense to me, and generates random NPC stats. If the adoptable wins then the user wins a certain amount of cash. I can also make it so that the pet can gain stats by winning, but I chose to use items and training to increase stats instead.
I did go ahead and use switch statements instead, as Sim recommended. Anyways, I'll clean up the code a bit and then go ahead and release it to y'all :)
|