Thread: Bot Discussion
View Single Post
  #60  
Old 07-27-2011, 09:27 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Quote:
Originally Posted by Criimson View Post

Are you saying your code matches the number of AAs a bot has to the number a player has like levels? And the player buys their AAs? Should make this an option because I am not sure I am so into that idea. I have nver been a RTS type player and that seems like a lot of research unless you are coding in a window like #bot <name> buyAAs - that pops up a window like a players AAs and you can buy from there...that would be cool. But just typing in a command with the name and points bought would be a pain.
Sorry I didn't explain it very well. The bot AA code is scattered throughout the code, and I had consolidated it into GetAA() and CalcAABonuses(), which is how it is handled for clients. GetAA returnes the level of a specific AA line, such as Natural Durability or Planar Power. Aabonuses is just like itembonuses or spellbonuses and contains any statistical benefits from AAs. Containing all of the code that gives AAs within 2 places CalcAABonuses and GetAA() makes it easier to maintain especially when it is time to add additional AAs for newer expansions.

The addition of managing AAs per bot was something that I had thought about, but I know it would most likely not make it into the stock source code.
Reply With Quote