Thread: NPC Battles?
View Single Post
  #4  
Old 06-28-2016, 07:22 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 118,434
Abronsyth is on a distinguished road
Default

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 :)
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote