Page 1 of 4

Online "Combat Calculator"

Posted: Wed Apr 30, 2014 7:16 am
by lsanczyk
I programmed a system to resolve the fight sequences and I like to share it with you. You can find the english version at http://tor.hpcomp.com.ar or the spanish version at http://eau.hpcomp.com.ar. It's intentionally unrestrictive to make it more flexible, and these are the features at the date:

- Called shots
- Prepared shots
- Brawling/throwing attacks
- Aware of ranged attack
- Fumbles
- Using hope
- Bonus succes dices
- Knockback
- Using hate in some enemy special habilities
- Hound of Mirkwood
- Complications
- Defense of a partner

My intention is progressively fix bugs and add new features. I hope it be useful!

Edit: A screen capture
Image

Re: Online "Combat Calculator"

Posted: Wed Apr 30, 2014 6:43 pm
by Heilemann
What kind of files does it expect?

Re: Online "Combat Calculator"

Posted: Wed Apr 30, 2014 7:16 pm
by Glorelendil
Heilemann wrote:What kind of files does it expect?
Looks like comma separated values. But you'll have to deduce the column names.

Re: Online "Combat Calculator"

Posted: Wed Apr 30, 2014 8:15 pm
by Heilemann
But the file name even; it says nothing about it.

Re: Online "Combat Calculator"

Posted: Wed Apr 30, 2014 8:40 pm
by Falenthal
If you click on "Example file", you can "Save as..." the page that is loaded.

Then you can load this file (a .csv) to get the heroes.
The same can be done with enemies.

Re: Online "Combat Calculator"

Posted: Wed Apr 30, 2014 9:21 pm
by tomfish
Once you understand how to load data file, it is quite amazing. The User interface is really nice looking !
I have started to play with it but noticed that hits only yield 1 endurance damage, so a little fixing seems required.

Re: Online "Combat Calculator"

Posted: Wed Apr 30, 2014 10:59 pm
by Heilemann
I'm on a Mac, and both Chrome and Safari refuse to load .csv or any other kind of files on this.

Re: Online "Combat Calculator"

Posted: Thu May 01, 2014 6:32 pm
by lsanczyk
Heilemann wrote:What kind of files does it expect?
Beside each "load" button there's a link: "example file". Download it (You can use the "save link as..." option in the rigth mouse button contextual menu or open it first and use the "save as" option in the "file" menu of your browser).

The "heroes.csv" file has the relevant data of the 6 heroes at the end of the "Adventurer's book".
The "enemies.csv" file has the relevant data of 27 different enemies I could get.

Once you downloaded both files, you can upload it using the "load" button on each panel (heros and enemies) and start a test fight between these groups.

Re: Online "Combat Calculator"

Posted: Thu May 01, 2014 8:36 pm
by lsanczyk
Elfcrusher wrote:
Heilemann wrote:What kind of files does it expect?
Looks like comma separated values. But you'll have to deduce the column names.
The first line in the "example file" has got the comma separated names.

These are, for heroes.csv:

Code: Select all

name,endurance,fatigue,body,weapon,type,dagger,damage,edge,injury,armour,helmet,parry,shield,hope,stance,wounded,defense,image
[/i]
And for enemies.csv:

Code: Select all

name,endurance,attribute,weapon,damage,edge,injury,armour,helmet,parry,shield,hate,greatsize,hideoustoughness,snakelikespeed,horriblestrength,wounded,calledshot,image
[/i]
The example files use all the posible expected values too:
  • endurance: Current hero/enemy endurance points
  • fatigue: Current endurance points to consider hero to be weary
  • body: Body attribute (body favoured attribute if the weapon in use is favorite)
  • weapon: Amount of dice to be rolled in a attack test
  • type: "sword", "axe", "mattock", "spear" or "bow". Is using to determine the called shot effect
  • dagger: Amount of dice to be rolled in a brawling or throwing attack
  • damage, edge, and injury: Values concerning the weapon in use
  • armour: Number of dice used in a protection test
  • helmet: Bonus of protection to be applied
  • parry & shield: Bonuses added to the basic TN in the attack test
  • hope: Amount of hero's hope remained
  • stance: "rearward", "defensive", "open" or "forward"
  • wounded: A boolean value, TRUE or FALSE
  • defense: The character name of a companion willing to receive the damage instead, or "noone" if he receive his own damage. Two extra values added, "houndexposed" and "houndprotected" allow using the "Hound of Mirkwood" virtue in the case of a Sauron eye's symbol.
  • image: A numeric number between 1 and 56 for heroes; 1 and 27 for enemies. I'm using only the Jon Hodgson's illustrations that I could get for the moment (except for the creatures haven't one)
  • attribute: Enemy attribute
  • greatsize,hideoustoughness,snakelikespeed and horriblestrength: Boolean values representing some of the special enemy habilities. Could be TRUE or FALSE
  • calledshot: The effect of the enemy weapon attack, could be "disarm", "poison", "breakshield" or "neither"
You can use the button "update" to make changes and the "save" to get the file with the new values.

Re: Online "Combat Calculator"

Posted: Thu May 01, 2014 8:50 pm
by lsanczyk
Heilemann wrote:But the file name even; it says nothing about it.
I'm sorry. That's the problem writing something: you begin to consider intuitive what is not.

I will add some "tooltips" with descriptions. And probably a add/remove enemy/hero buttons as soon as possible.