Wc3 Universal Calculator & Colorizer v5.3.2

This bundle is marked as approved. It works and satisfies the submission rules.
Tool CapabilitiesDescription
Text ColorizerText editor like Microsoft WordPad which generates colored text to text with Warcraft III, StarCraft II, vBulletin or HTML color codes. Looks like in-game tooltip (Wc3 tooltips' borders and Wc3 font)
Supports solid coloring, 2-color gradients (From color 1 to color 2, and from color 1 to color 2 to color 1) and striped (zebra) coloring.
Has custom color choosing resizable (large color field) dialog, which has customizable unlimited color palette and can pick color from screen.
Hero XPCalculates XP required for specified level range.
Registry fixerRegisters most Wc3 file extensions, even those that aren't registered by default! (w3m, w3x, w3n, wai, w3g, w3z, w3v, w3p, w3o, w3u, w3t, w3b, w3d, w3a, w3h, w3q)
Can change game resolution to your screen's. Useful for those who have wide or very large screen.
Also enables Local Files, which should be enabled for some RPGs which write save-codes to files.
Dice -> DamageCalculates damage (minimum and maximum) from "Damage Base", "Number of Dice" and "Sides per Dice"
Damage per SecondCalculates damage per second (DPS) and damage from "Damage Base", "Number of Dice", "Sides per Die", "Cooldown Time" or "Minimum Damage", "Maximum Damage", "Cooldown Time".
Armor -> Damage ReductionCalculates how given armor amount reduces damage.
Calculates percentage and fractional value.
Damage Reduction -> ArmorCalculates what armor amount should be that damage reduction will be as specified.
Armor -> Damage TakenCalculates what damage will receive unit with given armor from unit with given damage.
[TD] Damage -> Dice [/TD][td]Calculates all possible variants of "Damage Base", "Number of Dice" and "Sides per Dice" for given damage (minimum and maximum) for units and heroes (for heroes takes in account their primary attribute and level, calculates hero damage bonus).[/td][/tr]


Version 5.3.2 (05.05.2019)
- Returned accidentaly removed colorizer buttons
- Now when copying/pasting text into colorizer you no longer see cursor running through all text (however now it flickers)

Version 5.3.1 (03.05.2019)
- Recompiled and adapted to Windows 10 (required now .NET framework 4.6)
- Fixed "Check for Updates" functionality (will start working after submission on hiveworkshop.com is approved)
- Warcraft font now is placed in temp system folder - tool does not require admin rights for main functionality
- Fixed some crashes
- Now does not use binary compression so there should't be antivirus false positive alarms

Version 5.3
- Added Registry Fixer (Registers most Wc3 file extensions, changes Wc3 resolution to your screen's and enables Local Files)
- Added Serious Sam FE/SE color codes to Text Colorizer

Version 5.2
- Now in "Text Colorizer" color codes are automatically parsed when text is pasted from clipboard
- Now in "Text Colorizer" when copying text to clipboard color codes are automatically generated
- Added "Hero XP" calculator which calculates how many XP needed to gain specified level

Version 5.1.4
- Reduced program's filesize

Version 5.1.3
- Added button "Check for Updates"

Version 5.1.2
- Improved "Damage Base", "Number of Dice" and "Sides per Dice" calculation

Version 5.1.1
- Made Text Colorizer more similar to in-game tooltips (Wc3 tooltips' borders and Wc3 font)
- Now in new color dialog color palette automatically resizes

Version 5.1
- Added capability to apply color codes in Text Colorizer
- Added new color dialog in Text Colorizer
- Renamed from "Wc3 Universal Calculator" to "Wc3 Universal Calculator & Colorizer" because new name fully represents tool's capabilities

Version 5.0.2
- Added "Damage taken" field in "Armor <-> Damage Reduction" tab
- Fixed typo in StarCraft II color codes in Text Colorizer

Version 5.0.1
- Added StarCraft II color codes to Text Colorizer

Version 5.0
- Completely redone calculator's interface (Damage -> Dice, Dice -> Damage, Damage -> DPS, Dice -> DPS calculators combined together; Armor -> Damage Reduction, Damage Reduction -> Armor combined together)
- Temporary removed new color dialog in Text Colorizer because it didn't generate all possible colors
- Temporary removed search for user-typed color-codes
- Added option for selecting code types in Text Colorizer (Warcraft III, vBulletin, Html)
- Changed hotkeys in Text Colorizer
- Added "Colorize with Color 2", "Colorize with Tooltips' color", "Colorize with white", "Colorize with red", "Colorize with green" buttons in Text Colorizer
- Now Text Colorizer generates text with codes directly to Clipboard
- Changed a bit Variants dialog
- Now doesn't calculates exact values (For example 7/13, 5/3, etc) because useless

Version 4.6
- "Generate text" button in text colorizer moved down
- New color selection dialog in text colorizer
- DPS calculator moved to new tab
- DPS calculator can show dps for several units in one time for easier comparison
- Added "Clear text" button to text colorizer
- Window's transpercy code has been improved (may not work for Windows Vista and Windows 7)

Version 4.5.1
- Window's default width increased for compatibility with Windows Vista (In other case "Generate Text" button in Text Colorizer isn't visible)
- Window's transpercy code has been changed for compatibility with Windows 7 (In other case window was always transparent)

Version 4.5
- Now in tooltips for "Color 1" and Color 2" buttons are showing color codes
- Color code of color of buttons "Color 1" and Color 2" can be copied by right-click
- After clicking "Generate Text" button tool searches for user-typed Warcraft III codes and if found, asks for deleting them

Version 4.4
- Renamed from "Wc3 Number of Dice Calculator" to "Wc3 Universal Calculator" because of several capabilities
- Added "Gradient 2" function (gradient from color 1 to color 2 and back to color 1) to text colorizer
- Added reset button (colours all text with white color) to text colorizer
- Added tooltips in text colorizer
- More compact toolbar in text colorizer
- More compact window

Version 4.3
- Improved text colorizer (Changed toolbar, added context menu with copy/paste functions)
- Small bugfixes

Version 4.2
- Added DPS (damage per second) calculator
- Added text colorizer with preview

Version 4.1
- Added "Armor to Damage Reduction" calculator
- Added "Damage Reduction to Armor" calculator
- Tool now saves what you typed into fields and loads next time you run it

Version 4.0
- Tool now is written in VB.NET language and requires .NET Framework 3.5
- Added Dice to Damage calculator
- Added "sticky" window option (window sticks to edges of screen when moved close)
- Now supports minimum damage greater than maximum
- Bugs with decimals fixed

Version 3.0
- Added hero damage calculator

Version 2.2
- Added option window, which allows to you decrease count of variants
- Number of variant is now after word "Variant"

Version 2.1
- Fixed bug with window transparency

Version 2.0
- Now tool generates several variants of base, number of dice and sides per die
- Added window transparency when mouse leaves window

Version 1.0 (10.06.2010)
- Starting version


Comments, suggestions and ideas please!

Program requires .NET Framework 4.6!!!


You can download it here.
Contents

Wc3 Universal Calculator & Colorizer 5.3.2.exe (Binary)

Reviews
27th July 2012 Magtheridon96: This thing rocks. It's like a Universal Warcraft III Tool for both players and modders :D Highly Recommended! Well done.
Ralle
Google reports this as malware. If you can update it, it'd be great.
eejin
Is no longer reported as malware and works properly.
@ text colorizer, here a few suggestions

1. to the left of the 'clear text' button, there should be the following color options: that gold color wc3 uses for everything, that green used for lumber, red used on crit, green used with shadowstrike (slightly less important), no color, every defined custom color, so it generates plane text, i know thats what the 'colorize all with white' is suposed to be for?, also it should only colorize the selected text

2. little divider thingys that show aproximately how big a tooltip is, for screen space, so you can make sure what you type doesnt extend to the next line where you dont want it to, in most cases

3. a nice little clipboard that remembers the last 3-4 copy/paste, and/or 'texts'

4. and its probably to much to ask but spellcheck? :) there are a few opensource spellcheckers out there, all ud need is a dictionary file, to get wrong spellings (im not even asking for suggested spellings, just something to know if something is wrong) btw what lang u code it in?

great program btw, not to many other basic tools are needed
 
Level 13
Joined
Oct 20, 2007
Messages
353
1. to the left of the 'clear text' button, there should be the following color options: that gold color wc3 uses for everything, that green used for lumber, red used on crit, green used with shadowstrike (slightly less important), no color, every defined custom color, so it generates plane text, i know thats what the 'colorize all with white' is suposed to be for?, also it should only colorize the selected text


Ok. I'll make something like that. What about every defined custom color, I'll not make it, because it requies a lot of space. There will only most important colors: gold, red, green, white.


2. little divider thingys that show aproximately how big a tooltip is, for screen space, so you can make sure what you type doesnt extend to the next line where you dont want it to, in most cases


That will be not very easy, because I must measure tooltips' width in Warcraft and apply Warcraft 3 font, for maps with custom font size will be wrong.
But I'll try to do something.


3. a nice little clipboard that remembers the last 3-4 copy/paste, and/or 'texts'


Tool already has copy/paste functions. What did you mean? Little box with showing last copied text fragments?


4. and its probably to much to ask but spellcheck? :) there are a few opensource spellcheckers out there, all ud need is a dictionary file, to get wrong spellings (im not even asking for suggested spellings, just something to know if something is wrong) btw what lang u code it in?


I'll search some spellcheckers. But I don't think that I make it in close time.

And very big thanks to you for this useful comment!!!


11th place in the top 20 tools, nice...


Really? I've looked and it was on 13th place.
 
Last edited:
Level 6
Joined
Oct 21, 2009
Messages
298
13th? Either I counted wrongly, or it changed the past few days.

EDIT: Now its 14th
 
Last edited:
@defined colors, i mean, when you choose to make a part of your tooltip, lets say black, then that exact black would show up there for you to choose from, since odds are if you use a color, your gonna need that same color more than once

@ clipboard, yes exactly, it should save copys of all the text you input into it, there should also be a way to paste your text, already formatted, and then it could add the colors to it. (if you hit,generate text, it gives you the formatted code to paste in right, well you should be able to reverse this process, to get your old tooltip back into the program, for modification. (it would detect the codes, and automatically apply the colors)

thanks for taking input ^^
 
Level 13
Joined
Oct 20, 2007
Messages
353
@defined colors, i mean, when you choose to make a part of your tooltip, lets say black, then that exact black would show up there for you to choose from, since odds are if you use a color, your gonna need that same color more than once


Ok, I'll make color buttons I've said, and buton "Recent Colors", which when clicked shows a drop down list with recently used colors.


@ clipboard, yes exactly, it should save copys of all the text you input into it, there should also be a way to paste your text, already formatted, and then it could add the colors to it. (if you hit,generate text, it gives you the formatted code to paste in right, well you should be able to reverse this process, to get your old tooltip back into the program, for modification. (it would detect the codes, and automatically apply the colors)


About clipboard, I'll see what I can do.
Now you can copy and paste colored text (and I found that you can also copy colored text from MS Word).

I already have tried to make that programm automaticaly applies color codes, but it was hard and I made for now only detection and removing colors. But I'll try until I'll make that.


thanks for taking input ^^

No problem =)
I always liked to get some good advice.
 
Level 3
Joined
Nov 8, 2009
Messages
46
Spell Calculator

Spell like flame strike, Full Damage Deal
Full Damage Interval
Half Damage Deal
Half Damage Interval

Is there a tool like that, that counts the damage deal using the spell?
 
Level 13
Joined
Oct 20, 2007
Messages
353
Great job!
but I could not open the calculator, gave an error when I open the calculator

It's most likely that you don't have installed Microsoft .NET Framework 3.5


TOOL UPDATED:

Version 5.0
- Completely redone calculator's interface (Damage -> Dice, Dice -> Damage, Damage -> DPS, Dice -> DPS calculators combined together; Armor -> Damage Reduction, Damage Reduction -> Armor combined together)
- Temporary removed new color dialog in Text Colorizer because it didn't generate all possible colors
- Temporary removed search for user-typed color-codes
- Added option for selecting code types in Text Colorizer (Warcraft III, vBulletin, Html)
- Changed hotkeys in Text Colorizer
- Added "Colorize with Color 2", "Colorize with Tooltips' color", "Colorize with white", "Colorize with red", "Colorize with green" buttons in Text Colorizer
- Now Text Colorizer generated text with codes directly to Clipboard
- Changed a bit Variants dialog
- Now doesn't calculates exact values (For example 7/13, 5/3, etc) because useless
 
Level 13
Joined
Oct 20, 2007
Messages
353
Very nice program, need to aprove it !

But they're is an tooltip error : "Sides per Die" (in dice<->damage)

And mbe add in the "dice <-> damage" a "Armor/Damage Reduction" zone (with a tick for active it), for know how many damage we will deal on an enemy with some armor ^^

Thanks for comment!!! Long time was waiting for it...

In next version I'll merge "Dice <-> Damage" and "Armor <-> Damage Reduction" tabs and add "taken damage" field.
(Also I'll improve color dialog in text colorizer, and maybe in next-next version add color code applier(with it you could edit old tooltips))

But I don't understand what error you meant? In "Dice <-> Damage" and "Armor <-> Damage Reduction" tabs there are no tooltips! If you have meant that error appeared when you done something, please describe, what you were doing, and what numbers were typed in fields.
 
Level 13
Joined
Oct 20, 2007
Messages
353
Updated.

Version 5.3
- Added Registry Fixer (Registers most Wc3 file extensions, changes Wc3 resolution to your screen's and enables Local Files)
- Added Serious Sam FE/SE color codes to Text Colorizer

Version 5.2
- Now in "Text Colorizer" color codes are automatically parsed when text is pasted from clipboard
- Now in "Text Colorizer" when copying text to clipboard color codes are automatically generated
- Added "Hero XP" calculator which calculates how many XP needed to gain specified level

Version 5.1.4
- Reduced program's filesize (now 87.3kb, was 169kb)

Version 5.1.3
- Added button "Check for Updates"

Version 5.1.2
- Improved "Damage Base", "Number of Dice" and "Sides per Dice" calculation

Version 5.1.1
- Made Text Colorizer more similar to in-game tooltips (Wc3 tooltips' borders and Wc3 font)
- Now in new color dialog color palette automatically resizes

Version 5.1
- Added capability to apply color codes in Text Colorizer
- Added new color dialog in Text Colorizer
- Renamed from "Wc3 Universal Calculator" to "Wc3 Universal Calculator & Colorizer" because new name fully shows tool's capabilities
 
Last edited:
Level 10
Joined
Dec 11, 2014
Messages
642
I get an error

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Windows\Fonts\Friz Quadrata TT.ttf' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
at Wc3_Universal_Calculator_and_Colorizer.fCalc.InstallWc3Font()
at Wc3_Universal_Calculator_and_Colorizer.fCalc.Form1_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
Wc3 Universal Calcula
Assembly Version: 5.3.0.0
Win32 Version: 5.3.0.0
CodeBase: file:///C:/Users/Dane/Desktop/Wc3%20Universal%20Calculator%20And%20Colorizer%205.3.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8015 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8016 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Wc3 Universal Calculator & Colorizer
Assembly Version: 5.3.0.0
Win32 Version: 5.3.0.0
CodeBase: file:///C:/Users/Dane/Desktop/Wc3%20Universal%20Calculator%20And%20Colorizer%205.3.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.8007 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8012 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Windows 8.1
 
Level 13
Joined
Oct 20, 2007
Messages
353
I get an error

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Windows\Fonts\Friz Quadrata TT.ttf' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
at Wc3_Universal_Calculator_and_Colorizer.fCalc.InstallWc3Font()
at Wc3_Universal_Calculator_and_Colorizer.fCalc.Form1_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
Wc3 Universal Calcula
Assembly Version: 5.3.0.0
Win32 Version: 5.3.0.0
CodeBase: file:///C:/Users/Dane/Desktop/Wc3%20Universal%20Calculator%20And%20Colorizer%205.3.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8015 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8016 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Wc3 Universal Calculator & Colorizer
Assembly Version: 5.3.0.0
Win32 Version: 5.3.0.0
CodeBase: file:///C:/Users/Dane/Desktop/Wc3%20Universal%20Calculator%20And%20Colorizer%205.3.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.8007 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8012 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Windows 8.1

Run program as administrator. It needs to install Warcraft 3 font into your system.
 
Level 3
Joined
Jun 19, 2010
Messages
49
i'm very interested in the formulas & their derivation for the damage calculation, especially when min & max damage is given, how the base, dice and sides are computed...
reason is, i want to create an Excel sheet where i write desired min & max damage while Excel generates working base, dice and sides values.
so, for normal units (no heros):
min = base + dice
max = base + dice * sides

base = ? max - min ?
dice = ?
sides = ?

ok... little bit math:
base = min - dice
base = max - dice * sides
base = base
min - dice = max - dice * sides
now after which one should i solve? sides?
min - dice - max = - dice * sides
-min + dice + max = dice * sides
sides = (dice - min + max) / dice
and now what?
or do i have to use binomial formula? to get the dice * sides apart?

edit:
instead of advanced maths, i guess the following will also do it:
condition:
- keep dice > 0, because when dice = 0, attacks are completely disabled!
decided for following rule:
- keep dice = 1
resulting formula:
- dice = 1
- base = min - 1
- sides = max - base
 
Last edited:
Level 2
Joined
Dec 16, 2011
Messages
12
Just used it for the tooltip colorizer, great tool.

Not sure if I'm missing something but it would be nice to be able to flip between raw text and processed text.
 
Top