On the other end of this link is a comprehensive downloadable damage calculator programmed in ruby.Worked on it a some more.
New in version 7:
• Accepts command line arguments
• Outputs to windows clipboard
• Order of questions and a fair bit of code rewritten.
If you have ruby installed on your system then follow these steps to make it work (if you haven't got ruby then get it here)
As of version 7 the win32-clipboard library is also needed (get it from the main download link). It should install using the RubyGems package manager.
If you can't/won't download it or are running linux then you can also comment out the first two lines of code and the 477th line (that starts Clipboard.set_data). A comment in ruby is #.
1. Go to Start > Run
2. type cmd
3. type cd [the directory where you saved the program]
4. type damagecalc7.rb
5. follow the instructions.
You can also pass in arguments from the command line (version 7 only)
All of the command line arguments take the same input as when it asks you the questions, with two exceptions:
• ? asks you the question but allows you to enter the variable after it in sequence on the commandline
• - skips the current question and all that follow it.
The variables are inputted in this order (seperated by a space):
• Move power
• Attack Stat
• Defence Stat
• STAB
• Effectiveness
• Your item
• Your ability
• Burn?
• Foe's Item
• Foe's Ability
• Weather
• Reflect/Light Screen
• Critical Hit
Features:
• Just about every variable imaginable (Sandstorm, life orb, resistance berries, burns etc. it's all there.)
• An average damage output as well as maximum and minimum damage.
• Prompts for input rather than making you type a complicated command.
• Accepts all variables as command line arguments (NEW)
• Output automatically copied to the Windows Clipboard (NEW)
Features not present:
• Me First attack (it has a special modifier)
• Metronome item (I can't be bothered programming it in.)
• Everything else is there...