AI/FIGHTING VALUES CALCULATOR v. 0.0.1
Finally my first version of program, which loads values from creature JSON (one creature must be in one separate file, and must not have syntax errors reported by VCMI) and then calculates AI/Fight values and writes them back to file (backup copy of source json is created with json_back extension.
Original formulas of AI/Fight Value are given by GrayFace (wforum.heroes35.net/)
Instructions from program:
Currently program doesn’t know anything about JSON, it only loads first mention of parameters (like “attack”, “defence”, “hitPoints” etc) and replaces then first mention of “aiValue”/“fightValue”).
Sources are included.
Program is written in Borland C++ Builder 5 (my previous program is written about 1-2 years ago, so I used things I remembered from past, don’t expect superb code).
Formulas were given by GrayFace from Wog Forum (wforum.heroes35.net/).
I plan to improve it someday).
PS I didn’t checked it with antivirus (I’m using build-n Windows 8 antivirus), hope that I have no “guests” on my PC.
AI_Fight_Values_Calculator_V0.0.1.zip (23.4 KB)